AliPhysics  a6017e1 (a6017e1)
GraphSysErr::HolderP2P Struct Reference
Inheritance diagram for GraphSysErr::HolderP2P:

Public Member Functions

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

Protected Member Functions

 HolderP2P (const char *name, const char *title, Bool_t rel, UInt_t opt, UInt_t id)
 
 HolderP2P (const HolderP2P &other)
 
HolderP2Poperator= (const HolderP2P &other)
 
void SavePrimitive (std::ostream &out, Option_t *option="")
 
virtual void Print (Option_t *option="") const
 
Setting errors
void Set (Int_t point, Graph *g, Double_t ex, Double_t ey)
 
void Set (Int_t point, Graph *g, Double_t ex1, Double_t ex2, Double_t ey1, Double_t ey2)
 
Get information
Double_t GetX (Int_t point) const
 
Double_t GetXLeft (Int_t point) const
 
Double_t GetXRight (Int_t point) const
 
Double_t GetY (Int_t point) const
 
Double_t GetYDown (Int_t i1, Int_t i2, Double_t ax) const
 
Double_t GetYDown (Int_t point) const
 
Double_t GetYUp (Int_t i1, Int_t i2, Double_t ax) const
 
Double_t GetYUp (Int_t point) const
 
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
 
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
 
GraphStackError (Graph *g, Bool_t ignoreErr, Bool_t quad) const
 
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
 
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
 

Protected Attributes

TGraphAsymmErrorsfGraph
 
- Protected Attributes inherited from GraphSysErr::Holder
Bool_t fRelative
 
UInt_t fOption
 

Friends

struct GraphSysErr
 

Detailed Description

A holder for Point-to-Point systematic errors

Definition at line 5896 of file GraphSysErr.C.

Constructor & Destructor Documentation

GraphSysErr::HolderP2P::HolderP2P ( )
inline

CTOR

Definition at line 5903 of file GraphSysErr.C.

GraphSysErr::HolderP2P::HolderP2P ( 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 5917 of file GraphSysErr.C.

GraphSysErr::HolderP2P::HolderP2P ( const HolderP2P other)
inlineprotected

Copy CTOR

Parameters
otherObject ot copy from

Definition at line 5932 of file GraphSysErr.C.

Member Function Documentation

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

Add errors together at point

Parameters
iPoint
xModeX-mode
quadIf true, add in quadrature
ignoreErrIf true, ignore errors on g
sqOldIf true and quad true, square old
exlInput current, Output: the left-hand X errors
exhInput current, Output: the right-hand X errors
eylInput current, Output: the downward Y errors
eyhInput current, Output: the upward Y errors

Definition at line 6131 of file GraphSysErr.C.

Double_t GraphSysErr::HolderP2P::GetX ( Int_t  point) const
inlineprotected

Get symmetric errors along X at point

Parameters
pointPoint
Returns
Symmetric errors along X at point

Definition at line 6013 of file GraphSysErr.C.

Referenced by GraphSysErr::GetSysErrorX().

Double_t GraphSysErr::HolderP2P::GetXLeft ( Int_t  point) const
inlineprotected

Get errors to the left along X at point

Parameters
pointPoint
Returns
Errors to the left along X at point

Definition at line 6025 of file GraphSysErr.C.

Referenced by GraphSysErr::GetSysErrorXLeft(), and GraphSysErr::Scale().

Double_t GraphSysErr::HolderP2P::GetXRight ( Int_t  point) const
inlineprotected

Get errors to the right along X at point

Parameters
pointPoint
Returns
Errors to the right along X at point

Definition at line 6037 of file GraphSysErr.C.

Referenced by GraphSysErr::GetSysErrorXRight(), and GraphSysErr::Scale().

Double_t GraphSysErr::HolderP2P::GetY ( Int_t  point) const
inlineprotected

Get symmetric errors along Y at point

Parameters
pointPoint
Returns
Symmetric (absolute) errors along Y at point

Definition at line 6049 of file GraphSysErr.C.

Referenced by GraphSysErr::GetSysErrorY().

Double_t GraphSysErr::HolderP2P::GetYDown ( Int_t  i1,
Int_t  i2,
Double_t  ax 
) const
inlineprotected

Get the errors downwards along Y between points i1 and i2

Parameters
i1Left point
i2Right point
axRelative distance between the two points
Returns
(Absolute) Errors downward along Y at point

Definition at line 6063 of file GraphSysErr.C.

Referenced by GraphSysErr::Average(), GraphSysErr::ExportPoint(), GraphSysErr::GetSysErrorYDown(), GraphSysErr::Print(), GraphSysErr::Ratio(), and GraphSysErr::Scale().

Double_t GraphSysErr::HolderP2P::GetYDown ( Int_t  point) const
inlineprotected

Get errors downward along Y at point

Parameters
pointPoint
Returns
(Absolute) Errors downward along Y at point

Definition at line 6078 of file GraphSysErr.C.

Double_t GraphSysErr::HolderP2P::GetYUp ( Int_t  i1,
Int_t  i2,
Double_t  ax 
) const
inlineprotected

Get the errors upwards along Y between points i1 and i2

Parameters
i1Left point
i2Right point
axRelative distance between the two points
Returns
(Absolute) Errors upward along Y at point

Definition at line 6092 of file GraphSysErr.C.

Referenced by GraphSysErr::Average(), GraphSysErr::ExportPoint(), GraphSysErr::GetSysErrorYUp(), GraphSysErr::Print(), GraphSysErr::Ratio(), and GraphSysErr::Scale().

Double_t GraphSysErr::HolderP2P::GetYUp ( Int_t  point) const
inlineprotected

Get errors upward along Y at point

Parameters
pointPoint
Returns
(Absolute) Errors upward along Y at point

Definition at line 6107 of file GraphSysErr.C.

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

Assignement operator

Parameters
otherObject to assign from
Returns

Definition at line 5948 of file GraphSysErr.C.

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

Reimplemented from GraphSysErr::Holder.

Definition at line 6273 of file GraphSysErr.C.

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

Definition at line 6259 of file GraphSysErr.C.

Referenced by GraphSysErr::SavePrimitive().

void GraphSysErr::HolderP2P::Set ( Int_t  point,
Graph g,
Double_t  ex,
Double_t  ey 
)
inlineprotected

Set errors at point

Parameters
pointPoint
gGraph
exSymmetric error along X
eySymmetric error along Y

Definition at line 5974 of file GraphSysErr.C.

Referenced by GraphSysErr::Average(), and GraphSysErr::SetSysError().

void GraphSysErr::HolderP2P::Set ( Int_t  point,
Graph g,
Double_t  ex1,
Double_t  ex2,
Double_t  ey1,
Double_t  ey2 
)
inlineprotected

Set errors at point

Parameters
pointPoint
gGraph
ex1Low erros along X
ex2High errors along X
ey1Low erros along Y
ey2High errors along Y

Definition at line 5988 of file GraphSysErr.C.

Graph* GraphSysErr::HolderP2P::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 6199 of file GraphSysErr.C.

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

Stack up point errors

Parameters
iPoint number
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 6175 of file GraphSysErr.C.

void GraphSysErr::HolderP2P::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 6248 of file GraphSysErr.C.

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

Sum up point errors

Parameters
iPoint number
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 6231 of file GraphSysErr.C.

Referenced by GraphSysErr::GetYandError().

Friends And Related Function Documentation

friend struct GraphSysErr
friend

Containing class is a friemd

Definition at line 5899 of file GraphSysErr.C.

Member Data Documentation

TGraphAsymmErrors* GraphSysErr::HolderP2P::fGraph
protected

Our data

Definition at line 6288 of file GraphSysErr.C.

Referenced by HolderP2P(), operator=(), GraphSysErr::RemovePoint(), and GraphSysErr::SwapPoints().


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