GraphSysErr
0.10-2
A class to hold results with statistical and systematic errors A class to hold results with statistical and systematic errors
|
A holder for Point-to-Point systematic errors. More...
Public Member Functions | |
HolderP2P () | |
CTOR. More... | |
Public Member Functions inherited from GraphSysErr::Holder | |
Holder () | |
CTOR. More... | |
virtual | ~Holder () |
DTOR. More... | |
void | CopyAttr (Holder *h) |
Protected Member Functions | |
HolderP2P (const char *name, const char *title, Bool_t rel, UInt_t opt, UInt_t id) | |
CTOR with name and title. More... | |
HolderP2P (const HolderP2P &other) | |
Copy CTOR. More... | |
HolderP2P & | operator= (const HolderP2P &other) |
Assignement operator. More... | |
void | SavePrimitive (std::ostream &out, Option_t *option="") |
virtual void | Print (Option_t *option="") const |
ClassDef (HolderP2P, 3) | |
Setting errors | |
void | Set (Int_t point, Graph *g, Double_t ex, Double_t ey) |
Set errors at point. More... | |
void | Set (Int_t point, Graph *g, Double_t ex1, Double_t ex2, Double_t ey1, Double_t ey2) |
Set errors at point. More... | |
Get information | |
Double_t | GetX (Int_t point) const |
Get symmetric errors along X at point. More... | |
Double_t | GetXLeft (Int_t point) const |
Get errors to the left along X at point. More... | |
Double_t | GetXRight (Int_t point) const |
Get errors to the right along X at point. More... | |
Double_t | GetY (Int_t point) const |
Get symmetric errors along Y at point. More... | |
Double_t | GetYDown (Int_t i1, Int_t i2, Double_t ax) const |
Get the errors downwards along Y between points i1 and i2. More... | |
Double_t | GetYDown (Int_t point) const |
Get errors downward along Y at point. More... | |
Double_t | GetYUp (Int_t i1, Int_t i2, Double_t ax) const |
Get the errors upwards along Y between points i1 and i2. More... | |
Double_t | GetYUp (Int_t point) const |
Get errors upward along Y at point. More... | |
Sum, add, stack | |
void | AddError (Int_t i, UShort_t xMode, Bool_t ignoreErr, Bool_t quad, Bool_t sqOld, Double_t &exl, Double_t &exh, Double_t &eyl, Double_t &eyh) const |
Add errors together at point. More... | |
void | StackPointError (Int_t i, UShort_t xMode, Bool_t ignoreErr, Bool_t quad, Double_t &exl, Double_t &exh, Double_t &eyl, Double_t &eyh) const |
Stack up point errors. More... | |
Graph * | StackError (Graph *g, Bool_t ignoreErr, Bool_t quad) const |
Create new graph with stacked errors. More... | |
void | SumPointError (Int_t i, UShort_t xMode, Bool_t ignoreErr, Bool_t quad, Double_t &exl, Double_t &exh, Double_t &eyl, Double_t &eyh) const |
Sum up point errors. More... | |
void | SumError (Graph *g, Int_t i, Bool_t ignoreErr, Bool_t quad, UInt_t opt) const |
Sum errors at point. More... | |
Protected Member Functions inherited from GraphSysErr::Holder | |
Holder (const char *name, const char *title, Bool_t rel, UInt_t option, UInt_t id) | |
CTOR with name and title. More... | |
Holder (const Holder &other) | |
Copy constructorr. More... | |
Holder & | operator= (const Holder &other) |
Assignment operator. More... | |
virtual UInt_t | GetDOption () const |
virtual void | SetDOption (EDrawOption_t opt) |
Set the draw option. More... | |
virtual Bool_t | IsRelative () const |
Check if this is a relative error. More... | |
virtual void | ls (Option_t *option) const |
UShort_t | XMode (Int_t opt=-1) const |
void | DoAdd (UShort_t xMode, Double_t curExl, Double_t curExh, Double_t curEyl, Double_t curEyh, Bool_t ignoreErr, Bool_t quad, Bool_t sqOld, Double_t &exl, Double_t &exh, Double_t &eyl, Double_t &eyh) const |
Do add errors. More... | |
void | SetAttributes (Graph *g) const |
Set attributes. More... | |
ClassDef (Holder, 3) | |
Protected Attributes | |
TGraphAsymmErrors * | fGraph |
Our data. More... | |
Protected Attributes inherited from GraphSysErr::Holder | |
Bool_t | fRelative |
Relative error flag. More... | |
UInt_t | fOption |
Options. More... | |
Friends | |
struct | GraphSysErr |
Containing class is a friemd. More... | |
A holder for Point-to-Point systematic errors.
Definition at line 5886 of file GraphSysErr.C.
|
inline |
CTOR.
Definition at line 5893 of file GraphSysErr.C.
|
inlineprotected |
CTOR with name and title.
name | Name |
title | Title |
rel | Relative or absolue |
opt | Draw Option |
id | Identifier |
Definition at line 5907 of file GraphSysErr.C.
|
inlineprotected |
Copy CTOR.
other | Object ot copy from |
Definition at line 5922 of file GraphSysErr.C.
References fGraph.
|
inlineprotected |
Add errors together at point.
i | Point |
xMode | X-mode |
quad | If true, add in quadrature |
ignoreErr | If true, ignore errors on g |
sqOld | If true and quad true, square old |
exl | Input current, Output: the left-hand X errors |
exh | Input current, Output: the right-hand X errors |
eyl | Input current, Output: the downward Y errors |
eyh | Input current, Output: the upward Y errors |
Definition at line 6121 of file GraphSysErr.C.
References GraphSysErr::kDraw, and GraphSysErr::kVerbose.
|
protected |
|
inlineprotected |
Get symmetric errors along X at point.
point | Point |
Definition at line 6003 of file GraphSysErr.C.
Referenced by GraphSysErr::GetSysErrorX().
|
inlineprotected |
Get errors to the left along X at point.
point | Point |
Definition at line 6015 of file GraphSysErr.C.
Referenced by GraphSysErr::GetSysErrorXLeft(), and GraphSysErr::Scale().
|
inlineprotected |
Get errors to the right along X at point.
point | Point |
Definition at line 6027 of file GraphSysErr.C.
Referenced by GraphSysErr::GetSysErrorXRight(), and GraphSysErr::Scale().
|
inlineprotected |
Get symmetric errors along Y at point.
point | Point |
Definition at line 6039 of file GraphSysErr.C.
Referenced by GraphSysErr::GetSysErrorY().
|
inlineprotected |
Get the errors downwards along Y between points i1 and i2.
i1 | Left point |
i2 | Right point |
ax | Relative distance between the two points |
Definition at line 6053 of file GraphSysErr.C.
Referenced by GraphSysErr::Average(), GraphSysErr::ExportPoint(), GraphSysErr::GetSysErrorYDown(), GraphSysErr::Print(), GraphSysErr::Ratio(), and GraphSysErr::Scale().
|
inlineprotected |
Get errors downward along Y at point.
point | Point |
Definition at line 6068 of file GraphSysErr.C.
|
inlineprotected |
Get the errors upwards along Y between points i1 and i2.
i1 | Left point |
i2 | Right point |
ax | Relative distance between the two points |
Definition at line 6082 of file GraphSysErr.C.
Referenced by GraphSysErr::Average(), GraphSysErr::ExportPoint(), GraphSysErr::GetSysErrorYUp(), GraphSysErr::Print(), GraphSysErr::Ratio(), and GraphSysErr::Scale().
|
inlineprotected |
Get errors upward along Y at point.
point | Point |
Definition at line 6097 of file GraphSysErr.C.
Assignement operator.
other | Object to assign from |
Definition at line 5938 of file GraphSysErr.C.
References fGraph, and GraphSysErr::Holder::operator=().
|
inlineprotectedvirtual |
Reimplemented from GraphSysErr::Holder.
Definition at line 6263 of file GraphSysErr.C.
|
inlineprotected |
Definition at line 6249 of file GraphSysErr.C.
References GraphSysErr::IsRelative().
Referenced by GraphSysErr::SavePrimitive().
|
inlineprotected |
Set errors at point.
point | Point |
g | Graph |
ex | Symmetric error along X |
ey | Symmetric error along Y |
Definition at line 5964 of file GraphSysErr.C.
Referenced by GraphSysErr::Average(), and GraphSysErr::SetSysError().
|
inlineprotected |
Set errors at point.
point | Point |
g | Graph |
ex1 | Low erros along X |
ex2 | High errors along X |
ey1 | Low erros along Y |
ey2 | High errors along Y |
Definition at line 5978 of file GraphSysErr.C.
|
inlineprotectedvirtual |
Create new graph with stacked errors.
g | Previous errors |
ignoreErr | If true, ignore previous errors |
quad | If true, add in quadrature |
Implements GraphSysErr::Holder.
Definition at line 6189 of file GraphSysErr.C.
|
inlineprotected |
Stack up point errors.
i | Point number |
xMode | X-Mode |
ignoreErr | If true, ignore current errors |
quad | If true, add in quadrature |
exl | Input: current Output: New value |
exh | Input: current Output: New value |
eyl | Input: current Output: New value |
eyh | Input: current Output: New value |
Definition at line 6165 of file GraphSysErr.C.
References GraphSysErr::kDraw, and GraphSysErr::kVerbose.
|
inlineprotectedvirtual |
Sum errors at point.
Point i of g is updated
g | Where to sum |
i | Point |
ignoreErr | If true, ignore exusisting errros |
quad | Add in quadrature |
opt | Option |
Implements GraphSysErr::Holder.
Definition at line 6238 of file GraphSysErr.C.
|
inlineprotected |
Sum up point errors.
i | Point number |
xMode | X-Mode |
ignoreErr | If true, ignore current errors |
quad | If true, add in quadrature |
exl | Input: current Output: New value (possibly square) |
exh | Input: current Output: New value (possibly square) |
eyl | Input: current Output: New value (possibly square) |
eyh | Input: current Output: New value (possibly square) |
Definition at line 6221 of file GraphSysErr.C.
Referenced by GraphSysErr::GetYandError().
|
friend |
Containing class is a friemd.
Definition at line 5889 of file GraphSysErr.C.
|
protected |
Our data.
Definition at line 6278 of file GraphSysErr.C.
Referenced by HolderP2P(), operator=(), GraphSysErr::RemovePoint(), and GraphSysErr::SwapPoints().