CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
EcalConstants.h
Go to the documentation of this file.
1 //Namespaces for Phase1 and Phase2
2 #ifndef CondFormats_EcalObject_EcalConstants_h
3 #define CondFormats_EcalObject_EcalConstants_h
4 
5 class ecalPh2 {
6 public:
7  static constexpr double Samp_Period = 6.25;
8  static constexpr unsigned int NGAINS = 2;
9  static constexpr float gains[NGAINS] = {10., 1.};
10  static constexpr unsigned int gainId1 = 1;
11  static constexpr unsigned int gainId10 = 0;
12  static constexpr unsigned int sampleSize = 16;
13  static constexpr unsigned int NBITS = 12; // number of available bits
14  static constexpr unsigned int MAXADC = (1 << NBITS) - 1; // 2^12 -1, adc max range
15  static constexpr unsigned int kEBChannels = 61200;
16  static constexpr double maxEneEB = 2000.;
17  static constexpr unsigned int kNOffsets = 2000;
18  static constexpr unsigned int kAdcMask = 0xFFF;
19  static constexpr unsigned int kGainIdMask = 0x3;
20 
21 }; // namespace ecalPh2
22 
23 class ecalPh1 {
24 public:
25  static constexpr double Samp_Period = 25.;
26  static constexpr unsigned int NGAINS = 4;
27  static constexpr float gains[NGAINS] = {0., 12., 6., 1.};
28  static constexpr unsigned int sampleSize = 10;
29  static constexpr unsigned int kNOffsets = 2000;
30 }; // namespace ecalPh1
31 #endif
static constexpr unsigned int NGAINS
Definition: EcalConstants.h:8
static constexpr unsigned int kGainIdMask
Definition: EcalConstants.h:19
static constexpr float gains[NGAINS]
Definition: EcalConstants.h:9
static constexpr unsigned int kNOffsets
Definition: EcalConstants.h:17
static constexpr unsigned int sampleSize
Definition: EcalConstants.h:12
static constexpr unsigned int kAdcMask
Definition: EcalConstants.h:18
static constexpr double maxEneEB
Definition: EcalConstants.h:16
static constexpr unsigned int kNOffsets
Definition: EcalConstants.h:29
static constexpr float gains[NGAINS]
Definition: EcalConstants.h:27
static constexpr double Samp_Period
Definition: EcalConstants.h:7
static constexpr double Samp_Period
Definition: EcalConstants.h:25
static constexpr unsigned int kEBChannels
Definition: EcalConstants.h:15
static constexpr unsigned int NBITS
Definition: EcalConstants.h:13
static constexpr unsigned int sampleSize
Definition: EcalConstants.h:28
static constexpr unsigned int NGAINS
Definition: EcalConstants.h:26
static constexpr unsigned int gainId10
Definition: EcalConstants.h:11
static constexpr unsigned int MAXADC
Definition: EcalConstants.h:14
static constexpr unsigned int gainId1
Definition: EcalConstants.h:10