ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
L1CaloRampCumul::RampStep Class Reference
Collaboration diagram for L1CaloRampCumul::RampStep:

Public Member Functions

 RampStep ()
 
 RampStep (double step)
 
void addEvent (int energy)
 
double step ()
 
double mean ()
 
double rms ()
 

Private Attributes

double m_iStep
 
int m_nEntrie
 
int m_w
 
int m_w2
 

Detailed Description

Definition at line 31 of file L1CaloRampCumul.h.

Constructor & Destructor Documentation

◆ RampStep() [1/2]

L1CaloRampCumul::RampStep::RampStep ( )
inline

Definition at line 33 of file L1CaloRampCumul.h.

33  :
34  m_iStep(0.0),
35  m_nEntrie(0),
36  m_w(0),
37  m_w2(0)
38  {
39  };

◆ RampStep() [2/2]

L1CaloRampCumul::RampStep::RampStep ( double  step)
inline

Definition at line 40 of file L1CaloRampCumul.h.

40  :
41  m_iStep(step),
42  m_nEntrie(0),
43  m_w(0),
44  m_w2(0)
45  {
46  };

Member Function Documentation

◆ addEvent()

void L1CaloRampCumul::RampStep::addEvent ( int  energy)
inline

Definition at line 47 of file L1CaloRampCumul.h.

47  {
48  ++m_nEntrie;
49  m_w += energy;
50  m_w2 += energy*energy;
51  };

◆ mean()

double L1CaloRampCumul::RampStep::mean ( )
inline

Definition at line 53 of file L1CaloRampCumul.h.

53  {
54  if(m_nEntrie==0) {
55  return 0;
56  } else {
57  return (double)m_w/((double)m_nEntrie);
58  }
59  };

◆ rms()

double L1CaloRampCumul::RampStep::rms ( )
inline

Definition at line 60 of file L1CaloRampCumul.h.

60  {
61  if(m_nEntrie==0) {
62  return 0;
63  } else {
64  double mean = this->mean();
65  return std::sqrt( (double)m_w2/((double)m_nEntrie) - mean*mean );
66  }
67  };

◆ step()

double L1CaloRampCumul::RampStep::step ( )
inline

Definition at line 52 of file L1CaloRampCumul.h.

52 {return m_iStep; };

Member Data Documentation

◆ m_iStep

double L1CaloRampCumul::RampStep::m_iStep
private

Definition at line 70 of file L1CaloRampCumul.h.

◆ m_nEntrie

int L1CaloRampCumul::RampStep::m_nEntrie
private

Definition at line 71 of file L1CaloRampCumul.h.

◆ m_w

int L1CaloRampCumul::RampStep::m_w
private

Definition at line 72 of file L1CaloRampCumul.h.

◆ m_w2

int L1CaloRampCumul::RampStep::m_w2
private

Definition at line 73 of file L1CaloRampCumul.h.


The documentation for this class was generated from the following file:
L1CaloRampCumul::RampStep::mean
double mean()
Definition: L1CaloRampCumul.h:53
L1CaloRampCumul::RampStep::m_w2
int m_w2
Definition: L1CaloRampCumul.h:73
L1CaloRampCumul::RampStep::m_w
int m_w
Definition: L1CaloRampCumul.h:72
ParticleGun_FastCalo_ChargeFlip_Config.energy
energy
Definition: ParticleGun_FastCalo_ChargeFlip_Config.py:78
L1CaloRampCumul::RampStep::m_nEntrie
int m_nEntrie
Definition: L1CaloRampCumul.h:71
L1CaloRampCumul::RampStep::step
double step()
Definition: L1CaloRampCumul.h:52
xAOD::double
double
Definition: CompositeParticle_v1.cxx:159
L1CaloRampCumul::RampStep::m_iStep
double m_iStep
Definition: L1CaloRampCumul.h:67