ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
Utility functions for TPC. More...
Functions | |
static const unsigned int kBitShiftSectorId | __attribute__ ((unused)) = 16 |
bit shift for hit key | |
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. | |
TrkrDefs::cluskey | genClusKey (const TrkrDefs::hitsetkey hskey, const uint32_t clusid) |
Generate a cluster key using a hitsetkey and cluster id. | |
Utility functions for TPC.
Contains the functions for manipulating the various keys used by the tpc for hits, hit sets, and clusters
|
static |
bit shift for hit key
hitsetkey layout: Micromegas specific lower 16 bits 24 - 32 tracker id 16 - 24 layer 8 - 16 segmentation type 0 - 8 tile id
Definition at line 285 of file dfe_io_root.hpp.
View newest version in sPHENIX GitHub at line 285 of file dfe_io_root.hpp
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 InttDefs::genHitSetKey(), and tmp.
Referenced by PHTruthClustering::all_truth_clusters(), and SvtxTruthEval::all_truth_clusters().
TrkrDefs::cluskey TpcDefs::genClusKey | ( | const TrkrDefs::hitsetkey | hskey, |
const uint32_t | clusid | ||
) |
Generate a cluster key using a hitsetkey and cluster id.
[in] | hskey | hitsetkey |
[in] | clusid | Cluster id |
[out] | cluskey |
Definition at line 83 of file TpcDefs.cc.
View newest version in sPHENIX GitHub at line 83 of file TpcDefs.cc
References tmp.
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 tmp.
Referenced by PHG4TpcDigitizer::DigitizeCylinderCells(), PHG4TpcPadPlaneReadout::MapToPadPlane(), and PHG4TpcPadBaselineShift::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(), tmp, and TrkrDefs::tpcId.
Referenced by MakeActsGeometry::getTpcHitSetKeyFromCoords(), and PHG4TpcPadPlaneReadout::MapToPadPlane().
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 tmp.
Referenced by PHG4TpcDigitizer::DigitizeCylinderCells(), QAG4SimulationTpc::evaluate_clusters(), SvtxEvaluator::fillOutputNtuples(), PHG4TpcPadBaselineShift::process_event(), and PHG4TpcElectronDrift::process_event().
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 tmp.
Referenced by PHG4TpcDigitizer::DigitizeCylinderCells(), KFParticle_truthAndDetTools::fillDetectorBranch(), SvtxEvaluator::fillOutputNtuples(), getSectorId(), TpcClusterizer::process_event(), PHG4TpcPadBaselineShift::process_event(), and PHG4TpcElectronDrift::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 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 tmp.
Referenced by PHG4TpcDigitizer::DigitizeCylinderCells(), KFParticle_truthAndDetTools::fillDetectorBranch(), SvtxEvaluator::fillOutputNtuples(), getSide(), TpcClusterizer::process_event(), PHG4TpcPadBaselineShift::process_event(), PHG4TpcElectronDrift::process_event(), and PHTpcCentralMembraneClusterizer::process_event().
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 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 tmp.
Referenced by PHG4TpcDigitizer::DigitizeCylinderCells(), QAG4SimulationTpc::evaluate_clusters(), SvtxEvaluator::fillOutputNtuples(), PHG4TpcPadBaselineShift::process_event(), and PHG4TpcElectronDrift::process_event().