CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
EcalLiteDTUPedestals Class Reference

#include <EcalLiteDTUPedestals.h>

Public Member Functions

float mean (unsigned int i) const
 
float rms (unsigned int i) const
 
int setMean (unsigned int i, float value)
 
int setRMS (unsigned int i, float value)
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Private Attributes

float meanarray [ecalPh2::NGAINS] = {13., 8.}
 
float rmsarray [ecalPh2::NGAINS] = {2.8, 1.2}
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Definition at line 8 of file EcalLiteDTUPedestals.h.

Member Function Documentation

◆ mean()

float EcalLiteDTUPedestals::mean ( unsigned int  i) const
inline

Definition at line 26 of file EcalLiteDTUPedestals.h.

26 { return meanarray[i]; }

References mps_fire::i, and meanarray.

◆ rms()

float EcalLiteDTUPedestals::rms ( unsigned int  i) const
inline

Definition at line 28 of file EcalLiteDTUPedestals.h.

28 { return rmsarray[i]; }

References mps_fire::i, and rmsarray.

◆ serialize()

template<class Archive >
void EcalLiteDTUPedestals::serialize ( Archive &  ar,
const unsigned int  version 
)
private

◆ setMean()

int EcalLiteDTUPedestals::setMean ( unsigned int  i,
float  value 
)
inline

Definition at line 10 of file EcalLiteDTUPedestals.h.

10  {
11  if (i >= ecalPh2::NGAINS)
12  return -1;
13  else
14  meanarray[i] = value;
15  return 1;
16  }

References mps_fire::i, meanarray, ecalPh2::NGAINS, and relativeConstraints::value.

Referenced by EcalLiteDTUPedestalsESProducer::produce().

◆ setRMS()

int EcalLiteDTUPedestals::setRMS ( unsigned int  i,
float  value 
)
inline

Definition at line 18 of file EcalLiteDTUPedestals.h.

18  {
19  if (i >= ecalPh2::NGAINS)
20  return -1;
21  else
22  rmsarray[i] = value;
23  return 1;
24  }

References mps_fire::i, ecalPh2::NGAINS, rmsarray, and relativeConstraints::value.

Referenced by EcalLiteDTUPedestalsESProducer::produce().

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 33 of file EcalLiteDTUPedestals.h.

◆ cond::serialization::access

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 33 of file EcalLiteDTUPedestals.h.

Member Data Documentation

◆ meanarray

float EcalLiteDTUPedestals::meanarray[ecalPh2::NGAINS] = {13., 8.}
private

Definition at line 31 of file EcalLiteDTUPedestals.h.

Referenced by mean(), and setMean().

◆ rmsarray

float EcalLiteDTUPedestals::rmsarray[ecalPh2::NGAINS] = {2.8, 1.2}
private

Definition at line 32 of file EcalLiteDTUPedestals.h.

Referenced by rms(), and setRMS().

mps_fire.i
i
Definition: mps_fire.py:428
relativeConstraints.value
value
Definition: relativeConstraints.py:53
EcalLiteDTUPedestals::rmsarray
float rmsarray[ecalPh2::NGAINS]
Definition: EcalLiteDTUPedestals.h:32
EcalLiteDTUPedestals::meanarray
float meanarray[ecalPh2::NGAINS]
Definition: EcalLiteDTUPedestals.h:31
ecalPh2::NGAINS
static constexpr unsigned int NGAINS
Definition: EcalConstants.h:8