CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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

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

Definition at line 26 of file EcalLiteDTUPedestals.h.

References mps_fire::i, and meanarray.

26 { return meanarray[i]; }
float meanarray[ecalPh2::NGAINS]
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]
template<class Archive >
void EcalLiteDTUPedestals::serialize ( Archive &  ar,
const unsigned int  version 
)
private
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.

Referenced by EcalLiteDTUPedestalsESProducer::produce().

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:8
float meanarray[ecalPh2::NGAINS]
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.

Referenced by EcalLiteDTUPedestalsESProducer::produce().

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:8
float rmsarray[ecalPh2::NGAINS]

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 33 of file EcalLiteDTUPedestals.h.

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

Definition at line 33 of file EcalLiteDTUPedestals.h.

Member Data Documentation

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

Definition at line 31 of file EcalLiteDTUPedestals.h.

Referenced by mean(), and setMean().

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

Definition at line 32 of file EcalLiteDTUPedestals.h.

Referenced by rms(), and setRMS().