Marlin  1.17.1
 All Classes Namespaces Functions Variables Enumerations Friends Pages
ErrorOfSigma.h
1 #ifndef ErrorOfSigma_h
2 #define ErrorOfSigma_h 1
3 
4 namespace marlin{
5 
13  class ErrorOfSigma {
14 
15  public:
16 
19  ErrorOfSigma( unsigned n ) ;
20 
22  virtual ~ErrorOfSigma() {}
23 
26  double lowerError( double sigma ) ;
27 
30  double upperError( double sigma ) ;
31 
32  protected:
33 
36  virtual double getChiSquaredPlus() ;
37 
40  virtual double getChiSquaredMinus() ;
41 
43  unsigned _n ;
44  } ;
45 
46 
47 
48 } // end namespace
49 
50 #endif
51 
52 
53 
Small helper class that computes the lower and upper error of sigma assuming a normal distribution...
Definition: ErrorOfSigma.h:13
double upperError(double sigma)
The upper error of sigma.
Definition: ErrorOfSigma.cc:30
virtual double getChiSquaredPlus()
Returns the chisquared value with P(chisquared) == 0.84.
Definition: ErrorOfSigma.cc:37
double lowerError(double sigma)
The lower error of sigma.
Definition: ErrorOfSigma.cc:24
unsigned _n
The number of degrees of freedom.
Definition: ErrorOfSigma.h:43
virtual ~ErrorOfSigma()
Virtual d'tor.
Definition: ErrorOfSigma.h:22
virtual double getChiSquaredMinus()
Returns the chisquared value with P(chisquared) == 0.16.
Definition: ErrorOfSigma.cc:56
ErrorOfSigma(unsigned n)
C'tor takes the number of measured values.
Definition: ErrorOfSigma.cc:10