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

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

Definition at line 86 of file LHERunInfo.h.

86 : n_(0), sum_(0.0), sum2_(0.0) {}
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

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

Definition at line 88 of file LHERunInfo.h.

References mps_merge::weight.

Referenced by counter.Counter::register().

88  {
89  n_++;
90  sum_ += weight;
91  sum2_ += weight * weight;
92  }
Definition: weight.py:1
unsigned int lhef::LHERunInfo::Counter::n ( ) const
inline

Definition at line 93 of file LHERunInfo.h.

Referenced by edm::HadronizerFilter< HAD, DEC >::endLuminosityBlockProduce().

93 { return n_; }
double lhef::LHERunInfo::Counter::sum ( ) const
inline

Definition at line 94 of file LHERunInfo.h.

Referenced by edm::HadronizerFilter< HAD, DEC >::endLuminosityBlockProduce().

94 { return sum_; }
double lhef::LHERunInfo::Counter::sum2 ( ) const
inline

Definition at line 95 of file LHERunInfo.h.

Referenced by edm::HadronizerFilter< HAD, DEC >::endLuminosityBlockProduce().

95 { return sum2_; }

Member Data Documentation

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

Definition at line 98 of file LHERunInfo.h.

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

Definition at line 100 of file LHERunInfo.h.

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

Definition at line 99 of file LHERunInfo.h.