CMS 3D CMS Logo

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
HcalTestBeamNumbering::HcalTBWireChamber
Definition: HcalTestBeamNumbering.h:24
DDAxes::y
HcalTestBeamNumbering::kHcalBeamXValueOffset
static const int kHcalBeamXValueOffset
Definition: HcalTestBeamNumbering.h:11
HcalTestBeamNumbering::packIndex
static uint32_t packIndex(int det, int lay, int x, int y)
Definition: HcalTestBeamNumbering.cc:6
HcalTestBeamNumbering::HcalTestBeamDetector
HcalTestBeamDetector
Definition: HcalTestBeamNumbering.h:24
DDAxes::x
heavyIonCSV_trainingSettings.idx
idx
Definition: heavyIonCSV_trainingSettings.py:5
HcalTestBeamNumbering::kHcalBeamYValueOffset
static const int kHcalBeamYValueOffset
Definition: HcalTestBeamNumbering.h:15
HcalTestBeamNumbering::HcalTBScintillator
Definition: HcalTestBeamNumbering.h:24
HcalTestBeamNumbering::HcalTestBeamNumbering
HcalTestBeamNumbering()
Definition: HcalTestBeamNumbering.h:26
HcalTestBeamNumbering::kHcalBeamXValueMask
static const int kHcalBeamXValueMask
Definition: HcalTestBeamNumbering.h:12
HcalTestBeamNumbering::kHcalBeamTypeMask
static const int kHcalBeamTypeMask
Definition: HcalTestBeamNumbering.h:22
HcalTestBeamNumbering
Definition: HcalTestBeamNumbering.h:9
HcalTestBeamNumbering::kHcalBeamTypeOffset
static const int kHcalBeamTypeOffset
Definition: HcalTestBeamNumbering.h:21
HcalTestBeamNumbering::HcalTBEmpty
Definition: HcalTestBeamNumbering.h:24
HcalTestBeamNumbering::kHcalBeamYValueMask
static const int kHcalBeamYValueMask
Definition: HcalTestBeamNumbering.h:16
HcalTestBeamNumbering::unpackIndex
static void unpackIndex(const uint32_t &idx, int &det, int &lay, int &x, int &y)
Definition: HcalTestBeamNumbering.cc:31
HcalTestBeamNumbering::kHcalBeamLayerOffset
static const int kHcalBeamLayerOffset
Definition: HcalTestBeamNumbering.h:19
HcalTestBeamNumbering::kHcalBeamLayerMask
static const int kHcalBeamLayerMask
Definition: HcalTestBeamNumbering.h:20
HcalTestBeamNumbering::kHcalBeamXSignOffset
static const int kHcalBeamXSignOffset
Definition: HcalTestBeamNumbering.h:13
HcalTestBeamNumbering::kHcalBeamYSignOffset
static const int kHcalBeamYSignOffset
Definition: HcalTestBeamNumbering.h:17
HcalTestBeamNumbering::kHcalBeamYSignMask
static const int kHcalBeamYSignMask
Definition: HcalTestBeamNumbering.h:18
HcalTestBeamNumbering::kHcalBeamXSignMask
static const int kHcalBeamXSignMask
Definition: HcalTestBeamNumbering.h:14