CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Classes | Public Member Functions | Public Attributes | Static Public Attributes
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
 

Detailed Description

Definition at line 7 of file EcalPedestals.h.

Constructor & Destructor Documentation

EcalPedestal::EcalPedestal ( )
inline

Definition at line 8 of file EcalPedestals.h.

9  : mean_x12(0),
10  rms_x12(0),
11  mean_x6(0),
12  rms_x6(0),
13  mean_x1(0),
14  rms_x1(0) {}

Member Function Documentation

float EcalPedestal::mean ( int  i) const
inline

Definition at line 36 of file EcalPedestals.h.

References mean_x12.

Referenced by cond::ecalped::average().

36  {
37  if (i==0) return 0.;
38  return *(&mean_x12+(2*(i-1)));
39  }
int i
Definition: DBlmapReader.cc:9
float const* EcalPedestal::mean_rms ( int  i) const
inline

Definition at line 31 of file EcalPedestals.h.

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

31  {
32  if (i==0) return &zero.z1;
33  return (&mean_x12)+(2*(i-1));
34  }
int i
Definition: DBlmapReader.cc:9
static const Zero zero
Definition: EcalPedestals.h:21
float EcalPedestal::rms ( int  i) const
inline

Definition at line 41 of file EcalPedestals.h.

References rms_x12.

41  {
42  if (i==0) return 0.;
43  return *(&rms_x12+(2*(i-1)));
44  }
int i
Definition: DBlmapReader.cc:9

Member Data Documentation

float EcalPedestal::mean_x1
float EcalPedestal::mean_x12
float EcalPedestal::mean_x6
float EcalPedestal::rms_x1
float EcalPedestal::rms_x12
float EcalPedestal::rms_x6
const EcalPedestal::Zero EcalPedestal::zero
static

Definition at line 21 of file EcalPedestals.h.

Referenced by mean_rms().