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

Classes

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.

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
beginIterator
endIterator
nIterHow 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
guessCurrent guess \( x'\)
chi2Optional old \( \chi^2\) from best \( x\) value
beginIterator
endIterator
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
nIterNumber of iterations
beginIterator
endIterator
signDirection (-1 is low, +1 is high)
bestCurrent best \( x\) value
chi2\( \chi^2\) of current best \( x\) value
sSummed 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
nIterNumber of iterations
beginIterator
endIterator
lowestLower bound
highestUpper 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
guessCurrent guess \( x'\)
rObservation
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'\)
rObersvation
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
rObservation
Returns
\( W\)

Implemented in LinearVarianceCombiner, and LinearSigmaCombiner.

Referenced by ~Combiner().


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