Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TpcDefs.h File Reference

Utility functions for TPC. More...

#include "TrkrDefs.h"
#include <cstdint>
+ Include dependency graph for TpcDefs.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  TpcDefs
 Utility functions for TPC.
 

Functions

static const unsigned int
kBitShiftSectorId 
TpcDefs::__attribute__ ((unused)) = 16
 
uint8_t TpcDefs::getSectorId (TrkrDefs::hitsetkey key)
 Get the sector id from hitsetkey.
 
uint8_t TpcDefs::getSectorId (TrkrDefs::cluskey key)
 Get the sector id from cluskey.
 
uint8_t TpcDefs::getSide (TrkrDefs::hitsetkey key)
 Get the side from hitsetkey.
 
uint8_t TpcDefs::getSide (TrkrDefs::cluskey key)
 Get the side id from cluskey.
 
uint16_t TpcDefs::getPad (TrkrDefs::hitkey key)
 Get the pad index from hitkey.
 
uint16_t TpcDefs::getTBin (TrkrDefs::hitkey key)
 Get the time bin from hitkey.
 
TrkrDefs::hitkey TpcDefs::genHitKey (const uint16_t pad, const uint16_t tbin)
 Generate a hitkey from a pad index and time bin.
 
TrkrDefs::hitsetkey TpcDefs::genHitSetKey (const uint8_t lyr, const uint8_t sector, const uint8_t side)
 Generate a hitsetkey for the tpc.
 
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.
 

Detailed Description

Utility functions for TPC.

Author
D. McGlinchey
Date
June 2018

Definition in file TpcDefs.h.