AliPhysics  421aab4 (421aab4)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GraphSysErr::LinearVarianceCombiner Struct Reference
Inheritance diagram for GraphSysErr::LinearVarianceCombiner:

Public Member Functions

Double_t W (const Observation &r) const
 
Double_t StepW (Double_t guess, const Observation &r) const
 
Double_t StepOffset (Double_t guess, const Observation &r) const
 
Double_t VarTerm (Double_t guess, const Observation &r) const
 
Wrapper_t Wrapper () const
 
 ClassDef (LinearVarianceCombiner, 1)
 
- Public Member Functions inherited from GraphSysErr::Combiner
 Combiner ()
 
virtual ~Combiner ()
 
Double_t ChiTerm (Double_t guess, const Observation &r) const
 
Double_t F (Double_t guess, Double_t chi2) const
 
Double_t E (UShort_t nIter, Int_t sign, Double_t best, Double_t chi2, Double_t s)
 
Double_t X (UShort_t nIter, Double_t lowest, Double_t highest)
 
ResultCalculate (UShort_t nIter=50)
 
TF1 * MakeF (const Observation &r, Int_t j) const
 
TLine * MakeL (TF1 *f) const
 
void Draw (Option_t *option="")
 
 ClassDef (Combiner, 1)
 
void Clear (Option_t *option="")
 
void Add (const Observation &r)
 
void Add (Double_t x, Double_t el, Double_t eh)
 
void Print (Option_t *option="") const
 

Static Public Member Functions

static Double_t L (Double_t guess, Double_t x, Double_t el, Double_t eh)
 
static Double_t WrapL (Double_t *xp, Double_t *pp)
 

Additional Inherited Members

- Public Types inherited from GraphSysErr::Combiner
typedef Double_t(* Wrapper_t )(Double_t *, Double_t *)
 
- Public Attributes inherited from GraphSysErr::Combiner
TClonesArray fData
 
ResultfResult
 

Detailed Description

A combiner that uses a linear variance approximation

Definition at line 5538 of file GraphSysErr.C.

Member Function Documentation

GraphSysErr::LinearVarianceCombiner::ClassDef ( LinearVarianceCombiner  ,
 
)
static Double_t GraphSysErr::LinearVarianceCombiner::L ( Double_t  guess,
Double_t  x,
Double_t  el,
Double_t  eh 
)
inlinestatic

Return the likely-hood function value at \( x'\):

\[ L(x') = (x'-x)^2 / (V + V'(x'-x)) \]

where

\[ V = \sigma^+\sigma^-\quad V' = \sigma^+-\sigma^- \]

Parameters
guess\( x'\)
x\( x\)
el\( \sigma^-\)
eh\( \sigma^+\)
Returns

Definition at line 5627 of file GraphSysErr.C.

Referenced by WrapL().

Double_t GraphSysErr::LinearVarianceCombiner::StepOffset ( Double_t  guess,
const Observation r 
) const
inlinevirtual

Calculate the bias.

\[ \delta(x') = 1/2 V' [(x'-x) / (V + V'(x' - x))]^2 \]

Parameters
guessCurrent guess \( x'\)
rObservation
Returns
\(\delta(x')\)

Implements GraphSysErr::Combiner.

Definition at line 5586 of file GraphSysErr.C.

Double_t GraphSysErr::LinearVarianceCombiner::StepW ( Double_t  guess,
const Observation r 
) const
inlinevirtual

Calculate the weight based on a guess of best \( x'\)

\[ W(x') = v / [V + V' (x' - x)]^2 \]

Parameters
guessCurrent guess \( x'\)
rObservation
Returns
\( W(x')\)

Implements GraphSysErr::Combiner.

Definition at line 5569 of file GraphSysErr.C.

Double_t GraphSysErr::LinearVarianceCombiner::VarTerm ( Double_t  guess,
const Observation r 
) const
inlinevirtual

Calculate the contribution variance to the \(\chi^2\) with the guess \(x'\).

\[ V(x') = V + V' (x' - x) \]

Parameters
guessCurrent guess \( x'\)
rObservation
Returns
\( v(x')\)

Implements GraphSysErr::Combiner.

Definition at line 5604 of file GraphSysErr.C.

Double_t GraphSysErr::LinearVarianceCombiner::W ( const Observation r) const
inlinevirtual

Calculate the weight

\[ w = (V + x V')^2 / (2 V + x V') \]

Parameters
rObservation
Returns
\( W\)

Implements GraphSysErr::Combiner.

Definition at line 5551 of file GraphSysErr.C.

static Double_t GraphSysErr::LinearVarianceCombiner::WrapL ( Double_t xp,
Double_t pp 
)
inlinestatic

Wrap likely-hood function for ROOT

Parameters
xpPointer to independent variables
ppPointer to parameters
Returns
Likely-hood function evaluate at xp

Definition at line 5642 of file GraphSysErr.C.

Referenced by Wrapper().

Wrapper_t GraphSysErr::LinearVarianceCombiner::Wrapper ( ) const
inlinevirtual

Return function pointer to wrapper

Returns
Function pointer

Implements GraphSysErr::Combiner.

Definition at line 5651 of file GraphSysErr.C.


The documentation for this struct was generated from the following file: