CMS 3D CMS Logo

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

#include <GenLumiInfoProduct.h>

Public Member Functions

void add (const FinalStat &other)
 
 FinalStat ()
 
 FinalStat (unsigned int n1, double sum1, double sum21)
 
 FinalStat (const FinalStat &other)
 
unsigned int n () const
 
bool operator!= (const FinalStat &other) const
 
bool operator== (const FinalStat &other) const
 
double sum () const
 
double sum2 () const
 

Private Attributes

unsigned int n_
 
double sum2_
 
double sum_
 

Detailed Description

Definition at line 57 of file GenLumiInfoProduct.h.

Constructor & Destructor Documentation

GenLumiInfoProduct::FinalStat::FinalStat ( )
inline
GenLumiInfoProduct::FinalStat::FinalStat ( unsigned int  n1,
double  sum1,
double  sum21 
)
inline

Definition at line 60 of file GenLumiInfoProduct.h.

GenLumiInfoProduct::FinalStat::FinalStat ( const FinalStat other)
inline

Definition at line 62 of file GenLumiInfoProduct.h.

62  :
63  n_(other.n_), sum_(other.sum_), sum2_(other.sum2_) {}

Member Function Documentation

void GenLumiInfoProduct::FinalStat::add ( const FinalStat other)
inline

Definition at line 69 of file GenLumiInfoProduct.h.

References n(), n_, sum(), sum2(), sum2_, and sum_.

Referenced by GenLumiInfoProduct::ProcessInfo::addOthers(), and counter.Counter::register().

70  {
71  n_ += other.n();
72  sum_ += other.sum();
73  sum2_ += other.sum2();
74  }
unsigned int GenLumiInfoProduct::FinalStat::n ( void  ) const
inline

Definition at line 65 of file GenLumiInfoProduct.h.

References n_.

Referenced by add(), and GenXSecAnalyzer::compute().

65 { return n_; }
bool GenLumiInfoProduct::FinalStat::operator!= ( const FinalStat other) const
inline

Definition at line 78 of file GenLumiInfoProduct.h.

78 { return !(*this == other); }
bool GenLumiInfoProduct::FinalStat::operator== ( const FinalStat other) const
inline

Definition at line 76 of file GenLumiInfoProduct.h.

References n_, sum2_, and sum_.

77  { return n_ == other.n_ && sum_ == other.sum_ && sum2_ == other.sum2_; }
double GenLumiInfoProduct::FinalStat::sum ( ) const
inline

Definition at line 66 of file GenLumiInfoProduct.h.

References sum_.

Referenced by add(), GenXSecAnalyzer::compute(), and GenXSecAnalyzer::endLuminosityBlock().

66 { return sum_; }
double GenLumiInfoProduct::FinalStat::sum2 ( ) const
inline

Definition at line 67 of file GenLumiInfoProduct.h.

References sum2_.

Referenced by add(), GenXSecAnalyzer::compute(), and GenXSecAnalyzer::endLuminosityBlock().

67 { return sum2_; }

Member Data Documentation

unsigned int GenLumiInfoProduct::FinalStat::n_
private

Definition at line 80 of file GenLumiInfoProduct.h.

Referenced by add(), n(), and operator==().

double GenLumiInfoProduct::FinalStat::sum2_
private

Definition at line 82 of file GenLumiInfoProduct.h.

Referenced by add(), operator==(), and sum2().

double GenLumiInfoProduct::FinalStat::sum_
private

Definition at line 81 of file GenLumiInfoProduct.h.

Referenced by add(), operator==(), and sum().