CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Friends
EcalPedestal Struct Reference

#include <EcalPedestals.h>

Classes

struct  Zero
 

Public Member Functions

 EcalPedestal ()
 
float mean (int i) const
 
float const * mean_rms (int i) const
 
float rms (int i) const
 

Public Attributes

float mean_x1
 
float mean_x12
 
float mean_x6
 
float rms_x1
 
float rms_x12
 
float rms_x6
 

Static Public Attributes

static const Zero zero
 

Private Member Functions

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

Friends

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

Detailed Description

Definition at line 8 of file EcalPedestals.h.

Constructor & Destructor Documentation

◆ EcalPedestal()

EcalPedestal::EcalPedestal ( )
inline

Definition at line 9 of file EcalPedestals.h.

9 : mean_x12(0), rms_x12(0), mean_x6(0), rms_x6(0), mean_x1(0), rms_x1(0) {}

Member Function Documentation

◆ mean()

float EcalPedestal::mean ( int  i) const
inline

Definition at line 33 of file EcalPedestals.h.

33  {
34  if (i == 0)
35  return 0.;
36  return *(&mean_x12 + (2 * (i - 1)));
37  }

References mps_fire::i, and mean_x12.

◆ mean_rms()

float const* EcalPedestal::mean_rms ( int  i) const
inline

Definition at line 27 of file EcalPedestals.h.

27  {
28  if (i == 0)
29  return &zero.z1;
30  return (&mean_x12) + (2 * (i - 1));
31  }

References mps_fire::i, mean_x12, EcalPedestal::Zero::z1, and zero.

◆ rms()

float EcalPedestal::rms ( int  i) const
inline

Definition at line 39 of file EcalPedestals.h.

39  {
40  if (i == 0)
41  return 0.;
42  return *(&rms_x12 + (2 * (i - 1)));
43  }

References mps_fire::i, and rms_x12.

◆ serialize()

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

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 45 of file EcalPedestals.h.

◆ cond::serialization::access

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

Definition at line 45 of file EcalPedestals.h.

Member Data Documentation

◆ mean_x1

float EcalPedestal::mean_x1

◆ mean_x12

float EcalPedestal::mean_x12

◆ mean_x6

float EcalPedestal::mean_x6

◆ rms_x1

float EcalPedestal::rms_x1

◆ rms_x12

float EcalPedestal::rms_x12

◆ rms_x6

float EcalPedestal::rms_x6

◆ zero

const EcalPedestal::Zero EcalPedestal::zero
static

Definition at line 17 of file EcalPedestals.h.

Referenced by mean_rms().

mps_fire.i
i
Definition: mps_fire.py:355
EcalPedestal::mean_x6
float mean_x6
Definition: EcalPedestals.h:21
EcalPedestal::mean_x1
float mean_x1
Definition: EcalPedestals.h:23
EcalPedestal::mean_x12
float mean_x12
Definition: EcalPedestals.h:19
EcalPedestal::zero
static const Zero zero
Definition: EcalPedestals.h:17
EcalPedestal::rms_x12
float rms_x12
Definition: EcalPedestals.h:20
EcalPedestal::Zero::z1
float z1
Definition: EcalPedestals.h:13
EcalPedestal::rms_x1
float rms_x1
Definition: EcalPedestals.h:24
EcalPedestal::rms_x6
float rms_x6
Definition: EcalPedestals.h:22