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

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.
 

Detailed Description

Utility functions for TPC.

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

Function Documentation

static const uint16_t MAXTBIN TpcDefs::__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 TpcDefs::genClusKey ( const uint8_t  lyr,
const uint8_t  sector,
const uint8_t  side,
const uint32_t  clusid 
)

Generate a cluster key from indeces.

Parameters
[in]lyrLayer index
[in]sectorSector index
[in]sideSide index
[in]clusidCluster 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().

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

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TrkrDefs::cluskey TpcDefs::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 TpcDefs.cc.

View newest version in sPHENIX GitHub at line 83 of file TpcDefs.cc

TrkrDefs::hitkey TpcDefs::genHitKey ( const uint16_t  pad,
const uint16_t  tbin 
)

Generate a hitkey from a pad index and time bin.

Parameters
[in]padPad index
[in]tbinTime bin
[out]hitkey

Definition at line 54 of file TpcDefs.cc.

View newest version in sPHENIX GitHub at line 54 of file TpcDefs.cc

Referenced by PHG4TpcDigitizer::DigitizeCylinderCells(), PHG4TpcPadPlaneReadout::MapToPadPlane(), and PHG4TpcPadBaselineShift::process_event().

+ Here is the caller graph for this function:

TrkrDefs::hitsetkey TpcDefs::genHitSetKey ( const uint8_t  lyr,
const uint8_t  sector,
const uint8_t  side 
)

Generate a hitsetkey for the tpc.

Parameters
[in]lyrLayer index
[in]sectorSector index
[in]sideSide index
[out]hitsetkeyGenerate 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(), and TrkrDefs::tpcId.

Referenced by MakeActsGeometry::getTpcHitSetKeyFromCoords(), and PHG4TpcPadPlaneReadout::MapToPadPlane().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

uint16_t TpcDefs::getPad ( TrkrDefs::hitkey  key)

Get the pad index from hitkey.

Parameters
[in]hitkey
[out]padindex

Definition at line 40 of file TpcDefs.cc.

View newest version in sPHENIX GitHub at line 40 of file TpcDefs.cc

Referenced by PHG4TpcDigitizer::DigitizeCylinderCells(), QAG4SimulationTpc::evaluate_clusters(), SvtxEvaluator::fillOutputNtuples(), PHG4TpcPadBaselineShift::process_event(), and PHG4TpcElectronDrift::process_event().

+ Here is the caller graph for this function:

uint8_t TpcDefs::getSectorId ( TrkrDefs::hitsetkey  key)

Get the sector id from hitsetkey.

Parameters
[in]hitsetkey
[out]sectorid

Definition at line 12 of file TpcDefs.cc.

View newest version in sPHENIX GitHub at line 12 of file TpcDefs.cc

Referenced by PHG4TpcDigitizer::DigitizeCylinderCells(), KFParticle_truthAndDetTools::fillDetectorBranch(), SvtxEvaluator::fillOutputNtuples(), getSectorId(), TpcClusterizer::process_event(), PHG4TpcPadBaselineShift::process_event(), and PHG4TpcElectronDrift::process_event().

+ Here is the caller graph for this function:

uint8_t TpcDefs::getSectorId ( TrkrDefs::cluskey  key)

Get the sector id from cluskey.

Parameters
[in]cluskey
[out]sectorid

Definition at line 19 of file TpcDefs.cc.

View newest version in sPHENIX GitHub at line 19 of file TpcDefs.cc

References getSectorId().

+ Here is the call graph for this function:

uint8_t TpcDefs::getSide ( TrkrDefs::hitsetkey  key)

Get the side from hitsetkey.

Parameters
[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

Referenced by PHG4TpcDigitizer::DigitizeCylinderCells(), KFParticle_truthAndDetTools::fillDetectorBranch(), SvtxEvaluator::fillOutputNtuples(), getSide(), TpcClusterizer::process_event(), PHG4TpcPadBaselineShift::process_event(), PHG4TpcElectronDrift::process_event(), and PHTpcCentralMembraneClusterizer::process_event().

+ Here is the caller graph for this function:

uint8_t TpcDefs::getSide ( TrkrDefs::cluskey  key)

Get the side id from cluskey.

Parameters
[in]cluskey
[out]sideid

Definition at line 33 of file TpcDefs.cc.

View newest version in sPHENIX GitHub at line 33 of file TpcDefs.cc

References getSide().

+ Here is the call graph for this function:

uint16_t TpcDefs::getTBin ( TrkrDefs::hitkey  key)

Get the time bin from hitkey.

Parameters
[in]hitkey
[out]timebin

Definition at line 47 of file TpcDefs.cc.

View newest version in sPHENIX GitHub at line 47 of file TpcDefs.cc

Referenced by PHG4TpcDigitizer::DigitizeCylinderCells(), QAG4SimulationTpc::evaluate_clusters(), SvtxEvaluator::fillOutputNtuples(), PHG4TpcPadBaselineShift::process_event(), and PHG4TpcElectronDrift::process_event().

+ Here is the caller graph for this function: