CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
lhef::LHERunInfo::Counter Struct Reference

Public Member Functions

void add (double weight)
 
 Counter ()
 

Public Attributes

unsigned int n
 
double sum
 
double sum2
 

Detailed Description

Definition at line 88 of file LHERunInfo.h.

Constructor & Destructor Documentation

lhef::LHERunInfo::Counter::Counter ( )
inline

Definition at line 89 of file LHERunInfo.h.

89 : n(0), sum(0.0), sum2(0.0) {}

Member Function Documentation

void lhef::LHERunInfo::Counter::add ( double  weight)
inline

Definition at line 91 of file LHERunInfo.h.

References n, sum, sum2, and histoStyle::weight.

92  {
93  n++;
94  sum += weight;
95  sum2 += weight * weight;
96  }
int weight
Definition: histoStyle.py:50

Member Data Documentation

unsigned int lhef::LHERunInfo::Counter::n

Definition at line 98 of file LHERunInfo.h.

Referenced by add().

double lhef::LHERunInfo::Counter::sum

Definition at line 99 of file LHERunInfo.h.

Referenced by add().

double lhef::LHERunInfo::Counter::sum2

Definition at line 100 of file LHERunInfo.h.

Referenced by add().