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

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.
 

Detailed Description

Utility functions for INTT.

Contains the functions for manipulating the various keys used by the intt for hits, hit sets, and clusters

Function Documentation

static const unsigned int kBitShiftRow InttDefs::__attribute__ ( (unused)  ) = 16
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.

Parameters
[in]lyrLayer index
[in]ladder_z_indexz index of sensor in ladder
[in]ladder_phi_ndexphi index of ladder in layer
[in]clusidCluster 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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TrkrDefs::cluskey InttDefs::genClusKey ( const TrkrDefs::hitsetkey  hskey,
const uint32_t  clusid 
)

Generate a cluster key using a hitsetkey and cluster id.

Parameters
[in]hskeyhitsetkey
[in]clusidCluster 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().

+ Here is the caller graph for this function:

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.

Parameters
[in]lyrLayer index
[in]ladderLadder index
[in]sensorSensor index
[out]hitsetkeyGenerate 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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uint16_t InttDefs::getCol ( TrkrDefs::hitkey  key)

Generate a hitkey from a strip id.

Parameters
[in]stripStrip id
[out]hitkeyGet the column index from hitkey
[in]hitkey
[out]columnindex

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().

+ Here is the caller graph for this function:

uint8_t InttDefs::getLadderPhiId ( TrkrDefs::hitsetkey  key)

Get the sensor id from hitsetkey.

Parameters
[in]hitsetkey
[out]sensorid

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().

+ Here is the caller graph for this function:

uint8_t InttDefs::getLadderPhiId ( TrkrDefs::cluskey  key)

Get the sensor id from cluskey.

Parameters
[in]cluskey
[out]sensorid

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.

+ Here is the call graph for this function:

uint8_t InttDefs::getLadderZId ( TrkrDefs::hitsetkey  key)

Get the ladder id from hitsetkey.

Parameters
[in]hitsetkey
[out]ladderid

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().

+ Here is the caller graph for this function:

uint8_t InttDefs::getLadderZId ( TrkrDefs::cluskey  key)

Get the ladder id from cluskey.

Parameters
[in]cluskey
[out]ladderid

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.

+ Here is the call graph for this function:

uint16_t InttDefs::getRow ( TrkrDefs::hitkey  key)

Get the row index from hitkey.

Parameters
[in]hitkey
[out]rowindex

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().

+ Here is the caller graph for this function: