ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
|
Utility functions for INTT. More...
Functions | |
static const unsigned int kBitShiftLadderZId | __attribute__ ((unused)) = 16 |
uint8_t | getLadderZId (TrkrDefs::hitsetkey key) |
Get the ladder id from hitsetkey. | |
uint8_t | getLadderZId (TrkrDefs::cluskey key) |
Get the ladder id from cluskey. | |
uint8_t | getLadderPhiId (TrkrDefs::hitsetkey key) |
Get the sensor id from hitsetkey. | |
uint8_t | getLadderPhiId (TrkrDefs::cluskey key) |
Get the sensor id from cluskey. | |
uint16_t | getCol (TrkrDefs::hitkey key) |
Generate a hitkey from a strip id. | |
uint16_t | getRow (TrkrDefs::hitkey key) |
Get the row index from hitkey. | |
TrkrDefs::hitkey | genHitKey (const uint16_t col, const uint16_t row) |
TrkrDefs::hitsetkey | genHitSetKey (const uint8_t lyr, const uint8_t ladder_z_index, const uint8_t ladder_phi_index) |
Generate a hitsetkey for the intt. | |
TrkrDefs::cluskey | genClusKey (const uint8_t lyr, const uint8_t LadderZId, const uint8_t LadderPhiId, 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 INTT.
Contains the functions for manipulating the various keys used by the intt for hits, hit sets, and clusters
|
static |
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 InttDefs::genClusKey | ( | const uint8_t | lyr, |
const uint8_t | LadderZId, | ||
const uint8_t | LadderPhiId, | ||
const uint32_t | clusid | ||
) |
Generate a cluster key from indeces.
[in] | lyr | Layer index |
[in] | ladder_z_index | z index of sensor in ladder |
[in] | ladder_phi_ndex | phi index of ladder in layer |
[in] | clusid | Cluster id |
[out] | cluskey |
Definition at line 74 of file InttDefs.cc.
View newest version in sPHENIX GitHub at line 74 of file InttDefs.cc
References genHitSetKey(), and tmp.
Referenced by PHTruthClustering::all_truth_clusters(), SvtxTruthEval::all_truth_clusters(), and InttClusterizer::ClusterLadderCells().
TrkrDefs::cluskey InttDefs::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 InttDefs.cc.
View newest version in sPHENIX GitHub at line 83 of file InttDefs.cc
References tmp.
TrkrDefs::hitkey InttDefs::genHitKey | ( | const uint16_t | col, |
const uint16_t | row | ||
) |
Definition at line 54 of file InttDefs.cc.
View newest version in sPHENIX GitHub at line 54 of file InttDefs.cc
References tmp.
Referenced by PHG4InttHitReco::process_event().
TrkrDefs::hitsetkey InttDefs::genHitSetKey | ( | const uint8_t | lyr, |
const uint8_t | ladder_z_index, | ||
const uint8_t | ladder_phi_index | ||
) |
Generate a hitsetkey for the intt.
[in] | lyr | Layer index |
[in] | ladder | Ladder index |
[in] | sensor | Sensor index |
[out] | hitsetkey | Generate a hitsetkey for the intt. The tracker id is known implicitly and used in the function. |
Definition at line 63 of file InttDefs.cc.
View newest version in sPHENIX GitHub at line 63 of file InttDefs.cc
References TrkrDefs::genHitSetKey(), TrkrDefs::inttId, and tmp.
Referenced by genClusKey(), MvtxDefs::genClusKey(), TpcDefs::genClusKey(), TrkrDefs::getClusKeyHi(), TrkrDefs::getClusKeyLo(), TrkrDefs::getHitSetKeyHi(), TrkrDefs::getHitSetKeyLo(), MakeActsGeometry::getInttHitSetKeyFromCoords(), MakeActsGeometry::getInttKeyFromNode(), and PHG4InttHitReco::process_event().
uint16_t InttDefs::getCol | ( | TrkrDefs::hitkey | key | ) |
Generate a hitkey from a strip id.
[in] | strip | Strip id |
[out] | hitkey | Get the column index from hitkey |
[in] | hitkey | |
[out] | column | index |
Definition at line 40 of file InttDefs.cc.
View newest version in sPHENIX GitHub at line 40 of file InttDefs.cc
References tmp.
Referenced by InttClusterizer::ClusterLadderCells(), PHG4InttDigitizer::DigitizeLadderCells(), QAG4SimulationIntt::evaluate_clusters(), and InttClusterizer::ladder_are_adjacent().
uint8_t InttDefs::getLadderPhiId | ( | TrkrDefs::hitsetkey | key | ) |
Get the sensor id from hitsetkey.
[in] | hitsetkey | |
[out] | sensor | id |
Definition at line 26 of file InttDefs.cc.
View newest version in sPHENIX GitHub at line 26 of file InttDefs.cc
References tmp.
Referenced by PHG4InttDigitizer::DigitizeLadderCells(), KFParticle_truthAndDetTools::fillDetectorBranch(), getLadderPhiId(), MakeActsGeometry::makeInttMapPairs(), PHActsSiliconSeeding::matchInttClusters(), PHGenFitTrkProp::ReFitTrack(), PHGenFitTrkFitter::ReFitTrack(), and PHGenFitTrkProp::TrkrClusterToPHGenFitMeasurement().
uint8_t InttDefs::getLadderPhiId | ( | TrkrDefs::cluskey | key | ) |
Get the sensor id from cluskey.
[in] | cluskey | |
[out] | sensor | id |
Definition at line 33 of file InttDefs.cc.
View newest version in sPHENIX GitHub at line 33 of file InttDefs.cc
References getLadderPhiId(), and tmp.
uint8_t InttDefs::getLadderZId | ( | TrkrDefs::hitsetkey | key | ) |
Get the ladder id from hitsetkey.
[in] | hitsetkey | |
[out] | ladder | id |
Definition at line 12 of file InttDefs.cc.
View newest version in sPHENIX GitHub at line 12 of file InttDefs.cc
References tmp.
Referenced by InttClusterizer::ClusterLadderCells(), PHG4InttDigitizer::DigitizeLadderCells(), KFParticle_truthAndDetTools::fillDetectorBranch(), getLadderZId(), MakeActsGeometry::makeInttMapPairs(), PHActsSiliconSeeding::matchInttClusters(), PHGenFitTrkProp::ReFitTrack(), PHGenFitTrkFitter::ReFitTrack(), and PHGenFitTrkProp::TrkrClusterToPHGenFitMeasurement().
uint8_t InttDefs::getLadderZId | ( | TrkrDefs::cluskey | key | ) |
Get the ladder id from cluskey.
[in] | cluskey | |
[out] | ladder | id |
Definition at line 19 of file InttDefs.cc.
View newest version in sPHENIX GitHub at line 19 of file InttDefs.cc
References getLadderZId(), and tmp.
uint16_t InttDefs::getRow | ( | TrkrDefs::hitkey | key | ) |
Get the row index from hitkey.
[in] | hitkey | |
[out] | row | index |
Definition at line 47 of file InttDefs.cc.
View newest version in sPHENIX GitHub at line 47 of file InttDefs.cc
References tmp.
Referenced by InttClusterizer::ClusterLadderCells(), PHG4InttDigitizer::DigitizeLadderCells(), QAG4SimulationIntt::evaluate_clusters(), and InttClusterizer::ladder_are_adjacent().