GraphSysErr
0.10-2
A class to hold results with statistical and systematic errors A class to hold results with statistical and systematic errors
|
Holder of common errors. More...
Public Member Functions | |
HolderCommon () | |
CTOR. More... | |
Public Member Functions inherited from GraphSysErr::Holder | |
Holder () | |
CTOR. More... | |
virtual | ~Holder () |
DTOR. More... | |
void | CopyAttr (Holder *h) |
Protected Member Functions | |
HolderCommon (const char *name, const char *title, Bool_t rel, UInt_t opt, UInt_t id) | |
CTOR with name and title. More... | |
HolderCommon (const HolderCommon &other) | |
Copy CTOR. More... | |
HolderCommon & | operator= (const HolderCommon &other) |
Assignment operator. More... | |
void | SavePrimitive (std::ostream &out, Option_t *option="") |
virtual void | Print (Option_t *option="") const |
ClassDef (HolderCommon, 3) | |
Setting errors | |
void | Set (Double_t ey) |
Set symmetric error. More... | |
void | Set (Double_t eyl, Double_t eyh) |
Set error. More... | |
Double_t | GetYDown (Double_t y=0) const |
Get the down error. More... | |
Double_t | GetYUp (Double_t y=0) const |
Get the up error. More... | |
Sum, add, stack | |
void | AddError (Double_t y, 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... | |
Graph * | BarError (Graph *g, Bool_t quad, Double_t x, Double_t y) const |
Make a graph for showing next to data. More... | |
void | StackPointError (Double_t y, 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 (Double_t y, 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 | |
Double_t | fEyl |
Down errors. More... | |
Double_t | fEyh |
Up errors. 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... | |
Holder of common errors.
Definition at line 6287 of file GraphSysErr.C.
|
inline |
CTOR.
Definition at line 6294 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 6307 of file GraphSysErr.C.
|
inlineprotected |
|
inlineprotected |
Add errors together at point.
y | Point value |
xMode | X-mode |
quad | If true, add in quadrature |
ignoreErr | If true, ignore errors on g |
sqOld | If true and quad true, square old |
y | Y value at point |
exl | On return, the left-hand X errors |
exh | On return, the right-hand X errors |
eyl | On return, the downward Y errors |
eyh | On return, the upward Y errors |
Definition at line 6402 of file GraphSysErr.C.
|
inlineprotected |
Make a graph for showing next to data.
g | PRevious errors |
quad | If true, add in quadrature |
x | Middle X coordinate |
y | Middle Y coordinate |
Definition at line 6439 of file GraphSysErr.C.
Referenced by GraphSysErr::MakeMulti().
|
protected |
|
inlineprotected |
Get the down error.
y | Value to evaluate at if the error is relative |
Definition at line 6367 of file GraphSysErr.C.
Referenced by GraphSysErr::Average(), GraphSysErr::Export(), GraphSysErr::FindCompat(), GraphSysErr::GetCommonErrorYDown(), GraphSysErr::GetSysErrorYDown(), GraphSysErr::Ratio(), and GraphSysErr::Scale().
|
inlineprotected |
Get the up error.
y | Value to evaluate at if the error is relative |
Definition at line 6378 of file GraphSysErr.C.
Referenced by GraphSysErr::Average(), GraphSysErr::Export(), GraphSysErr::FindCompat(), GraphSysErr::GetCommonErrorYUp(), GraphSysErr::GetSysErrorYUp(), GraphSysErr::Ratio(), and GraphSysErr::Scale().
|
inlineprotected |
Assignment operator.
other | Object to assign from |
Definition at line 6330 of file GraphSysErr.C.
References fEyh, fEyl, and GraphSysErr::Holder::operator=().
|
inlineprotectedvirtual |
Reimplemented from GraphSysErr::Holder.
Definition at line 6565 of file GraphSysErr.C.
References GraphSysErr::IsRelative().
Referenced by GraphSysErr::FindCompat().
|
inlineprotected |
Definition at line 6550 of file GraphSysErr.C.
Referenced by GraphSysErr::SavePrimitive().
|
inlineprotected |
Set symmetric error.
ey | Error |
Definition at line 6348 of file GraphSysErr.C.
References Set().
Referenced by GraphSysErr::DefineCommon(), GraphSysErr::Scale(), Set(), GraphSysErr::SetSysError(), and GraphSysErr::Symmetrize().
|
inlineprotected |
Set error.
eyl | Downward error along Y |
eyh | Upward error along Y |
Definition at line 6355 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 6490 of file GraphSysErr.C.
|
inlineprotected |
Stack up point errors.
y | Point value |
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 6469 of file GraphSysErr.C.
|
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 6538 of file GraphSysErr.C.
|
inlineprotected |
Sum up point errors.
y | Point value |
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 6521 of file GraphSysErr.C.
Referenced by GraphSysErr::GetYandError(), and GraphSysErr::MakeMulti().
|
friend |
Containing class is a friemd.
Definition at line 6290 of file GraphSysErr.C.
|
protected |
Up errors.
Definition at line 6585 of file GraphSysErr.C.
Referenced by operator=(), and GraphSysErr::Symmetrize().
|
protected |
Down errors.
Definition at line 6583 of file GraphSysErr.C.
Referenced by operator=(), and GraphSysErr::Symmetrize().