AliPhysics  7c37cfa (7c37cfa)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GraphSysErr::HolderCommon Struct Reference
Inheritance diagram for GraphSysErr::HolderCommon:

Public Member Functions

 HolderCommon ()
 
- Public Member Functions inherited from GraphSysErr::Holder
 Holder ()
 
virtual ~Holder ()
 
void CopyAttr (Holder *h)
 

Protected Member Functions

 HolderCommon (const char *name, const char *title, Bool_t rel, UInt_t opt, UInt_t id)
 
 HolderCommon (const HolderCommon &other)
 
HolderCommonoperator= (const HolderCommon &other)
 
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)
 
void Set (Double_t eyl, Double_t eyh)
 
Double_t GetYDown (Double_t y=0) const
 
Double_t GetYUp (Double_t y=0) const
 
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
 
GraphBarError (Graph *g, Bool_t quad, Double_t x, Double_t y) const
 
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
 
GraphStackError (Graph *g, Bool_t ignoreErr, Bool_t quad) const
 
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
 
void SumError (Graph *g, Int_t i, Bool_t ignoreErr, Bool_t quad, UInt_t opt) const
 
- Protected Member Functions inherited from GraphSysErr::Holder
 Holder (const char *name, const char *title, Bool_t rel, UInt_t option, UInt_t id)
 
 Holder (const Holder &other)
 
Holderoperator= (const Holder &other)
 
virtual UInt_t GetDOption () const
 
virtual void SetDOption (EDrawOption_t opt)
 
virtual Bool_t IsRelative () const
 
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
 
void SetAttributes (Graph *g) const
 
 ClassDef (Holder, 3)
 

Protected Attributes

Double_t fEyl
 
Double_t fEyh
 
- Protected Attributes inherited from GraphSysErr::Holder
Bool_t fRelative
 
UInt_t fOption
 

Friends

struct GraphSysErr
 

Detailed Description

Holder of common errors

Definition at line 6297 of file GraphSysErr.C.

Constructor & Destructor Documentation

GraphSysErr::HolderCommon::HolderCommon ( )
inline

CTOR

Definition at line 6304 of file GraphSysErr.C.

GraphSysErr::HolderCommon::HolderCommon ( const char *  name,
const char *  title,
Bool_t  rel,
UInt_t  opt,
UInt_t  id 
)
inlineprotected

CTOR with name and title

Parameters
nameName
titleTitle
relRelative or absolue
optDraw Option
idIdentifier

Definition at line 6317 of file GraphSysErr.C.

GraphSysErr::HolderCommon::HolderCommon ( const HolderCommon other)
inlineprotected

Copy CTOR

Parameters
otherObject to copy from

Definition at line 6327 of file GraphSysErr.C.

Member Function Documentation

void GraphSysErr::HolderCommon::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
inlineprotected

Add errors together at point

Parameters
yPoint value
xModeX-mode
quadIf true, add in quadrature
ignoreErrIf true, ignore errors on g
sqOldIf true and quad true, square old
yY value at point
exlOn return, the left-hand X errors
exhOn return, the right-hand X errors
eylOn return, the downward Y errors
eyhOn return, the upward Y errors

Definition at line 6412 of file GraphSysErr.C.

Referenced by BarError(), StackPointError(), and SumPointError().

Graph* GraphSysErr::HolderCommon::BarError ( Graph g,
Bool_t  quad,
Double_t  x,
Double_t  y 
) const
inlineprotected

Make a graph for showing next to data

Parameters
gPRevious errors
quadIf true, add in quadrature
xMiddle X coordinate
yMiddle Y coordinate
Returns
Newly allocated graph

Definition at line 6449 of file GraphSysErr.C.

Referenced by GraphSysErr::MakeMulti().

GraphSysErr::HolderCommon::ClassDef ( HolderCommon  ,
 
)
protected
Double_t GraphSysErr::HolderCommon::GetYDown ( Double_t  y = 0) const
inlineprotected

Get the down error

Parameters
yValue to evaluate at if the error is relative
Returns
The down error

Definition at line 6377 of file GraphSysErr.C.

Referenced by AddError(), GraphSysErr::Average(), GraphSysErr::Export(), GraphSysErr::FindCompat(), GraphSysErr::GetCommonErrorYDown(), GraphSysErr::GetSysErrorYDown(), GraphSysErr::Ratio(), and GraphSysErr::Scale().

Double_t GraphSysErr::HolderCommon::GetYUp ( Double_t  y = 0) const
inlineprotected

Get the up error

Parameters
yValue to evaluate at if the error is relative
Returns
The up error

Definition at line 6388 of file GraphSysErr.C.

Referenced by AddError(), GraphSysErr::Average(), GraphSysErr::Export(), GraphSysErr::FindCompat(), GraphSysErr::GetCommonErrorYUp(), GraphSysErr::GetSysErrorYUp(), GraphSysErr::Ratio(), and GraphSysErr::Scale().

HolderCommon& GraphSysErr::HolderCommon::operator= ( const HolderCommon other)
inlineprotected

Assignment operator

Parameters
otherObject to assign from
Returns
Reference to this

Definition at line 6340 of file GraphSysErr.C.

virtual void GraphSysErr::HolderCommon::Print ( Option_t option = "") const
inlineprotectedvirtual

Reimplemented from GraphSysErr::Holder.

Definition at line 6575 of file GraphSysErr.C.

Referenced by GraphSysErr::FindCompat().

void GraphSysErr::HolderCommon::SavePrimitive ( std::ostream &  out,
Option_t option = "" 
)
inlineprotected

Definition at line 6560 of file GraphSysErr.C.

Referenced by GraphSysErr::SavePrimitive().

void GraphSysErr::HolderCommon::Set ( Double_t  ey)
inlineprotected

Set symmetric error

Parameters
eyError

Definition at line 6358 of file GraphSysErr.C.

Referenced by GraphSysErr::DefineCommon(), GraphSysErr::Scale(), Set(), GraphSysErr::SetSysError(), and GraphSysErr::Symmetrize().

void GraphSysErr::HolderCommon::Set ( Double_t  eyl,
Double_t  eyh 
)
inlineprotected

Set error

Parameters
eylDownward error along Y
eyhUpward error along Y

Definition at line 6365 of file GraphSysErr.C.

Graph* GraphSysErr::HolderCommon::StackError ( Graph g,
Bool_t  ignoreErr,
Bool_t  quad 
) const
inlineprotectedvirtual

Create new graph with stacked errors

Parameters
gPrevious errors
ignoreErrIf true, ignore previous errors
quadIf true, add in quadrature
Returns
Newly allocated graph

Implements GraphSysErr::Holder.

Definition at line 6500 of file GraphSysErr.C.

void GraphSysErr::HolderCommon::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
inlineprotected

Stack up point errors

Parameters
yPoint value
xModeX-Mode
ignoreErrIf true, ignore current errors
quadIf true, add in quadrature
exlInput: current Output: New value
exhInput: current Output: New value
eylInput: current Output: New value
eyhInput: current Output: New value

Definition at line 6479 of file GraphSysErr.C.

Referenced by StackError().

void GraphSysErr::HolderCommon::SumError ( Graph g,
Int_t  i,
Bool_t  ignoreErr,
Bool_t  quad,
UInt_t  opt 
) const
inlineprotectedvirtual

Sum errors at point. Point i of g is updated

Parameters
gWhere to sum
iPoint
ignoreErrIf true, ignore exusisting errros
quadAdd in quadrature
optOption

Implements GraphSysErr::Holder.

Definition at line 6548 of file GraphSysErr.C.

void GraphSysErr::HolderCommon::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
inlineprotected

Sum up point errors

Parameters
yPoint value
xModeX-Mode
ignoreErrIf true, ignore current errors
quadIf true, add in quadrature
exlInput: current Output: New value (possibly square)
exhInput: current Output: New value (possibly square)
eylInput: current Output: New value (possibly square)
eyhInput: current Output: New value (possibly square)

Definition at line 6531 of file GraphSysErr.C.

Referenced by GraphSysErr::GetYandError(), GraphSysErr::MakeMulti(), and SumError().

Friends And Related Function Documentation

friend struct GraphSysErr
friend

Containing class is a friemd

Definition at line 6300 of file GraphSysErr.C.

Member Data Documentation

Double_t GraphSysErr::HolderCommon::fEyh
protected

Up errors

Definition at line 6595 of file GraphSysErr.C.

Referenced by GetYUp(), operator=(), Print(), SavePrimitive(), Set(), and GraphSysErr::Symmetrize().

Double_t GraphSysErr::HolderCommon::fEyl
protected

Down errors

Definition at line 6593 of file GraphSysErr.C.

Referenced by GetYDown(), operator=(), Print(), SavePrimitive(), Set(), and GraphSysErr::Symmetrize().


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