AliPhysics  5eaf189 (5eaf189)
Combiner Struct Referenceabstract
Inheritance diagram for Combiner:

struct  Final

struct  List

struct  Result

## Public Types

typedef List::iterator iterator

typedef List::const_iterator const_iterator

## Public Member Functions

virtual ~Combiner ()

virtual double W (const Result &r) const =0

virtual double StepW (double guess, const Result &r) const =0

virtual double StepOffset (double guess, const Result &r) const =0

virtual double TermVar (double guess, const Result &r) const =0

double Term (double guess, const Result &r) const

double F (double guess, double chi2, const_iterator &begin, const_iterator &end) const

double FindError (unsigned short nIter, const_iterator &begin, const_iterator &end, int sign, double best, double chi2, double s)

double FindX (unsigned short nIter, const_iterator &begin, const_iterator &end, double lowest, double highest)

Final Calculate (const_iterator &begin, const_iterator &end, unsigned short nIter=50)

## Detailed Description

Definition at line 7 of file Combiner.C.

## Member Typedef Documentation

Definition at line 224 of file Combiner.C.

 typedef List::iterator Combiner::iterator

Definition at line 223 of file Combiner.C.

## Constructor & Destructor Documentation

 virtual Combiner::~Combiner ( )
inlinevirtual

Virtual destructor

Definition at line 229 of file Combiner.C.

## Member Function Documentation

 Final Combiner::Calculate ( const_iterator & begin, const_iterator & end, unsigned short nIter = 50 )
inline

Do the calculation

Parameters
 begin Iterator end Iterator nIter How many iterations to do.
Returns
The best estimate of $$x$$ and associated errors

Definition at line 407 of file Combiner.C.

Referenced by Drawer::Combine(), and RunTest().

 double Combiner::F ( double guess, double chi2, const_iterator & begin, const_iterator & end ) const
inline

Calculate the $$\chi^2(x')$$ where $$x'$$ is current guess at the result.

Parameters
 guess Current guess $$x'$$ chi2 Optional old $$\chi^2$$ from best $$x$$ value begin Iterator end Iterator
Returns
$$\chi^2(x')$$

Definition at line 294 of file Combiner.C.

Referenced by Calculate(), and FindError().

 double Combiner::FindError ( unsigned short nIter, const_iterator & begin, const_iterator & end, int sign, double best, double chi2, double s )
inline

Try to find best error

Parameters
 nIter Number of iterations begin Iterator end Iterator sign Direction (-1 is low, +1 is high) best Current best $$x$$ value chi2 $$\chi^2$$ of current best $$x$$ value s Summed weights in the direction
Returns
The error in the chosen direction

Definition at line 318 of file Combiner.C.

Referenced by Calculate().

 double Combiner::FindX ( unsigned short nIter, const_iterator & begin, const_iterator & end, double lowest, double highest )
inline

Find best estimate of $$x$$

Parameters
 nIter Number of iterations begin Iterator end Iterator lowest Lower bound highest Upper bound
Returns
$$x$$

Definition at line 367 of file Combiner.C.

Referenced by Calculate().

 virtual double Combiner::StepOffset ( double guess, const Result & r ) const
pure virtual

Calculate the bias.

Returns
$$\delta(x')$$

Implemented in LinearVarianceCombiner, and LinearSigmaCombiner.

Referenced by FindX(), and ~Combiner().

 virtual double Combiner::StepW ( double guess, const Result & r ) const
pure virtual

Calculate the weight based on a guess of best $$x'$$

Parameters
 guess Current guess $$x'$$ r Observation
Returns
$$W(x')$$

Implemented in LinearVarianceCombiner, and LinearSigmaCombiner.

Referenced by FindX(), and ~Combiner().

 double Combiner::Term ( double guess, const Result & r ) const
inline

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

$t_i(x') = (x' - x_i)^2 / v_i(x')$

where $$v_i(x')$$ is the term variance

Parameters
 guess $$x'$$ r Obersvation
Returns
$$t(x')$$

Definition at line 276 of file Combiner.C.

Referenced by F().

 virtual double Combiner::TermVar ( double guess, const Result & r ) const
pure virtual

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

Returns
$$v(x')$$

Implemented in LinearVarianceCombiner, and LinearSigmaCombiner.

Referenced by Term(), and ~Combiner().

 virtual double Combiner::W ( const Result & r ) const
pure virtual

Calculate the weight

Parameters
 r Observation
Returns
$$W$$

Implemented in LinearVarianceCombiner, and LinearSigmaCombiner.

Referenced by ~Combiner().

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