Geant4  10.03
G4StatDouble Class Reference

#include <G4StatDouble.hh>

Public Member Functions

 G4StatDouble ()
 
 G4StatDouble (G4double)
 
virtual ~G4StatDouble ()
 
G4StatDoubleoperator= (const G4double &rhs)
 
G4StatDoubleoperator= (const G4StatDouble &rhs)
 
G4StatDoubleoperator+= (const G4double &rhs)
 
G4StatDoubleoperator+= (const G4StatDouble &rhs)
 
void reset ()
 
void fill (G4double x, G4double weight=1.)
 
void scale (G4double)
 
G4double mean () const
 
G4double rms ()
 
G4double mean (G4double ext_sum_w) const
 
G4double rms (G4double ext_sum_w, G4int ext_n)
 
void add (const G4StatDouble *)
 
G4int n () const
 
G4double sum_w () const
 
G4double sum_w2 () const
 
G4double sum_wx () const
 
G4double sum_wx2 () const
 

Protected Member Functions

G4double rms (G4double sum_wx, G4double sum_wx2, G4double sum_w, G4int n)
 

Protected Attributes

G4double m_sum_wx
 
G4double m_sum_wx2
 
G4int m_n
 
G4double m_sum_w
 
G4double m_sum_w2
 
G4double m_scale
 

Detailed Description

Definition at line 45 of file G4StatDouble.hh.

Constructor & Destructor Documentation

G4StatDouble::G4StatDouble ( )

Definition at line 39 of file G4StatDouble.cc.

References reset().

+ Here is the call graph for this function:

G4StatDouble::G4StatDouble ( G4double  x)

Definition at line 44 of file G4StatDouble.cc.

References fill(), and reset().

+ Here is the call graph for this function:

G4StatDouble::~G4StatDouble ( )
virtual

Definition at line 60 of file G4StatDouble.cc.

Member Function Documentation

void G4StatDouble::add ( const G4StatDouble ptr)

Definition at line 167 of file G4StatDouble.cc.

References m_n, m_sum_w, m_sum_w2, m_sum_wx, m_sum_wx2, n(), sum_w(), sum_w2(), sum_wx(), and sum_wx2().

Referenced by operator+=().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4StatDouble::fill ( G4double  x,
G4double  weight = 1. 
)

Definition at line 63 of file G4StatDouble.cc.

References G4cout, G4endl, INT_MAX, m_n, m_sum_w, m_sum_w2, m_sum_wx, and m_sum_wx2.

Referenced by G4StatDouble(), operator+=(), and operator=().

+ Here is the caller graph for this function:

G4double G4StatDouble::mean ( ) const

Definition at line 83 of file G4StatDouble.cc.

References m_scale, m_sum_w, and m_sum_wx.

Referenced by mean().

+ Here is the caller graph for this function:

G4double G4StatDouble::mean ( G4double  ext_sum_w) const

Definition at line 93 of file G4StatDouble.cc.

References m_sum_w, and mean().

+ Here is the call graph for this function:

G4int G4StatDouble::n ( ) const
inline

Definition at line 95 of file G4StatDouble.hh.

References m_n.

Referenced by add().

+ Here is the caller graph for this function:

G4StatDouble& G4StatDouble::operator+= ( const G4double rhs)
inline

Definition at line 70 of file G4StatDouble.hh.

References fill().

+ Here is the call graph for this function:

G4StatDouble& G4StatDouble::operator+= ( const G4StatDouble rhs)
inline

Definition at line 72 of file G4StatDouble.hh.

References add().

+ Here is the call graph for this function:

G4StatDouble& G4StatDouble::operator= ( const G4double rhs)
inline

Definition at line 54 of file G4StatDouble.hh.

References fill(), and reset().

+ Here is the call graph for this function:

G4StatDouble& G4StatDouble::operator= ( const G4StatDouble rhs)
inline

Definition at line 60 of file G4StatDouble.hh.

References m_n, m_scale, m_sum_w, m_sum_w2, m_sum_wx, and m_sum_wx2.

void G4StatDouble::reset ( )

Definition at line 50 of file G4StatDouble.cc.

References m_n, m_scale, m_sum_w, m_sum_w2, m_sum_wx, and m_sum_wx2.

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

+ Here is the caller graph for this function:

G4double G4StatDouble::rms ( )

Definition at line 146 of file G4StatDouble.cc.

References m_n, m_sum_w, m_sum_wx, and m_sum_wx2.

Referenced by rms().

+ Here is the caller graph for this function:

G4double G4StatDouble::rms ( G4double  ext_sum_w,
G4int  ext_n 
)

Definition at line 154 of file G4StatDouble.cc.

References m_sum_wx, m_sum_wx2, and rms().

+ Here is the call graph for this function:

G4double G4StatDouble::rms ( G4double  sum_wx,
G4double  sum_wx2,
G4double  sum_w,
G4int  n 
)
protected

Definition at line 108 of file G4StatDouble.cc.

References m_scale, G4INCL::Math::max(), and G4InuclParticleNames::nn.

+ Here is the call graph for this function:

void G4StatDouble::scale ( G4double  value)

Definition at line 78 of file G4StatDouble.cc.

References m_scale.

G4double G4StatDouble::sum_w ( ) const
inline

Definition at line 96 of file G4StatDouble.hh.

References m_sum_w.

Referenced by add().

+ Here is the caller graph for this function:

G4double G4StatDouble::sum_w2 ( ) const
inline

Definition at line 97 of file G4StatDouble.hh.

References m_sum_w2.

Referenced by add().

+ Here is the caller graph for this function:

G4double G4StatDouble::sum_wx ( ) const
inline

Definition at line 98 of file G4StatDouble.hh.

References m_sum_wx.

Referenced by add().

+ Here is the caller graph for this function:

G4double G4StatDouble::sum_wx2 ( ) const
inline

Definition at line 99 of file G4StatDouble.hh.

References m_sum_wx2.

Referenced by add().

+ Here is the caller graph for this function:

Member Data Documentation

G4int G4StatDouble::m_n
protected

Definition at line 109 of file G4StatDouble.hh.

Referenced by add(), fill(), n(), operator=(), reset(), and rms().

G4double G4StatDouble::m_scale
protected

Definition at line 112 of file G4StatDouble.hh.

Referenced by mean(), operator=(), reset(), rms(), and scale().

G4double G4StatDouble::m_sum_w
protected

Definition at line 110 of file G4StatDouble.hh.

Referenced by add(), fill(), mean(), operator=(), reset(), rms(), and sum_w().

G4double G4StatDouble::m_sum_w2
protected

Definition at line 111 of file G4StatDouble.hh.

Referenced by add(), fill(), operator=(), reset(), and sum_w2().

G4double G4StatDouble::m_sum_wx
protected

Definition at line 107 of file G4StatDouble.hh.

Referenced by add(), fill(), mean(), operator=(), reset(), rms(), and sum_wx().

G4double G4StatDouble::m_sum_wx2
protected

Definition at line 108 of file G4StatDouble.hh.

Referenced by add(), fill(), operator=(), reset(), rms(), and sum_wx2().


The documentation for this class was generated from the following files: