CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HcalTestBeamNumbering.h
Go to the documentation of this file.
1 #include <cstdint>
2 #ifndef SimDataFormats_HcalTestBeamNumbering_h
3 #define SimDataFormats_HcalTestBeamNumbering_h
4 // File: HcalTestBeamNumbering.h
6 // Description: Numbering scheme for high granularity calorimeter (SIM step)
8 
10 public:
11  static const int kHcalBeamXValueOffset = 0;
12  static const int kHcalBeamXValueMask = 0x1FF;
13  static const int kHcalBeamXSignOffset = 9;
14  static const int kHcalBeamXSignMask = 0x1;
15  static const int kHcalBeamYValueOffset = 10;
16  static const int kHcalBeamYValueMask = 0x1FF;
17  static const int kHcalBeamYSignOffset = 19;
18  static const int kHcalBeamYSignMask = 0x1;
19  static const int kHcalBeamLayerOffset = 21;
20  static const int kHcalBeamLayerMask = 0x7F;
21  static const int kHcalBeamTypeOffset = 28;
22  static const int kHcalBeamTypeMask = 0xF;
23 
25 
27  static uint32_t packIndex(int det, int lay, int x, int y);
28  static void unpackIndex(const uint32_t& idx, int& det, int& lay, int& x, int& y);
29 };
30 
31 #endif
static const int kHcalBeamYValueOffset
static const int kHcalBeamYSignMask
static const int kHcalBeamLayerMask
static const int kHcalBeamYValueMask
static const int kHcalBeamXSignMask
static uint32_t packIndex(int det, int lay, int x, int y)
static const int kHcalBeamXValueMask
static const int kHcalBeamLayerOffset
static const int kHcalBeamTypeMask
static const int kHcalBeamYSignOffset
static const int kHcalBeamXSignOffset
static const int kHcalBeamXValueOffset
static void unpackIndex(const uint32_t &idx, int &det, int &lay, int &x, int &y)
static const int kHcalBeamTypeOffset