CMS 3D CMS Logo

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 60 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 63 of file GenLumiInfoProduct.h.

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

Member Function Documentation

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

Definition at line 72 of file GenLumiInfoProduct.h.

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

Referenced by counter.Counter::register().

72  {
73  if (other.n() != 0 and other.sum_ != -1. and other.sum2() != -1.) {
74  n_ += other.n();
75  sum_ += other.sum();
76  sum2_ += other.sum2();
77  }
78  }
unsigned int GenLumiInfoProduct::FinalStat::n ( ) const
inline
bool GenLumiInfoProduct::FinalStat::operator!= ( const FinalStat other) const
inline

Definition at line 82 of file GenLumiInfoProduct.h.

References trackingPlots::other.

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

Definition at line 80 of file GenLumiInfoProduct.h.

References n_, sum2_, and sum_.

double GenLumiInfoProduct::FinalStat::sum ( ) const
inline
double GenLumiInfoProduct::FinalStat::sum2 ( ) const
inline

Member Data Documentation

unsigned int GenLumiInfoProduct::FinalStat::n_
private

Definition at line 84 of file GenLumiInfoProduct.h.

Referenced by operator==().

double GenLumiInfoProduct::FinalStat::sum2_
private

Definition at line 86 of file GenLumiInfoProduct.h.

Referenced by operator==().

double GenLumiInfoProduct::FinalStat::sum_
private

Definition at line 85 of file GenLumiInfoProduct.h.

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