ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
CaloHadDMCoeffFit::PrepData Class Reference

#include <CaloHadDMCoeffFit.h>

Collaboration diagram for CaloHadDMCoeffFit::PrepData:

Public Member Functions

 PrepData ()
 
 ~PrepData ()
 
void add (double xx, double w=1.0)
 
unsigned int size ()
 

Public Attributes

unsigned int n_entries
 
double m_sum
 
double m_aver
 
double m_rms
 
double m_sw
 

Detailed Description

Definition at line 40 of file CaloHadDMCoeffFit.h.

Constructor & Destructor Documentation

◆ PrepData()

CaloHadDMCoeffFit::PrepData::PrepData ( )
inline

Definition at line 47 of file CaloHadDMCoeffFit.h.

47 : n_entries(0),m_sum(0.0),m_aver(0.0),m_rms(0.0),m_sw(0.0) { }

◆ ~PrepData()

CaloHadDMCoeffFit::PrepData::~PrepData ( )
inline

Definition at line 48 of file CaloHadDMCoeffFit.h.

48 {}

Member Function Documentation

◆ add()

void CaloHadDMCoeffFit::PrepData::add ( double  xx,
double  w = 1.0 
)
inline

Definition at line 49 of file CaloHadDMCoeffFit.h.

50  {
51  n_entries++;
52  m_sum += xx;
53  m_rms = (m_sw/(m_sw+w))*(m_rms+(w/(m_sw+w))*(xx-m_aver)*(xx-m_aver));
54  m_aver = m_aver+(xx-m_aver)*w/(m_sw+w);
55  m_sw += w;
56  }

◆ size()

unsigned int CaloHadDMCoeffFit::PrepData::size ( )
inline

Definition at line 57 of file CaloHadDMCoeffFit.h.

57 { return n_entries;}

Member Data Documentation

◆ m_aver

double CaloHadDMCoeffFit::PrepData::m_aver

Definition at line 44 of file CaloHadDMCoeffFit.h.

◆ m_rms

double CaloHadDMCoeffFit::PrepData::m_rms

Definition at line 45 of file CaloHadDMCoeffFit.h.

◆ m_sum

double CaloHadDMCoeffFit::PrepData::m_sum

Definition at line 43 of file CaloHadDMCoeffFit.h.

◆ m_sw

double CaloHadDMCoeffFit::PrepData::m_sw

Definition at line 46 of file CaloHadDMCoeffFit.h.

◆ n_entries

unsigned int CaloHadDMCoeffFit::PrepData::n_entries

Definition at line 42 of file CaloHadDMCoeffFit.h.


The documentation for this class was generated from the following file:
CaloHadDMCoeffFit::PrepData::n_entries
unsigned int n_entries
Definition: CaloHadDMCoeffFit.h:42
CaloHadDMCoeffFit::PrepData::m_rms
double m_rms
Definition: CaloHadDMCoeffFit.h:45
CaloHadDMCoeffFit::PrepData::m_sw
double m_sw
Definition: CaloHadDMCoeffFit.h:46
CaloHadDMCoeffFit::PrepData::m_sum
double m_sum
Definition: CaloHadDMCoeffFit.h:43
CaloHadDMCoeffFit::PrepData::m_aver
double m_aver
Definition: CaloHadDMCoeffFit.h:44
python.IoTestsLib.w
def w
Definition: IoTestsLib.py:200