Analysis Software
Documentation for sPHENIX simulation software
|
Utility functions for TPC. More...
Functions | |
static const unsigned int kBitShiftSectorId | __attribute__ ((unused)) = 16 |
uint8_t | getSectorId (TrkrDefs::hitsetkey key) |
Get the sector id from hitsetkey. | |
uint8_t | getSectorId (TrkrDefs::cluskey key) |
Get the sector id from cluskey. | |
uint8_t | getSide (TrkrDefs::hitsetkey key) |
Get the side from hitsetkey. | |
uint8_t | getSide (TrkrDefs::cluskey key) |
Get the side id from cluskey. | |
uint16_t | getPad (TrkrDefs::hitkey key) |
Get the pad index from hitkey. | |
uint16_t | getTBin (TrkrDefs::hitkey key) |
Get the time bin from hitkey. | |
TrkrDefs::hitkey | genHitKey (const uint16_t pad, const uint16_t tbin) |
Generate a hitkey from a pad index and time bin. | |
TrkrDefs::hitsetkey | genHitSetKey (const uint8_t lyr, const uint8_t sector, const uint8_t side) |
Generate a hitsetkey for the tpc. | |
TrkrDefs::cluskey | genClusKey (const uint8_t lyr, const uint8_t sector, const uint8_t side, const uint32_t clusid) |
Generate a cluster key from indeces. | |
Utility functions for TPC.
Contains the functions for manipulating the various keys used by the tpc for hits, hit sets, and clusters
|
static |
TrkrDefs::cluskey TpcDefs::genClusKey | ( | const uint8_t | lyr, |
const uint8_t | sector, | ||
const uint8_t | side, | ||
const uint32_t | clusid | ||
) |
Generate a cluster key from indeces.
[in] | lyr | Layer index |
[in] | sector | Sector index |
[in] | side | Side index |
[in] | clusid | Cluster id |
[out] | cluskey |
Definition at line 74 of file TpcDefs.cc.
View newest version in sPHENIX GitHub at line 74 of file TpcDefs.cc
References TrkrDefs::genClusKey(), and MicromegasDefs::genHitSetKey().
Referenced by PHTruthClustering::all_truth_clusters(), SvtxTruthEval::all_truth_clusters(), TpcPrototypeUnpacker::exportDSTCluster(), and TpcPrototypeClusterizer::process_event().
TrkrDefs::hitkey TpcDefs::genHitKey | ( | const uint16_t | pad, |
const uint16_t | tbin | ||
) |
Generate a hitkey from a pad index and time bin.
[in] | pad | Pad index |
[in] | tbin | Time bin |
[out] | hitkey |
Definition at line 54 of file TpcDefs.cc.
View newest version in sPHENIX GitHub at line 54 of file TpcDefs.cc
References Acts::Test::tmp().
Referenced by PHG4TpcDigitizer::DigitizeCylinderCells(), TpcPrototypeUnpacker::exportDSTHits(), PHG4TpcPadPlaneReadout::MapToPadPlane(), TpcPrototypeClusterizer::process_event(), TpcCombinedRawDataUnpacker::process_event(), PHG4TpcPadBaselineShift::process_event(), tpc_hits::process_event(), and TpcRawDataDecoder::process_event().
TrkrDefs::hitsetkey TpcDefs::genHitSetKey | ( | const uint8_t | lyr, |
const uint8_t | sector, | ||
const uint8_t | side | ||
) |
Generate a hitsetkey for the tpc.
[in] | lyr | Layer index |
[in] | sector | Sector index |
[in] | side | Side index |
[out] | hitsetkey | Generate a hitsetkey for the tpc. The tracker id is known implicitly and used in the function. |
Definition at line 63 of file TpcDefs.cc.
View newest version in sPHENIX GitHub at line 63 of file TpcDefs.cc
References TrkrDefs::genHitSetKey(), Acts::Test::tmp(), and TrkrDefs::tpcId.
Referenced by PHG4TpcDigitizer::DigitizeCylinderCells(), TpcPrototypeUnpacker::exportDSTCluster(), TpcPrototypeUnpacker::exportDSTHits(), MakeActsGeometry::getTpcHitSetKeyFromCoords(), PHG4TpcPadPlaneReadout::MapToPadPlane(), TpcSimpleClusterizer::process_event(), TpcCombinedRawDataUnpacker::process_event(), TpcClusterizer::process_event(), tpc_hits::process_event(), and TpcRawDataDecoder::process_event().
uint16_t TpcDefs::getPad | ( | TrkrDefs::hitkey | key | ) |
Get the pad index from hitkey.
[in] | hitkey | |
[out] | pad | index |
Definition at line 40 of file TpcDefs.cc.
View newest version in sPHENIX GitHub at line 40 of file TpcDefs.cc
References Acts::Test::tmp().
Referenced by TpcClusterBuilder::cluster_hits(), PHG4TpcDigitizer::DigitizeCylinderCells(), QAG4SimulationTpc::evaluate_clusters(), TrackResiduals::fillHitTree(), TrkrNtuplizer::fillOutputNtuples(), SvtxEvaluator::fillOutputNtuples(), TrackerEventDisplay::makeJsonFile(), TpcPrototypeClusterizer::process_event(), PHG4TpcPadBaselineShift::process_event(), TpcRawWriter::process_event(), TPCMLDataInterface::process_event(), PHG4TpcElectronDrift::process_event(), readDigitalCurrents::process_event(), and TpcDirectLaserReconstruction::process_track().
uint8_t TpcDefs::getSectorId | ( | TrkrDefs::hitsetkey | key | ) |
Get the sector id from hitsetkey.
[in] | hitsetkey | |
[out] | sector | id |
Definition at line 12 of file TpcDefs.cc.
View newest version in sPHENIX GitHub at line 12 of file TpcDefs.cc
References Acts::Test::tmp().
Referenced by MakeMilleFiles::addTrackToMilleFile(), TpcClusterBuilder::cluster_hits(), AlignmentTransformation::createMap(), PHG4TpcDigitizer::DigitizeCylinderCells(), TrackResiduals::fillClusterTree(), KFParticle_truthAndDetTools::fillDetectorBranch(), TrackResiduals::fillHitTree(), TrkrNtuplizer::fillOutputNtuples(), SvtxEvaluator::fillOutputNtuples(), AlignmentDefs::getLabelBase(), getSectorId(), TpcPrototypeClusterizer::process_event(), TpcClusterQA::process_event(), TpcSimpleClusterizer::process_event(), PHG4TpcPadBaselineShift::process_event(), TpcRawWriter::process_event(), TpcClusterizer::process_event(), PHG4TpcElectronDrift::process_event(), and HelicalFitter::process_event().
uint8_t TpcDefs::getSectorId | ( | TrkrDefs::cluskey | key | ) |
Get the sector id from cluskey.
[in] | cluskey | |
[out] | sector | id |
Definition at line 19 of file TpcDefs.cc.
View newest version in sPHENIX GitHub at line 19 of file TpcDefs.cc
References getSectorId(), and Acts::Test::tmp().
uint8_t TpcDefs::getSide | ( | TrkrDefs::hitsetkey | key | ) |
Get the side from hitsetkey.
[in] | hitsetkey | |
[out] | side |
Definition at line 26 of file TpcDefs.cc.
View newest version in sPHENIX GitHub at line 26 of file TpcDefs.cc
References Acts::Test::tmp().
Referenced by MakeMilleFiles::addTrackToMilleFile(), TpcClusterBuilder::cluster_hits(), TrackResiduals::convertTimeToZ(), HelicalFitter::convertTimeToZ(), AlignmentTransformation::createMap(), PHG4TpcDigitizer::DigitizeCylinderCells(), TrackResiduals::fillClusterTree(), KFParticle_truthAndDetTools::fillDetectorBranch(), TrackResiduals::fillHitTree(), TrkrNtuplizer::fillOutputNtuples(), SvtxEvaluator::fillOutputNtuples(), ActsEvaluator::fillProtoTrack(), PHCosmicsTrkFitter::fillVectors(), TpcSpaceChargeReconstruction::get_global_position(), PHSiliconTpcTrackMatching::getBunchCrossing(), PHTpcResiduals::getGlobalPosition(), PHGenFitTrkFitter::getGlobalPosition(), ActsGeometry::getGlobalPositionTpc(), AlignmentDefs::getLabelBase(), ActsGeometry::getLocalCoords(), getSide(), MakeSourceLinks::getSourceLinks(), TrackerEventDisplay::makeJsonFile(), ActsAlignmentStates::makeTpcGlobalCorrections(), HelicalFitter::makeTpcGlobalCorrections(), TpcPrototypeClusterizer::process_event(), TpcClusterQA::process_event(), TpcSimpleClusterizer::process_event(), PHG4TpcPadBaselineShift::process_event(), TpcClusterizer::process_event(), PHG4TpcElectronDrift::process_event(), PHMicromegasTpcTrackMatching::process_event(), readDigitalCurrents::process_event(), PHTpcCentralMembraneClusterizer::process_event(), HelicalFitter::process_event(), and TpcDirectLaserReconstruction::process_track().
uint8_t TpcDefs::getSide | ( | TrkrDefs::cluskey | key | ) |
Get the side id from cluskey.
[in] | cluskey | |
[out] | side | id |
Definition at line 33 of file TpcDefs.cc.
View newest version in sPHENIX GitHub at line 33 of file TpcDefs.cc
References getSide(), and Acts::Test::tmp().
uint16_t TpcDefs::getTBin | ( | TrkrDefs::hitkey | key | ) |
Get the time bin from hitkey.
[in] | hitkey | |
[out] | time | bin |
Definition at line 47 of file TpcDefs.cc.
View newest version in sPHENIX GitHub at line 47 of file TpcDefs.cc
References Acts::Test::tmp().
Referenced by TpcClusterBuilder::cluster_hits(), InttClusterizer::ClusterLadderCellsRaw(), MvtxClusterizer::ClusterMvtxRaw(), PHG4TpcDigitizer::DigitizeCylinderCells(), QAG4SimulationTpc::evaluate_clusters(), TrackResiduals::fillHitTree(), TrkrNtuplizer::fillOutputNtuples(), SvtxEvaluator::fillOutputNtuples(), TrackerEventDisplay::makeJsonFile(), TpcPrototypeClusterizer::process_event(), PHG4TpcPadBaselineShift::process_event(), TpcRawWriter::process_event(), TPCMLDataInterface::process_event(), PHG4TpcElectronDrift::process_event(), readDigitalCurrents::process_event(), and TpcDirectLaserReconstruction::process_track().