CMS 3D CMS Logo

EcalLiteDTUPedestals.h
Go to the documentation of this file.
1 #ifndef CondFormats_EcalObject_EcalLiteDTUPedestals_h
2 #define CondFormats_EcalObject_EcalLiteDTUPedestals_h
3 
7 
9 public:
10  int setMean(unsigned int i, float value) {
11  if (i >= ecalPh2::NGAINS)
12  return -1;
13  else
14  meanarray[i] = value;
15  return 1;
16  }
17 
18  int setRMS(unsigned int i, float value) {
19  if (i >= ecalPh2::NGAINS)
20  return -1;
21  else
22  rmsarray[i] = value;
23  return 1;
24  }
25 
26  float mean(unsigned int i) const { return meanarray[i]; }
27 
28  float rms(unsigned int i) const { return rmsarray[i]; }
29 
30 private:
31  float meanarray[ecalPh2::NGAINS] = {13., 8.};
32  float rmsarray[ecalPh2::NGAINS] = {2.8, 1.2};
34 };
35 
38 
39 #endif
static constexpr unsigned int NGAINS
Definition: EcalConstants.h:32
EcalCondObjectContainer< EcalLiteDTUPedestals > EcalLiteDTUPedestalsMap
float mean(unsigned int i) const
float rms(unsigned int i) const
Definition: value.py:1
std::vector< Item >::const_iterator const_iterator
int setMean(unsigned int i, float value)
#define COND_SERIALIZABLE
Definition: Serializable.h:39
int setRMS(unsigned int i, float value)
float rmsarray[ecalPh2::NGAINS]
EcalLiteDTUPedestalsMap::const_iterator EcalLiteDTUPedestalsMapIterator
float meanarray[ecalPh2::NGAINS]