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

Enumerations

enum  SegmentationType : uint8_t
 tells the direction along which a given cylinder is segmented More...
 
enum  DriftDirection : uint8_t
 tells the drift direction for a given micromegas layer More...
 

Functions

TrkrDefs::hitsetkey genHitSetKey (uint8_t layer, SegmentationType segmentation, uint8_t tile)
 Generate a hitsetkey for the micromegas.
 
SegmentationType getSegmentationType (TrkrDefs::hitsetkey)
 Get the segmentation type from hitsetkey.
 
uint8_t getTileId (TrkrDefs::hitsetkey)
 Get the tile id from hitsetkey.
 
TrkrDefs::hitkey genHitKey (uint16_t strip)
 Generate a hitkey from strip index inside tile.
 
uint16_t getStrip (TrkrDefs::hitkey)
 get strip from hit key
 
TrkrDefs::cluskey genClusterKey (TrkrDefs::hitsetkey hskey, uint32_t clusid)
 Generate a cluster key using a hitsetkey and cluster id.
 
SegmentationType getSegmentationType (TrkrDefs::cluskey)
 Get the segmentation type from cluster key.
 
uint8_t getTileId (TrkrDefs::cluskey)
 Get the tile id from cluster key.
 
static constexpr unsigned int
kBitShiftSegmentation 
__attribute__ ((unused))=0
 bit shift for hit key
 

Enumeration Type Documentation

tells the drift direction for a given micromegas layer

this is needed for properly implementing transverse diffusion in the layer

Definition at line 26 of file MicromegasDefs.h.

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

tells the direction along which a given cylinder is segmented

Definition at line 18 of file MicromegasDefs.h.

View newest version in sPHENIX GitHub at line 18 of file MicromegasDefs.h

Function Documentation

static constexpr unsigned int kBitShiftStrip MicromegasDefs::__attribute__ ( (unused)  )
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 MicromegasDefs::genClusterKey ( TrkrDefs::hitsetkey  hskey,
uint32_t  clusid 
)

Generate a cluster key using a hitsetkey and cluster id.

Parameters
[in]hskeyhitsetkey
[in]clusidCluster id
[out]cluskey

Definition at line 68 of file MicromegasDefs.cc.

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

References tmp.

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

+ Here is the caller graph for this function:

TrkrDefs::hitkey MicromegasDefs::genHitKey ( uint16_t  strip)

Generate a hitkey from strip index inside tile.

Parameters
[in]stripstrip index

Definition at line 54 of file MicromegasDefs.cc.

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

Referenced by PHG4MicromegasHitReco::process_event().

+ Here is the caller graph for this function:

TrkrDefs::hitsetkey MicromegasDefs::genHitSetKey ( uint8_t  layer,
SegmentationType  segmentation,
uint8_t  tile 
)
static

Generate a hitsetkey for the micromegas.

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

Definition at line 26 of file MicromegasDefs.cc.

View newest version in sPHENIX GitHub at line 26 of file MicromegasDefs.cc

References TrkrDefs::genHitSetKey(), TrkrDefs::micromegasId, and tmp.

Referenced by PHTruthClustering::all_truth_clusters(), SvtxTruthEval::all_truth_clusters(), MakeActsGeometry::makeMmMapPairs(), PHG4MicromegasHitReco::process_event(), and PHMicromegasTpcTrackMatching::process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

SegmentationType MicromegasDefs::getSegmentationType ( TrkrDefs::hitsetkey  )

Get the segmentation type from hitsetkey.

Parameters
[in]hitsetkey
[out]segmentations

Definition at line 40 of file MicromegasDefs.cc.

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

References tmp.

Referenced by QAG4SimulationMicromegas::evaluate_clusters(), and getSegmentationType().

+ Here is the caller graph for this function:

SegmentationType MicromegasDefs::getSegmentationType ( TrkrDefs::cluskey  )

Get the segmentation type from cluster key.

Parameters
[in]cluskey
[out]segmentations

Definition at line 77 of file MicromegasDefs.cc.

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

References getSegmentationType(), and tmp.

+ Here is the call graph for this function:

uint16_t MicromegasDefs::getStrip ( TrkrDefs::hitkey  key)

get strip from hit key

Definition at line 61 of file MicromegasDefs.cc.

View newest version in sPHENIX GitHub at line 61 of file MicromegasDefs.cc

References tmp.

Referenced by MicromegasClusterizer::process_event().

+ Here is the caller graph for this function:

uint8_t MicromegasDefs::getTileId ( TrkrDefs::hitsetkey  )

Get the tile id from hitsetkey.

Parameters
[in]hitsetkey
[out]tileid s

Definition at line 47 of file MicromegasDefs.cc.

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

References tmp.

Referenced by QAG4SimulationMicromegas::evaluate_clusters(), TrackEvaluation::evaluate_clusters(), TrackEvaluation::evaluate_tracks(), getTileId(), MicromegasClusterizer::process_event(), and PHGenFitTrkFitter::ReFitTrack().

+ Here is the caller graph for this function:

uint8_t MicromegasDefs::getTileId ( TrkrDefs::cluskey  )

Get the tile id from cluster key.

Parameters
[in]cluskey
[out]tileid s

Definition at line 84 of file MicromegasDefs.cc.

View newest version in sPHENIX GitHub at line 84 of file MicromegasDefs.cc

References getTileId(), and tmp.

+ Here is the call graph for this function: