Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

TrkOutAvgTimeCalculator::ws Class Reference

List of all members.

Public Member Functions

bool isPhysical () const
bool isPhysical () const
double mean () const
double mean () const
unsigned n () const
unsigned n () const
wsoperator+= (const ws &x)
wsoperator+= (const ws &x)
wsoperator-= (const ws &x)
wsoperator-= (const ws &x)
bool operator== (const ws &x) const
bool operator== (const ws &x) const
double pull (const ws &x) const
double pull (const ws &x) const
double sigma () const
double sigma () const
 ws (double x=0, double w=0)
 ws (double x=0, double w=0)

Private Member Functions

double sigma2 () const
double sigma2 () const

Private Attributes

unsigned _n
double _w
double _wx

Constructor & Destructor Documentation

TrkOutAvgTimeCalculator::ws::ws double  x = 0,
double  w = 0
[inline]
 

00044 :_w(w),_wx(w*x),_n(w>0?1:0) { assert(!(w<0));}

TrkOutAvgTimeCalculator::ws::ws double  x = 0,
double  w = 0
[inline]
 

00044 :_w(w),_wx(w*x),_n(w>0?1:0) { assert(!(w<0));}


Member Function Documentation

bool TrkOutAvgTimeCalculator::ws::isPhysical  )  const [inline]
 

00048 { return _w>0;}

bool TrkOutAvgTimeCalculator::ws::isPhysical  )  const [inline]
 

00048 { return _w>0;}

double TrkOutAvgTimeCalculator::ws::mean void   )  const [inline]
 

00049 {return _wx/_w;}

double TrkOutAvgTimeCalculator::ws::mean void   )  const [inline]
 

00049 {return _wx/_w;}

unsigned TrkOutAvgTimeCalculator::ws::n  )  const [inline]
 

00052 { return _n;}

unsigned TrkOutAvgTimeCalculator::ws::n  )  const [inline]
 

00052 { return _n;}

ws& TrkOutAvgTimeCalculator::ws::operator+= const ws x  )  [inline]
 

00045 { _wx += x._wx; _w+=x._w; _n+=x._n; return *this;}

ws& TrkOutAvgTimeCalculator::ws::operator+= const ws x  )  [inline]
 

00045 { _wx += x._wx; _w+=x._w; _n+=x._n; return *this;}

ws& TrkOutAvgTimeCalculator::ws::operator-= const ws x  )  [inline]
 

00046 { _wx -= x._wx; _w-=x._w; _n-=x._n; return *this;}

ws& TrkOutAvgTimeCalculator::ws::operator-= const ws x  )  [inline]
 

00046 { _wx -= x._wx; _w-=x._w; _n-=x._n; return *this;}

bool TrkOutAvgTimeCalculator::ws::operator== const ws x  )  const [inline]
 

00047 { return _w==x._w && _wx==x._wx && _n==x._n;}

bool TrkOutAvgTimeCalculator::ws::operator== const ws x  )  const [inline]
 

00047 { return _w==x._w && _wx==x._wx && _n==x._n;}

double TrkOutAvgTimeCalculator::ws::pull const ws x  )  const [inline]
 

00051 { return (mean()-x.mean())/sqrt(sigma2()+x.sigma2()); }

double TrkOutAvgTimeCalculator::ws::pull const ws x  )  const [inline]
 

00051 { return (mean()-x.mean())/sqrt(sigma2()+x.sigma2()); }

double TrkOutAvgTimeCalculator::ws::sigma  )  const [inline]
 

00050 { return double(1)/sqrt(_w);}

double TrkOutAvgTimeCalculator::ws::sigma  )  const [inline]
 

00050 { return double(1)/sqrt(_w);}

double TrkOutAvgTimeCalculator::ws::sigma2  )  const [inline, private]
 

00054 { return double(1)/_w;}

double TrkOutAvgTimeCalculator::ws::sigma2  )  const [inline, private]
 

00054 { return double(1)/_w;}


Member Data Documentation

unsigned TrkOutAvgTimeCalculator::ws::_n [private]
 

double TrkOutAvgTimeCalculator::ws::_w [private]
 

double TrkOutAvgTimeCalculator::ws::_wx [private]
 


The documentation for this class was generated from the following files:
Generated on Wed Feb 2 19:08:57 2011 for BOSS6.5.5 by  doxygen 1.3.9.1