![]() |
AliPhysics
114179e (114179e)
|
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) |
Definition at line 7 of file Combiner.C.
Definition at line 224 of file Combiner.C.
typedef List::iterator Combiner::iterator |
Definition at line 223 of file Combiner.C.
|
inlinevirtual |
Virtual destructor
Definition at line 229 of file Combiner.C.
|
inline |
Do the calculation
begin | Iterator |
end | Iterator |
nIter | How many iterations to do. |
Definition at line 407 of file Combiner.C.
Referenced by Drawer::Combine(), and RunTest().
|
inline |
Calculate the \( \chi^2(x')\) where \( x'\) is current guess at the result.
guess | Current guess \( x'\) |
chi2 | Optional old \( \chi^2\) from best \( x\) value |
begin | Iterator |
end | Iterator |
Definition at line 294 of file Combiner.C.
Referenced by Calculate(), and FindError().
|
inline |
Try to find best error
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 |
Definition at line 318 of file Combiner.C.
Referenced by Calculate().
|
inline |
Find best estimate of \( x\)
nIter | Number of iterations |
begin | Iterator |
end | Iterator |
lowest | Lower bound |
highest | Upper bound |
Definition at line 367 of file Combiner.C.
Referenced by Calculate().
|
pure virtual |
Calculate the bias.
Implemented in LinearVarianceCombiner, and LinearSigmaCombiner.
Referenced by FindX().
|
pure virtual |
Calculate the weight based on a guess of best \( x'\)
guess | Current guess \( x'\) |
r | Observation |
Implemented in LinearVarianceCombiner, and LinearSigmaCombiner.
Referenced by FindX().
|
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
guess | \( x'\) |
r | Obersvation |
Definition at line 276 of file Combiner.C.
Referenced by F().
|
pure virtual |
Calculate the contribution variance to the \(\chi^2\) with the guess \(x'\).
Implemented in LinearVarianceCombiner, and LinearSigmaCombiner.
Referenced by Term().
|
pure virtual |
Calculate the weight
r | Observation |
Implemented in LinearVarianceCombiner, and LinearSigmaCombiner.