Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
Hal::ErrorCalc Class Reference
Inheritance diagram for Hal::ErrorCalc:

Public Member Functions

 ErrorCalc (TString name="", Double_t val=0, Double_t err=0)
 
void SetMeasuredVal (Double_t val)
 
void SetStatError (Double_t val)
 
void AddSysError (TString name, Double_t value, Double_t uncert=-1)
 
Double_t GetStatError () const
 
Double_t BarlowTest (Int_t prec=4) const
 
Double_t TotalSys (Int_t prec=4) const
 

Static Public Member Functions

static Double_t SumError (std::initializer_list< Double_t > errs)
 

Detailed Description

Definition at line 15 of file ErrorCalc.h.

Constructor & Destructor Documentation

◆ ErrorCalc()

Hal::ErrorCalc::ErrorCalc ( TString name = "",
Double_t val = 0,
Double_t err = 0 )
Parameters
name
val

Definition at line 59 of file ErrorCalc.cxx.

Member Function Documentation

◆ AddSysError()

void Hal::ErrorCalc::AddSysError ( TString name,
Double_t value,
Double_t uncert = -1 )

add systematic error source, if name is duplicated then error treated as a next measurement

Parameters
name
value
sysUncert- statistical uncert of variation measurement, if -2 then assumed as abs(measurement - value) if any other negative value then assumed the same as stat error of measurement

Definition at line 73 of file ErrorCalc.cxx.

◆ BarlowTest()

Double_t Hal::ErrorCalc::BarlowTest ( Int_t prec = 4) const

performs barlow test and print results

Parameters
precprecision of printing
Returns

Definition at line 18 of file ErrorCalc.cxx.

◆ GetStatError()

Double_t Hal::ErrorCalc::GetStatError ( ) const

return statistical uncertainty for measurement

Parameters
name
Returns

Definition at line 16 of file ErrorCalc.cxx.

◆ SetMeasuredVal()

void Hal::ErrorCalc::SetMeasuredVal ( Double_t val)
inline

set measured value of paramter

Parameters
val

Definition at line 32 of file ErrorCalc.h.

◆ SetStatError()

void Hal::ErrorCalc::SetStatError ( Double_t val)
inline
Parameters
valvalue of statistical error

Definition at line 37 of file ErrorCalc.h.

◆ SumError()

Double_t Hal::ErrorCalc::SumError ( std::initializer_list< Double_t > errs)
static

return error by eq = sqrt(err[0]^2+err[1]^2+...)

Parameters
errs
Returns

Definition at line 112 of file ErrorCalc.cxx.

◆ TotalSys()

Double_t Hal::ErrorCalc::TotalSys ( Int_t prec = 4) const

pefrom other test and print results in principle:

  • the uncertainty of measurement with single method is assued as max(X-xi)
  • then total uncertainty is sqrt(sum uncert_j)
    Parameters
    prec
    Returns

Definition at line 92 of file ErrorCalc.cxx.


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