GraphSysErr  0.10-2
A class to hold results with statistical and systematic errors A class to hold results with statistical and systematic errors
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
GraphSysErr::HolderP2P Struct Reference

A holder for Point-to-Point systematic errors. More...

Inheritance diagram for GraphSysErr::HolderP2P:
Inheritance graph
[legend]
Collaboration diagram for GraphSysErr::HolderP2P:
Collaboration graph
[legend]

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...
 
HolderP2Poperator= (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...
 
GraphStackError (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...
 
Holderoperator= (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...
 

Detailed Description

A holder for Point-to-Point systematic errors.

Definition at line 5886 of file GraphSysErr.C.

Constructor & Destructor Documentation

GraphSysErr::HolderP2P::HolderP2P ( )
inline

CTOR.

Definition at line 5893 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 5907 of file GraphSysErr.C.

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

Copy CTOR.

Parameters
otherObject ot copy from

Definition at line 5922 of file GraphSysErr.C.

References fGraph.

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 6121 of file GraphSysErr.C.

References GraphSysErr::kDraw, and GraphSysErr::kVerbose.

GraphSysErr::HolderP2P::ClassDef ( HolderP2P  ,
 
)
protected
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 6003 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 6015 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 6027 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 6039 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 6053 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 6068 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 6082 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 6097 of file GraphSysErr.C.

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

Assignement operator.

Parameters
otherObject to assign from
Returns

Definition at line 5938 of file GraphSysErr.C.

References fGraph, and GraphSysErr::Holder::operator=().

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

Reimplemented from GraphSysErr::Holder.

Definition at line 6263 of file GraphSysErr.C.

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

Definition at line 6249 of file GraphSysErr.C.

References GraphSysErr::IsRelative().

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 5964 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 5978 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 6189 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 6165 of file GraphSysErr.C.

References GraphSysErr::kDraw, and GraphSysErr::kVerbose.

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 6238 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 6221 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 5889 of file GraphSysErr.C.

Member Data Documentation

TGraphAsymmErrors* GraphSysErr::HolderP2P::fGraph
protected

Our data.

Definition at line 6278 of file GraphSysErr.C.

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


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