ATLAS Offline Software
Loading...
Searching...
No Matches
L1CaloRampStep Class Reference

Class to store the measured energy per step for either calorimeter or level-1. More...

#include <L1CaloRampData.h>

Collaboration diagram for L1CaloRampStep:

Public Member Functions

 L1CaloRampStep ()
virtual ~L1CaloRampStep ()
void addEvent (double energy)
double mean () const
double rms () const

Private Attributes

unsigned int m_nEntries
double m_w
double m_w2

Detailed Description

Class to store the measured energy per step for either calorimeter or level-1.

Author
Veit Scharf veit..nosp@m.scha.nosp@m.rf@ki.nosp@m.p.un.nosp@m.i-hei.nosp@m.delb.nosp@m.erg.d.nosp@m.e

Definition at line 17 of file L1CaloRampData.h.

Constructor & Destructor Documentation

◆ L1CaloRampStep()

L1CaloRampStep::L1CaloRampStep ( )
inline

Definition at line 20 of file L1CaloRampData.h.

20: m_nEntries(0) , m_w(0.), m_w2(0.) {}
unsigned int m_nEntries

◆ ~L1CaloRampStep()

virtual L1CaloRampStep::~L1CaloRampStep ( )
inlinevirtual

Definition at line 21 of file L1CaloRampData.h.

21{}

Member Function Documentation

◆ addEvent()

void L1CaloRampStep::addEvent ( double energy)

◆ mean()

double L1CaloRampStep::mean ( ) const

Definition at line 14 of file L1CaloRampData.cxx.

15{
16 if(!m_nEntries) return 0.;
17 return m_w / double(m_nEntries);
18}

◆ rms()

double L1CaloRampStep::rms ( ) const

Definition at line 20 of file L1CaloRampData.cxx.

21{
22 if(!m_nEntries) return 1.;
23 if(m_nEntries == 1) return 1.;
24 double mean = this->mean();
25 return std::sqrt((m_w2 / double(m_nEntries))) - mean;
26}
double mean() const

Member Data Documentation

◆ m_nEntries

unsigned int L1CaloRampStep::m_nEntries
private

Definition at line 28 of file L1CaloRampData.h.

◆ m_w

double L1CaloRampStep::m_w
private

Definition at line 29 of file L1CaloRampData.h.

◆ m_w2

double L1CaloRampStep::m_w2
private

Definition at line 30 of file L1CaloRampData.h.


The documentation for this class was generated from the following files: