CMS 3D CMS Logo

HcalTestNumberingScheme.h
Go to the documentation of this file.
1 #ifndef SimG4CMS_HcalTestNumberingScheme_h
2 #define SimG4CMS_HcalTestNumberingScheme_h
3 // File: HcalTestNumberingScheme.h
5 // Description: Numbering scheme for hadron calorimeter (detailed for TB)
7 
10 
12 
13 public:
14  HcalTestNumberingScheme(bool forTB);
15  virtual ~HcalTestNumberingScheme();
16  virtual uint32_t getUnitID(const HcalNumberingFromDDD::HcalID& id);
17  static uint32_t packHcalIndex(int det, int z, int depth, int eta,
18  int phi, int lay);
19  static void unpackHcalIndex(const uint32_t & idx, int& det, int& z,
20  int& depth, int& eta, int& phi, int& lay);
21 private:
22 
24 
25  bool forTBH2;
26 };
27 
28 #endif
virtual uint32_t getUnitID(const HcalNumberingFromDDD::HcalID &id)
static uint32_t packHcalIndex(int det, int z, int depth, int eta, int phi, int lay)
static void unpackHcalIndex(const uint32_t &idx, int &det, int &z, int &depth, int &eta, int &phi, int &lay)