Analysis Software
Documentation for sPHENIX simulation 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
kBitShiftTimeBucketIdOffset 
__attribute__ ((unused))=0 = 10
 
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.
 
int getTimeBucketId (TrkrDefs::hitsetkey key)
 Generate a hitkey from a strip id.
 
int getTimeBucketId (TrkrDefs::cluskey key)
 Get the time bucket id from the hitsetkey.
 
uint16_t getCol (TrkrDefs::hitkey key)
 Get the time bucket id from the cluskey.
 
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, const int time_bucket)
 Generate a hitsetkey for the intt.
 
TrkrDefs::cluskey genClusKey (const uint8_t lyr, const uint8_t ladder_z_index, const uint8_t ladder_phi_index, const int crossing, const uint32_t clusid)
 Generate a cluster key from indeces.
 
TrkrDefs::hitsetkey resetCrossingHitSetKey (const TrkrDefs::hitsetkey hitsetkey)
 Zero the crossing bits in a copy of the hitsetkey.
 

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)  ) = 10
staticpure virtual
TrkrDefs::cluskey InttDefs::genClusKey ( const uint8_t  lyr,
const uint8_t  ladder_z_index,
const uint8_t  ladder_phi_index,
const int  crossing,
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]crossing- bunch crossing
[in]clusidCluster id
[out]cluskey

Definition at line 111 of file InttDefs.cc.

View newest version in sPHENIX GitHub at line 111 of file InttDefs.cc

References TrkrDefs::genClusKey(), and MicromegasDefs::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::hitkey InttDefs::genHitKey ( const uint16_t  col,
const uint16_t  row 
)

Definition at line 81 of file InttDefs.cc.

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

References Acts::Test::tmp().

Referenced by InttCombinedRawDataDecoder::process_event(), InttRawDataDecoder::process_event(), and PHG4InttHitReco::process_event().

+ Here is the call graph for this function:

+ 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,
const int  time_bucket 
)

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 90 of file InttDefs.cc.

View newest version in sPHENIX GitHub at line 90 of file InttDefs.cc

References TrkrDefs::genHitSetKey(), TrkrDefs::inttId, and Acts::Test::tmp().

Referenced by MakeActsGeometry::getInttHitSetKeyFromCoords(), MakeActsGeometry::getInttKeyFromNode(), InttCombinedRawDataDecoder::process_event(), InttRawDataDecoder::process_event(), 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)

Get the time bucket id from the cluskey.

Parameters
[in]cluskey
[out]timebucket id Get the column index from hitkey
[in]hitkey
[out]columnindex

Definition at line 67 of file InttDefs.cc.

View newest version in sPHENIX GitHub at line 67 of file InttDefs.cc

References Acts::Test::tmp().

Referenced by PHG4InttHitReco::cluster_truthhits(), InttClusterizer::ClusterLadderCells(), PHG4InttDigitizer::DigitizeLadderCells(), QAG4SimulationIntt::evaluate_clusters(), TrackResiduals::fillHitTree(), dNdEtaINTT::GetTrkrHitInfo(), InttClusterizer::ladder_are_adjacent(), mvtx::ChipPixelData::print(), and TpcRawWriter::process_event().

+ Here is the call graph for this function:

+ 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 28 of file InttDefs.cc.

View newest version in sPHENIX GitHub at line 28 of file InttDefs.cc

References Acts::Test::tmp().

Referenced by PHG4InttDigitizer::DigitizeLadderCells(), TrackResiduals::fillClusterTree(), KFParticle_truthAndDetTools::fillDetectorBranch(), TrackResiduals::fillHitTree(), getLadderPhiId(), dNdEtaINTT::GetRecoClusterInfo(), dNdEtaINTT::GetTrkrHitInfo(), SVReco::MakeGenFitTrack(), MakeActsGeometry::makeInttMapPairs(), and HelicalFitter::process_event().

+ Here is the call graph for this function:

+ 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 39 of file InttDefs.cc.

View newest version in sPHENIX GitHub at line 39 of file InttDefs.cc

References getLadderPhiId(), and Acts::Test::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 10 of file InttDefs.cc.

View newest version in sPHENIX GitHub at line 10 of file InttDefs.cc

References Acts::Test::tmp().

Referenced by PHG4InttHitReco::cluster_truthhits(), InttClusterizer::ClusterLadderCells(), InttClusterizer::ClusterLadderCellsRaw(), PHG4InttDigitizer::DigitizeLadderCells(), TrackResiduals::fillClusterTree(), KFParticle_truthAndDetTools::fillDetectorBranch(), TrackResiduals::fillHitTree(), getLadderZId(), dNdEtaINTT::GetRecoClusterInfo(), dNdEtaINTT::GetTrkrHitInfo(), SVReco::MakeGenFitTrack(), MakeActsGeometry::makeInttMapPairs(), and HelicalFitter::process_event().

+ Here is the call graph for this function:

+ 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 21 of file InttDefs.cc.

View newest version in sPHENIX GitHub at line 21 of file InttDefs.cc

References getLadderZId(), and Acts::Test::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 74 of file InttDefs.cc.

View newest version in sPHENIX GitHub at line 74 of file InttDefs.cc

References Acts::Test::tmp().

Referenced by PHG4InttHitReco::cluster_truthhits(), InttClusterizer::ClusterLadderCells(), PHG4InttDigitizer::DigitizeLadderCells(), QAG4SimulationIntt::evaluate_clusters(), TrackResiduals::fillHitTree(), dNdEtaINTT::GetTrkrHitInfo(), InttClusterizer::ladder_are_adjacent(), mvtx::ChipPixelData::print(), and TpcRawWriter::process_event().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int InttDefs::getTimeBucketId ( TrkrDefs::hitsetkey  key)

Generate a hitkey from a strip id.

Parameters
[in]stripStrip id
[out]hitkey

Definition at line 46 of file InttDefs.cc.

View newest version in sPHENIX GitHub at line 46 of file InttDefs.cc

References Acts::Test::tmp().

Referenced by InttClusterizer::ClusterLadderCells(), InttClusterizer::ClusterLadderCellsRaw(), TrackResiduals::fillClusterTree(), TrackResiduals::fillHitTree(), dNdEtaINTT::GetRecoClusterInfo(), and getTimeBucketId().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

int InttDefs::getTimeBucketId ( TrkrDefs::cluskey  key)

Get the time bucket id from the hitsetkey.

Parameters
[in]hitsetkey
[out]timebucket id

Definition at line 60 of file InttDefs.cc.

View newest version in sPHENIX GitHub at line 60 of file InttDefs.cc

References getTimeBucketId(), and Acts::Test::tmp().

+ Here is the call graph for this function:

TrkrDefs::hitsetkey InttDefs::resetCrossingHitSetKey ( const TrkrDefs::hitsetkey  hitsetkey)

Zero the crossing bits in a copy of the hitsetkey.

Parameters
[in]hitsetkey
[out]hitsetkey

Definition at line 118 of file InttDefs.cc.

View newest version in sPHENIX GitHub at line 118 of file InttDefs.cc

References Acts::Test::tmp().

Referenced by ActsSurfaceMaps::getSiliconSurface().

+ Here is the call graph for this function:

+ Here is the caller graph for this function: