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 91 of file LHERunInfo.h.

Constructor & Destructor Documentation

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

Definition at line 93 of file LHERunInfo.h.

93 : n_(0), sum_(0.0), sum2_(0.0) {}
lhef::LHERunInfo::Counter::Counter ( unsigned int  n1,
double  sum1,
double  sum21 
)
inline

Definition at line 94 of file LHERunInfo.h.

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

Member Function Documentation

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

Definition at line 96 of file LHERunInfo.h.

References mps_merge::weight.

Referenced by counter.Counter::register().

97  {
98  n_++;
99  sum_ += weight;
100  sum2_ += weight * weight;
101  }
Definition: weight.py:1
unsigned int lhef::LHERunInfo::Counter::n ( ) const
inline

Definition at line 102 of file LHERunInfo.h.

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

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

Definition at line 103 of file LHERunInfo.h.

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

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

Definition at line 104 of file LHERunInfo.h.

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

104 {return sum2_;}

Member Data Documentation

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

Definition at line 106 of file LHERunInfo.h.

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

Definition at line 108 of file LHERunInfo.h.

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

Definition at line 107 of file LHERunInfo.h.