CMS 3D CMS Logo

Public Member Functions | Public Attributes

lhef::LHERunInfo::Counter Struct Reference

List of all members.

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.

: 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 CommonMethods::weight().

                {
                        n++;
                        sum += weight;
                        sum2 += weight * weight;
                }

Member Data Documentation

Definition at line 98 of file LHERunInfo.h.

Referenced by add().

Definition at line 99 of file LHERunInfo.h.

Referenced by add().

Definition at line 100 of file LHERunInfo.h.

Referenced by add().