CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 public:
13  HcalTestNumberingScheme(bool forTB);
14  HcalTestNumberingScheme() = delete;
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, int phi, int lay);
18  static void unpackHcalIndex(const uint32_t& idx, int& det, int& z, int& depth, int& eta, int& phi, int& lay);
19 
20 private:
21  bool forTBH2;
22 };
23 
24 #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