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
mps_fire.i
i
Definition: mps_fire.py:428
EcalLiteDTUPedestals::rms
float rms(unsigned int i) const
Definition: EcalLiteDTUPedestals.h:28
EcalLiteDTUPedestals
Definition: EcalLiteDTUPedestals.h:8
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
EcalCondObjectContainer
Definition: EcalCondObjectContainer.h:13
EcalLiteDTUPedestals::mean
float mean(unsigned int i) const
Definition: EcalLiteDTUPedestals.h:26
EcalCondObjectContainer.h
EcalConstants.h
Serializable.h
value
Definition: value.py:1
EcalLiteDTUPedestals::setMean
int setMean(unsigned int i, float value)
Definition: EcalLiteDTUPedestals.h:10
EcalLiteDTUPedestalsMap
EcalCondObjectContainer< EcalLiteDTUPedestals > EcalLiteDTUPedestalsMap
Definition: EcalLiteDTUPedestals.h:36
EcalLiteDTUPedestals::setRMS
int setRMS(unsigned int i, float value)
Definition: EcalLiteDTUPedestals.h:18
relativeConstraints.value
value
Definition: relativeConstraints.py:53
EcalLiteDTUPedestals::rmsarray
float rmsarray[ecalPh2::NGAINS]
Definition: EcalLiteDTUPedestals.h:32
EcalLiteDTUPedestalsMapIterator
EcalLiteDTUPedestalsMap::const_iterator EcalLiteDTUPedestalsMapIterator
Definition: EcalLiteDTUPedestals.h:37
EcalCondObjectContainer::const_iterator
std::vector< Item >::const_iterator const_iterator
Definition: EcalCondObjectContainer.h:19
EcalLiteDTUPedestals::meanarray
float meanarray[ecalPh2::NGAINS]
Definition: EcalLiteDTUPedestals.h:31
ecalPh2::NGAINS
static constexpr unsigned int NGAINS
Definition: EcalConstants.h:8