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  ~HcalTestNumberingScheme() override;
16  uint32_t getUnitID(const HcalNumberingFromDDD::HcalID& id) override;
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 
23  HcalTestNumberingScheme() = delete;
24 
25  bool forTBH2;
26 };
27 
28 #endif
static uint32_t packHcalIndex(int det, int z, int depth, int eta, int phi, int lay)
HcalTestNumberingScheme()=delete
static void unpackHcalIndex(const uint32_t &idx, int &det, int &z, int &depth, int &eta, int &phi, int &lay)
uint32_t getUnitID(const HcalNumberingFromDDD::HcalID &id) override