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

Utility functions for MVTX. More...

Functions

static const unsigned int
kBitShiftStaveId 
__attribute__ ((unused)) = 16
 bit shift for hit key
 
uint8_t getStaveId (TrkrDefs::hitsetkey key)
 Get the stave id from hitsetkey.
 
uint8_t getStaveId (TrkrDefs::cluskey key)
 Get the stave id from cluskey.
 
uint8_t getChipId (TrkrDefs::hitsetkey key)
 Get the chip id from hitsetkey.
 
uint8_t getChipId (TrkrDefs::cluskey key)
 Get the chip id from cluskey.
 
uint16_t getCol (TrkrDefs::hitkey key)
 Get the column index from hitkey.
 
uint16_t getRow (TrkrDefs::hitkey key)
 Get the row index from hitkey.
 
TrkrDefs::hitkey genHitKey (const uint16_t col, const uint16_t row)
 Generate a hitkey from a pixels column and row index.
 
TrkrDefs::hitsetkey genHitSetKey (const uint8_t lyr, const uint8_t stave, const uint8_t chip)
 Generate a hitsetkey for the mvtx.
 
TrkrDefs::cluskey genClusKey (const uint8_t lyr, const uint8_t stave, const uint8_t chip, 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 MVTX.

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

Function Documentation

static const uint16_t MAXROW MvtxDefs::__attribute__ ( (unused)  ) = 16
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 MvtxDefs::genClusKey ( const uint8_t  lyr,
const uint8_t  stave,
const uint8_t  chip,
const uint32_t  clusid 
)

Generate a cluster key from indeces.

Parameters
[in]lyrLayer index
[in]staveStave index
[in]chipChip index
[in]clusidCluster id
[out]cluskey

Definition at line 68 of file MvtxDefs.cc.

View newest version in sPHENIX GitHub at line 68 of file MvtxDefs.cc

References InttDefs::genHitSetKey().

Referenced by PHTruthClustering::all_truth_clusters(), SvtxTruthEval::all_truth_clusters(), and MvtxClusterizer::ClusterMvtx().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TrkrDefs::cluskey MvtxDefs::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 77 of file MvtxDefs.cc.

View newest version in sPHENIX GitHub at line 77 of file MvtxDefs.cc

TrkrDefs::hitkey MvtxDefs::genHitKey ( const uint16_t  col,
const uint16_t  row 
)

Generate a hitkey from a pixels column and row index.

Parameters
[in]colColumn index
[in]rowRow index
[out]hitkey

Definition at line 48 of file MvtxDefs.cc.

View newest version in sPHENIX GitHub at line 48 of file MvtxDefs.cc

Referenced by PHG4MvtxHitReco::process_event().

+ Here is the caller graph for this function:

TrkrDefs::hitsetkey MvtxDefs::genHitSetKey ( const uint8_t  lyr,
const uint8_t  stave,
const uint8_t  chip 
)

Generate a hitsetkey for the mvtx.

Parameters
[in]lyrLayer index
[in]staveStave index
[in]chipChip index
[out]hitsetkeyGenerate a hitsetkey for the mvtx. The tracker id is known implicitly and used in the function.

Definition at line 57 of file MvtxDefs.cc.

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

References TrkrDefs::genHitSetKey(), and TrkrDefs::mvtxId.

Referenced by MakeActsGeometry::getMvtxHitSetKeyFromCoords(), MakeActsGeometry::getMvtxKeyFromNode(), and PHG4MvtxHitReco::process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uint8_t MvtxDefs::getChipId ( TrkrDefs::hitsetkey  key)

Get the chip id from hitsetkey.

Parameters
[in]hitsetkey
[out]chipid

Definition at line 20 of file MvtxDefs.cc.

View newest version in sPHENIX GitHub at line 20 of file MvtxDefs.cc

Referenced by KFParticle_truthAndDetTools::fillDetectorBranch(), getChipId(), MakeActsGeometry::makeMvtxMapPairs(), PHGenFitTrkProp::ReFitTrack(), PHGenFitTrkFitter::ReFitTrack(), and PHGenFitTrkProp::TrkrClusterToPHGenFitMeasurement().

+ Here is the caller graph for this function:

uint8_t MvtxDefs::getChipId ( TrkrDefs::cluskey  key)

Get the chip id from cluskey.

Parameters
[in]cluskey
[out]chipid

Definition at line 27 of file MvtxDefs.cc.

View newest version in sPHENIX GitHub at line 27 of file MvtxDefs.cc

References getChipId().

+ Here is the call graph for this function:

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

Get the column index from hitkey.

Parameters
[in]hitkey
[out]columnindex

Definition at line 34 of file MvtxDefs.cc.

View newest version in sPHENIX GitHub at line 34 of file MvtxDefs.cc

Referenced by MvtxClusterizer::are_adjacent(), MvtxClusterizer::ClusterMvtx(), and QAG4SimulationMvtx::evaluate_clusters().

+ Here is the caller graph for this function:

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

Get the row index from hitkey.

Parameters
[in]hitkey
[out]rowindex

Definition at line 41 of file MvtxDefs.cc.

View newest version in sPHENIX GitHub at line 41 of file MvtxDefs.cc

Referenced by MvtxClusterizer::are_adjacent(), MvtxClusterizer::ClusterMvtx(), and QAG4SimulationMvtx::evaluate_clusters().

+ Here is the caller graph for this function:

uint8_t MvtxDefs::getStaveId ( TrkrDefs::hitsetkey  key)

Get the stave id from hitsetkey.

Parameters
[in]hitsetkey
[out]staveid

Definition at line 6 of file MvtxDefs.cc.

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

Referenced by KFParticle_truthAndDetTools::fillDetectorBranch(), getStaveId(), MakeActsGeometry::makeMvtxMapPairs(), PHGenFitTrkProp::ReFitTrack(), PHGenFitTrkFitter::ReFitTrack(), and PHGenFitTrkProp::TrkrClusterToPHGenFitMeasurement().

+ Here is the caller graph for this function:

uint8_t MvtxDefs::getStaveId ( TrkrDefs::cluskey  key)

Get the stave id from cluskey.

Parameters
[in]cluskey
[out]staveid

Definition at line 13 of file MvtxDefs.cc.

View newest version in sPHENIX GitHub at line 13 of file MvtxDefs.cc

References getStaveId().

+ Here is the call graph for this function: