CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
lhef::LHERunInfo::Counter Struct Reference

#include <LHERunInfo.h>

Public Member Functions

void add (double weight)
 
 Counter ()
 
 Counter (unsigned int n1, double sum1, double sum21)
 
unsigned int n () const
 
double sum () const
 
double sum2 () const
 

Private Attributes

unsigned int n_
 
double sum2_
 
double sum_
 

Detailed Description

Definition at line 84 of file LHERunInfo.h.

Constructor & Destructor Documentation

◆ Counter() [1/2]

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

Definition at line 86 of file LHERunInfo.h.

86 : n_(0), sum_(0.0), sum2_(0.0) {}

◆ Counter() [2/2]

lhef::LHERunInfo::Counter::Counter ( unsigned int  n1,
double  sum1,
double  sum21 
)
inline

Definition at line 87 of file LHERunInfo.h.

87 : n_(n1), sum_(sum1), sum2_(sum21) {}

Member Function Documentation

◆ add()

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

◆ n()

unsigned int lhef::LHERunInfo::Counter::n ( ) const
inline

◆ sum()

double lhef::LHERunInfo::Counter::sum ( ) const
inline

◆ sum2()

double lhef::LHERunInfo::Counter::sum2 ( ) const
inline

Member Data Documentation

◆ n_

unsigned int lhef::LHERunInfo::Counter::n_
private

Definition at line 98 of file LHERunInfo.h.

Referenced by add(), and n().

◆ sum2_

double lhef::LHERunInfo::Counter::sum2_
private

Definition at line 100 of file LHERunInfo.h.

Referenced by add(), and sum2().

◆ sum_

double lhef::LHERunInfo::Counter::sum_
private

Definition at line 99 of file LHERunInfo.h.

Referenced by add(), and sum().