![]() |
AliPhysics
7c37cfa (7c37cfa)
|
Classes | |
struct | Observation |
struct | Result |
Public Types | |
typedef Double_t(* | Wrapper_t )(Double_t *, Double_t *) |
Public Member Functions | |
Combiner () | |
virtual | ~Combiner () |
virtual Double_t | W (const Observation &r) const =0 |
virtual Double_t | StepW (Double_t guess, const Observation &r) const =0 |
virtual Double_t | StepOffset (Double_t guess, const Observation &r) const =0 |
virtual Double_t | VarTerm (Double_t guess, const Observation &r) const =0 |
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) |
Result * | Calculate (UShort_t nIter=50) |
virtual Wrapper_t | Wrapper () const =0 |
TF1 * | MakeF (const Observation &r, Int_t j) const |
TLine * | MakeL (TF1 *f) const |
void | Draw (Option_t *option="") |
ClassDef (Combiner, 1) | |
The data store | |
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 |
Public Attributes | |
TClonesArray | fData |
Result * | fResult |
Combining measurements
From http://www.slac.stanford.edu/~barlow/java/
Definition at line 4911 of file GraphSysErr.C.
Definition at line 4913 of file GraphSysErr.C.
|
inline |
Constructor
Definition at line 5077 of file GraphSysErr.C.
|
inlinevirtual |
Virtual destructor
Definition at line 5085 of file GraphSysErr.C.
|
inline |
Add an obervation
r | Observation |
Definition at line 5106 of file GraphSysErr.C.
Referenced by GraphSysErr::Average(), and GraphSysErr::FWHM().
Add an observation
x | \( x_i\) |
el | \( \sigma_i^-\) |
eh | \( \sigma_i^+\) |
Definition at line 5117 of file GraphSysErr.C.
Do the calculation
nIter | How many iterations to do. |
Definition at line 5310 of file GraphSysErr.C.
Referenced by GraphSysErr::Average(), and GraphSysErr::FWHM().
|
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 5183 of file GraphSysErr.C.
Referenced by F().
GraphSysErr::Combiner::ClassDef | ( | Combiner | , |
1 | |||
) |
|
inline |
|
inline |
Definition at line 5382 of file GraphSysErr.C.
|
inline |
Try to find best error
nIter | Number of iterations |
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 5222 of file GraphSysErr.C.
Referenced by Calculate().
Calculate the \( \chi^2(x')\) where \( x'\) is current guess at the observation.
guess | Current guess \( x'\) |
chi2 | Optional old \( \chi^2\) from best \( x\) value |
Definition at line 5199 of file GraphSysErr.C.
Referenced by Calculate(), and E().
|
inline |
Make a function that represents to Log-likehood for a given observation.
r | Observation |
j | Serial number |
Definition at line 5355 of file GraphSysErr.C.
Referenced by Draw().
|
inline |
Make a line that represents the best found errors
f | Log-likelyhood function to make it from |
Definition at line 5372 of file GraphSysErr.C.
Referenced by Draw().
|
inline |
Print content of the list
option | not used |
Definition at line 5129 of file GraphSysErr.C.
Referenced by GraphSysErr::FWHM().
|
pure virtual |
Calculate the bias.
Implemented in GraphSysErr::LinearVarianceCombiner, and GraphSysErr::LinearSigmaCombiner.
Referenced by X().
|
pure virtual |
Calculate the weight based on a guess of best \( x'\)
guess | Current guess \( x'\) |
r | Observation |
Implemented in GraphSysErr::LinearVarianceCombiner, and GraphSysErr::LinearSigmaCombiner.
Referenced by X().
|
pure virtual |
Calculate the contribution variance to the \(\chi^2\) with the guess \(x'\).
Implemented in GraphSysErr::LinearVarianceCombiner, and GraphSysErr::LinearSigmaCombiner.
Referenced by ChiTerm().
|
pure virtual |
Calculate the weight
r | Observation |
Implemented in GraphSysErr::LinearVarianceCombiner, and GraphSysErr::LinearSigmaCombiner.
|
pure virtual |
Return function pointer to wrapper
Implemented in GraphSysErr::LinearVarianceCombiner, and GraphSysErr::LinearSigmaCombiner.
Referenced by MakeF().
Find best estimate of \( x\)
nIter | Number of iterations |
lowest | Lower bound |
highest | Upper bound |
Definition at line 5272 of file GraphSysErr.C.
Referenced by Calculate().
TClonesArray GraphSysErr::Combiner::fData |
Definition at line 5071 of file GraphSysErr.C.
Referenced by Add(), Calculate(), Clear(), Combiner(), Draw(), E(), F(), Print(), X(), and ~Combiner().
Result* GraphSysErr::Combiner::fResult |
Definition at line 5072 of file GraphSysErr.C.
Referenced by GraphSysErr::Average(), Calculate(), Clear(), Draw(), and ~Combiner().