CMS 3D CMS Logo

ZdcNumberingScheme.h
Go to the documentation of this file.
1 // File: ZdcNumberingScheme.h
3 // Date: 03.06
4 // Description: Numbering scheme for Zdc
5 // Modifications:
7 #undef debug
8 #ifndef ZdcNumberingScheme_h
9 #define ZdcNumberingScheme_h
10 
11 #include "G4Step.hh"
12 
13 namespace ZdcNumberingScheme {
14  unsigned int getUnitID(const G4Step* aStep);
15 
20  unsigned int packZdcIndex(int subDet, int layer, int fiber, int channel, int z);
21 
22  // unpacking Unit ID for Zdc (-z=1, +z=2)
23  void unpackZdcIndex(const unsigned int& idx, int& subDet, int& layer, int& fiber, int& channel, int& z);
24 }; // namespace ZdcNumberingScheme
25 
26 #endif
unsigned int getUnitID(const G4Step *aStep)
unsigned int packZdcIndex(int subDet, int layer, int fiber, int channel, int z)
void unpackZdcIndex(const unsigned int &idx, int &subDet, int &layer, int &fiber, int &channel, int &z)