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.

References mps_fire::i, and meanarray.

Referenced by EcalEBPhase2TPParamProducer::analyze(), and EcalEBPhase2Linearizer::setInput().

26 { return meanarray[i]; }
float meanarray[ecalPh2::NGAINS]

◆ rms()

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

Definition at line 28 of file EcalLiteDTUPedestals.h.

References mps_fire::i, and rmsarray.

28 { return rmsarray[i]; }
float rmsarray[ecalPh2::NGAINS]

◆ 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.

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

10  {
11  if (i >= ecalPh2::NGAINS)
12  return -1;
13  else
14  meanarray[i] = value;
15  return 1;
16  }
static constexpr unsigned int NGAINS
Definition: EcalConstants.h:32
float meanarray[ecalPh2::NGAINS]

◆ setRMS()

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

Definition at line 18 of file EcalLiteDTUPedestals.h.

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

18  {
19  if (i >= ecalPh2::NGAINS)
20  return -1;
21  else
22  rmsarray[i] = value;
23  return 1;
24  }
static constexpr unsigned int NGAINS
Definition: EcalConstants.h:32
float rmsarray[ecalPh2::NGAINS]

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().