EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TrkrDefs Namespace Reference

Define a namespace for Trkr typedefs. More...

Typedefs

typedef uint32_t hitkey
 Key types.
 
typedef uint32_t hitsetkey
 
typedef uint64_t cluskey
 
typedef uint32_t clushitkey
 
typedef uint16_t subsurfkey
 

Enumerations

enum  TrkrId {
  mvtxId = 0, inttId = 1, tpcId = 2, micromegasId = 3,
  ttl = 4
}
 Enumeration for tracker id to easily maintain consistency. More...
 

Functions

static double EdepScaleFactor __attribute__ ((unused)) = 5.0e8
 Max values for keys (used as defaults or invalid values)
 
void printBits (const TrkrDefs::hitsetkey key, std::ostream &os=std::cout)
 Print the bits for each key type.
 
void printBits (const TrkrDefs::cluskey key, std::ostream &os=std::cout)
 
uint8_t getTrkrId (const TrkrDefs::hitsetkey key)
 Get the tracker ID from either key type.
 
uint8_t getTrkrId (const TrkrDefs::cluskey key)
 
uint8_t getLayer (const TrkrDefs::hitsetkey key)
 Get the layer number from either key type.
 
uint8_t getLayer (const TrkrDefs::cluskey key)
 
uint32_t getClusIndex (const TrkrDefs::cluskey key)
 Get the lower 32 bits for cluster keys only.
 
TrkrDefs::hitsetkey genHitSetKey (const TrkrDefs::TrkrId trkrId, const uint8_t lyr)
 generate the common upper 16 bits for hitsetkey
 
uint32_t getHitSetKeyFromClusKey (const TrkrDefs::cluskey key)
 Get the upper 32 bits from cluster keys.
 
TrkrDefs::hitsetkey getHitSetKeyLo (const TrkrDefs::TrkrId trkrId)
 Get a valid low / hi range for hitsetkey given tracker id & layer.
 
TrkrDefs::hitsetkey getHitSetKeyHi (const TrkrDefs::TrkrId trkrId)
 
TrkrDefs::hitsetkey getHitSetKeyLo (const TrkrDefs::TrkrId trkrId, const uint8_t lyr)
 
TrkrDefs::hitsetkey getHitSetKeyHi (const TrkrDefs::TrkrId trkrId, const uint8_t lyr)
 
TrkrDefs::cluskey getClusKeyLo (const TrkrDefs::TrkrId trkrId)
 Get a valid low / hi range for cluskey given tracker id & layer.
 
TrkrDefs::cluskey getClusKeyHi (const TrkrDefs::TrkrId trkrId)
 
TrkrDefs::cluskey getClusKeyLo (const TrkrDefs::TrkrId trkrId, const uint8_t lyr)
 
TrkrDefs::cluskey getClusKeyHi (const TrkrDefs::TrkrId trkrId, const uint8_t lyr)
 
uint8_t getPhiElement (TrkrDefs::hitsetkey key)
 
uint8_t getZElement (TrkrDefs::hitsetkey key)
 
uint8_t getPhiElement (TrkrDefs::cluskey key)
 
uint8_t getZElement (TrkrDefs::cluskey key)
 

Detailed Description

Define a namespace for Trkr typedefs.

Typedef Documentation

Definition at line 26 of file TrkrDefs.h.

View newest version in sPHENIX GitHub at line 26 of file TrkrDefs.h

typedef uint64_t TrkrDefs::cluskey

Definition at line 25 of file TrkrDefs.h.

View newest version in sPHENIX GitHub at line 25 of file TrkrDefs.h

Key types.

Definition at line 23 of file TrkrDefs.h.

View newest version in sPHENIX GitHub at line 23 of file TrkrDefs.h

Definition at line 24 of file TrkrDefs.h.

View newest version in sPHENIX GitHub at line 24 of file TrkrDefs.h

Definition at line 27 of file TrkrDefs.h.

View newest version in sPHENIX GitHub at line 27 of file TrkrDefs.h

Enumeration Type Documentation

Enumeration for tracker id to easily maintain consistency.

Enumerator:
mvtxId 
inttId 
tpcId 
micromegasId 
ttl 

Definition at line 50 of file TrkrDefs.h.

View newest version in sPHENIX GitHub at line 50 of file TrkrDefs.h

Function Documentation

static const unsigned int kBitShiftZElement TrkrDefs::__attribute__ ( (unused)  ) = 5.0e8
staticpure virtual

Max values for keys (used as defaults or invalid values)

Max values for keys (used as defaults or invalid values)

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::hitsetkey TrkrDefs::genHitSetKey ( const TrkrDefs::TrkrId  trkrId,
const uint8_t  lyr 
)

generate the common upper 16 bits for hitsetkey

Definition at line 109 of file TrkrDefs.cc.

View newest version in sPHENIX GitHub at line 109 of file TrkrDefs.cc

Referenced by MicromegasDefs::genHitSetKey(), InttDefs::genHitSetKey(), MvtxDefs::genHitSetKey(), TpcDefs::genHitSetKey(), and RawDigitBuilderTTL::process_event().

+ Here is the caller graph for this function:

uint32_t TrkrDefs::getClusIndex ( const TrkrDefs::cluskey  key)

Get the lower 32 bits for cluster keys only.

Definition at line 45 of file TrkrDefs.cc.

View newest version in sPHENIX GitHub at line 45 of file TrkrDefs.cc

Referenced by SvtxEvaluator::fillOutputNtuples().

+ Here is the caller graph for this function:

TrkrDefs::cluskey TrkrDefs::getClusKeyHi ( const TrkrDefs::TrkrId  trkrId)

Definition at line 88 of file TrkrDefs.cc.

View newest version in sPHENIX GitHub at line 88 of file TrkrDefs.cc

References InttDefs::genHitSetKey().

+ Here is the call graph for this function:

TrkrDefs::cluskey TrkrDefs::getClusKeyHi ( const TrkrDefs::TrkrId  trkrId,
const uint8_t  lyr 
)

Definition at line 102 of file TrkrDefs.cc.

View newest version in sPHENIX GitHub at line 102 of file TrkrDefs.cc

References InttDefs::genHitSetKey().

+ Here is the call graph for this function:

TrkrDefs::cluskey TrkrDefs::getClusKeyLo ( const TrkrDefs::TrkrId  trkrId)

Get a valid low / hi range for cluskey given tracker id & layer.

Definition at line 81 of file TrkrDefs.cc.

View newest version in sPHENIX GitHub at line 81 of file TrkrDefs.cc

References InttDefs::genHitSetKey().

+ Here is the call graph for this function:

TrkrDefs::cluskey TrkrDefs::getClusKeyLo ( const TrkrDefs::TrkrId  trkrId,
const uint8_t  lyr 
)

Definition at line 95 of file TrkrDefs.cc.

View newest version in sPHENIX GitHub at line 95 of file TrkrDefs.cc

References InttDefs::genHitSetKey().

+ Here is the call graph for this function:

TrkrDefs::hitsetkey TrkrDefs::getHitSetKeyHi ( const TrkrDefs::TrkrId  trkrId)

Definition at line 63 of file TrkrDefs.cc.

View newest version in sPHENIX GitHub at line 63 of file TrkrDefs.cc

References InttDefs::genHitSetKey().

Referenced by TrkrHitSetContainerv1::getHitSets().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TrkrDefs::hitsetkey TrkrDefs::getHitSetKeyHi ( const TrkrDefs::TrkrId  trkrId,
const uint8_t  lyr 
)

Definition at line 75 of file TrkrDefs.cc.

View newest version in sPHENIX GitHub at line 75 of file TrkrDefs.cc

References InttDefs::genHitSetKey().

+ Here is the call graph for this function:

TrkrDefs::hitsetkey TrkrDefs::getHitSetKeyLo ( const TrkrDefs::TrkrId  trkrId)

Get a valid low / hi range for hitsetkey given tracker id & layer.

Definition at line 57 of file TrkrDefs.cc.

View newest version in sPHENIX GitHub at line 57 of file TrkrDefs.cc

References InttDefs::genHitSetKey().

Referenced by TrkrHitSetContainerv1::getHitSets().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TrkrDefs::hitsetkey TrkrDefs::getHitSetKeyLo ( const TrkrDefs::TrkrId  trkrId,
const uint8_t  lyr 
)

Definition at line 69 of file TrkrDefs.cc.

View newest version in sPHENIX GitHub at line 69 of file TrkrDefs.cc

References InttDefs::genHitSetKey().

+ Here is the call graph for this function:

uint8_t TrkrDefs::getLayer ( const TrkrDefs::hitsetkey  key)

Get the layer number from either key type.

Definition at line 31 of file TrkrDefs.cc.

View newest version in sPHENIX GitHub at line 31 of file TrkrDefs.cc

Referenced by TrkrClusterHitAssocv2::addAssoc(), TrkrClusterContainerv2::addClusterSpecifyKey(), ALICEKF::ALICEKalmanFilter(), SvtxClusterEval::all_clusters_from(), SvtxHitEval::all_hits_from(), SvtxClusterEval::all_truth_clusters(), SvtxClusterEval::all_truth_hits_by_nhit(), SvtxClusterEval::best_cluster_by_nhit(), PHGenFitTrkProp::BuildLayerZPhiHitMap(), PHTpcResiduals::calculateTpcResiduals(), PHGenFitTrkProp::check_track_exists(), InttClusterizer::ClusterLadderCells(), MvtxClusterizer::ClusterMvtx(), comparing(), TrackEvaluation::create_cluster(), PHG4TpcDigitizer::DigitizeCylinderCells(), PHG4InttDigitizer::DigitizeLadderCells(), PHG4MvtxDigitizer::DigitizeMvtxLadderCells(), QAG4SimulationIntt::evaluate_clusters(), QAG4SimulationMvtx::evaluate_clusters(), QAG4SimulationMicromegas::evaluate_clusters(), TrackEvaluation::evaluate_event(), QAG4SimulationMicromegas::evaluate_hits(), DSTEmulator::evaluate_tracks(), PHPatternReco::export_output(), SvtxClusterEval::fill_cluster_layer_map(), KFParticle_truthAndDetTools::fillDetectorBranch(), SvtxEvaluator::fillOutputNtuples(), PHRTreeSeeding::FillTree(), PHCASeeding::FillTree(), PHCASeeding::FindBiLinks(), TrkrClusterContainerv2::findCluster(), TrkrClusterContainerv2::findOrAddCluster(), PHCASeeding::FollowBiLinks(), SvtxTrackEval::get_layer_range_contribution(), SvtxTrackEval::get_nclusters_contribution_by_layer(), PHTpcClusterMover::get_tpc_surface_from_coords(), TrkrClusterHitAssocv2::getClusterMap(), TrkrClusterContainerv2::getClusterMap(), TrkrClusterContainerv2::getClusters(), TrkrClusterHitAssocv2::getHits(), getLayer(), PHTruthSiliconAssociation::getSiliconClustersFromParticle(), ActsTransformations::getTpcSurface(), ActsEvaluator::getTpcSurface(), PHTpcResiduals::getTpcSurface(), PHActsTrkFitter::getTpcSurface(), PHTpcTrackSeedCircleFit::getTrackClusters(), SvtxClusterEval::gtrackid_and_layer_by_nhit(), TrkrClusterContainerv3::identify(), TrkrClusterContainerv2::identify(), TrkrHitSetv1::identify(), TrkrClusterHitAssocv2::identify(), TrkrHitTruthAssocv1::identify(), TrkrClusterHitAssocv3::identify(), TrkrHitSetContainerv1::identify(), TrkrClusterContainerv1::identify(), PHGenFitTrkProp::KalmanTrkProp(), largeintersection(), PHGenFitTrkFitter::MakeSvtxTrack(), MakeActsGeometry::makeTpcMapPairs(), SvtxClusterEval::max_truth_cluster_by_energy(), SvtxClusterEval::max_truth_particle_by_cluster_energy(), PHSimpleKFProp::MoveToFirstTPCCluster(), PHGenFitTrkProp::OutputPHGenFitTrack(), PHSimpleKFProp::PrepareKDTrees(), SvtxEvaluator::printOutputInfo(), PHSiliconTruthTrackSeeding::Process(), PHHybridSeeding::Process(), QAG4SimulationVertex::process_event(), PHTpcTrackSeedCircleFit::process_event(), TpcClusterCleaner::process_event(), TpcClusterizer::process_event(), QAG4SimulationTracking::process_event(), PHG4TpcPadBaselineShift::process_event(), MicromegasClusterizer::process_event(), PHG4TpcElectronDrift::process_event(), PHTruthSiliconAssociation::process_event(), PHTpcClusterMover::process_event(), PHTruthClustering::process_event(), PHTpcCentralMembraneClusterizer::process_event(), PHMicromegasTpcTrackMatching::process_event(), TpcDirectLaserReconstruction::process_track(), PHSimpleKFProp::PropagateTrack(), SvtxClusterEval::reco_cluster_from_truth_cluster(), PHGenFitTrkProp::ReFitTrack(), PHGenFitTrkFitter::ReFitTrack(), TrkrClusterContainerv2::removeCluster(), PHGenFitTrkProp::SvtxTrackToPHGenFitTracks(), PHGenFitTrkProp::TrackPropPatRec(), PHInitZVertexing::translate_input(), PHPatternReco::translate_input(), PHHoughSeeding::translate_input(), and PHGenFitTrkProp::TrkrClusterToPHGenFitMeasurement().

uint8_t TrkrDefs::getLayer ( const TrkrDefs::cluskey  key)

Definition at line 38 of file TrkrDefs.cc.

View newest version in sPHENIX GitHub at line 38 of file TrkrDefs.cc

References getLayer().

+ Here is the call graph for this function:

uint8_t TrkrDefs::getPhiElement ( TrkrDefs::hitsetkey  key)
uint8_t TrkrDefs::getPhiElement ( TrkrDefs::cluskey  key)

Definition at line 133 of file TrkrDefs.cc.

View newest version in sPHENIX GitHub at line 133 of file TrkrDefs.cc

References getPhiElement().

+ Here is the call graph for this function:

uint8_t TrkrDefs::getTrkrId ( const TrkrDefs::hitsetkey  key)

Get the tracker ID from either key type.

Definition at line 17 of file TrkrDefs.cc.

View newest version in sPHENIX GitHub at line 17 of file TrkrDefs.cc

Referenced by SvtxHitEval::all_truth_hits(), SvtxClusterEval::all_truth_hits(), SvtxClusterEval::all_truth_hits_by_nhit(), PHSimpleVertexFinder::checkDCAs(), PHTpcResiduals::checkTrack(), PHMicromegasTpcTrackMatching::copyMicromegasClustersToCorrectedMap(), PHTruthSiliconAssociation::copySiliconClustersToCorrectedMap(), PHSiliconTpcTrackMatching::copySiliconClustersToCorrectedMap(), PHSiliconTpcTrackMatching::correctTpcClusterZ(), PHActsSiliconSeeding::createSvtxTrack(), QAG4SimulationTpc::evaluate_clusters(), TrackEvaluation::evaluate_clusters(), TrackEvaluation::evaluate_event(), DSTEmulator::evaluate_tracks(), TrackEvaluation::evaluate_tracks(), KFParticle_truthAndDetTools::fillDetectorBranch(), QAG4SimulationIntt::find_g4hits(), QAG4SimulationMvtx::find_g4hits(), QAG4SimulationMicromegas::find_g4hits(), QAG4SimulationTpc::find_g4hits(), QAG4SimulationTracking::find_g4hits(), DSTEmulator::find_g4hits(), TrackEvaluation::find_g4hits(), PHSiliconTpcTrackMatching::findEtaPhiMatches(), PHSiliconTpcTrackMatching::getBunchCrossing(), PHTruthSiliconAssociation::getG4PrimaryParticle(), ActsTransformations::getGlobalPosition(), PHTruthSiliconAssociation::getSiliconClustersFromParticle(), ActsTransformations::getSurface(), ActsEvaluator::getSurface(), PHTpcResiduals::getSurface(), PHActsTrkFitter::getSurface(), PHTpcTrackSeedCircleFit::getTrackClusters(), PHActsVertexFinder::getTracks(), getTrkrId(), SvtxClusterEval::gtrackid_and_layer_by_nhit(), TrkrHitSetv1::identify(), PHActsSiliconSeeding::identifyBestSeed(), PHActsSiliconSeeding::makePossibleStubs(), PHActsSiliconSeeding::makeSvtxTracks(), PHSimpleKFProp::MoveToFirstTPCCluster(), PHSiliconTruthTrackSeeding::Process(), QAG4SimulationVertex::process_event(), TpcClusterCleaner::process_event(), QAG4SimulationTracking::process_event(), PHTrackSelector::process_event(), PHTpcClusterMover::process_event(), PHTruthSiliconAssociation::process_event(), PHTruthClustering::process_event(), PHTpcCentralMembraneClusterizer::process_event(), PHSimpleKFProp::process_event(), PHRaveVertexing::process_event(), PHTpcDeltaZCorrection::process_track(), TpcDirectLaserReconstruction::process_track(), TpcSpaceChargeReconstruction::process_track(), TpcDirectLaserReconstruction::process_tracks(), PHTpcResiduals::processTrack(), PHGenFitTrkProp::ReFitTrack(), PHGenFitTrkFitter::ReFitTrack(), and PHGenFitTrkProp::TrkrClusterToPHGenFitMeasurement().

uint8_t TrkrDefs::getTrkrId ( const TrkrDefs::cluskey  key)

Definition at line 24 of file TrkrDefs.cc.

View newest version in sPHENIX GitHub at line 24 of file TrkrDefs.cc

References getTrkrId().

+ Here is the call graph for this function:

uint8_t TrkrDefs::getZElement ( TrkrDefs::hitsetkey  key)
uint8_t TrkrDefs::getZElement ( TrkrDefs::cluskey  key)

Definition at line 139 of file TrkrDefs.cc.

View newest version in sPHENIX GitHub at line 139 of file TrkrDefs.cc

References getZElement().

+ Here is the call graph for this function:

void TrkrDefs::printBits ( const TrkrDefs::hitsetkey  key,
std::ostream &  os = std::cout 
)

Print the bits for each key type.

Definition at line 6 of file TrkrDefs.cc.

View newest version in sPHENIX GitHub at line 6 of file TrkrDefs.cc

void TrkrDefs::printBits ( const TrkrDefs::cluskey  key,
std::ostream &  os = std::cout 
)

Definition at line 11 of file TrkrDefs.cc.

View newest version in sPHENIX GitHub at line 11 of file TrkrDefs.cc