CMS 3D CMS Logo

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
ecalPh1::NGAINS
static constexpr unsigned int NGAINS
Definition: EcalConstants.h:26
ecalPh2::kNOffsets
static constexpr unsigned int kNOffsets
Definition: EcalConstants.h:17
ecalPh2::gainId1
static constexpr unsigned int gainId1
Definition: EcalConstants.h:10
ecalPh1::Samp_Period
static constexpr double Samp_Period
Definition: EcalConstants.h:25
ecalPh2::kGainIdMask
static constexpr unsigned int kGainIdMask
Definition: EcalConstants.h:19
ecalPh1::gains
static constexpr float gains[NGAINS]
Definition: EcalConstants.h:27
ecalPh2::MAXADC
static constexpr unsigned int MAXADC
Definition: EcalConstants.h:14
ecalPh2::Samp_Period
static constexpr double Samp_Period
Definition: EcalConstants.h:7
ecalPh1::sampleSize
static constexpr unsigned int sampleSize
Definition: EcalConstants.h:28
ecalPh2::sampleSize
static constexpr unsigned int sampleSize
Definition: EcalConstants.h:12
ecalPh1::kNOffsets
static constexpr unsigned int kNOffsets
Definition: EcalConstants.h:29
ecalPh2::kAdcMask
static constexpr unsigned int kAdcMask
Definition: EcalConstants.h:18
ecalPh2
Definition: EcalConstants.h:5
ecalPh2::NBITS
static constexpr unsigned int NBITS
Definition: EcalConstants.h:13
ecalPh2::gains
static constexpr float gains[NGAINS]
Definition: EcalConstants.h:9
ecalPh2::gainId10
static constexpr unsigned int gainId10
Definition: EcalConstants.h:11
ecalPh2::maxEneEB
static constexpr double maxEneEB
Definition: EcalConstants.h:16
ecalPh2::kEBChannels
static constexpr unsigned int kEBChannels
Definition: EcalConstants.h:15
ecalPh2::NGAINS
static constexpr unsigned int NGAINS
Definition: EcalConstants.h:8
ecalPh1
Definition: EcalConstants.h:23