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::HolderCommon Struct Reference

Holder of common errors. More...

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

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...
 
HolderCommonoperator= (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...
 
GraphBarError (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...
 
GraphStackError (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...
 
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

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...
 

Detailed Description

Holder of common errors.

Definition at line 6287 of file GraphSysErr.C.

Constructor & Destructor Documentation

GraphSysErr::HolderCommon::HolderCommon ( )
inline

CTOR.

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

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

Copy CTOR.

Parameters
otherObject to copy from

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

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

Referenced by 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 6378 of file GraphSysErr.C.

Referenced by 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 6330 of file GraphSysErr.C.

References fEyh, fEyl, and GraphSysErr::Holder::operator=().

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

Reimplemented from GraphSysErr::Holder.

Definition at line 6565 of file GraphSysErr.C.

References GraphSysErr::IsRelative().

Referenced by GraphSysErr::FindCompat().

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

Definition at line 6550 of file GraphSysErr.C.

Referenced by GraphSysErr::SavePrimitive().

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

Set symmetric error.

Parameters
eyError

Definition at line 6348 of file GraphSysErr.C.

References Set().

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 6355 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 6490 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 6469 of file GraphSysErr.C.

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

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

Friends And Related Function Documentation

friend struct GraphSysErr
friend

Containing class is a friemd.

Definition at line 6290 of file GraphSysErr.C.

Member Data Documentation

Double_t GraphSysErr::HolderCommon::fEyh
protected

Up errors.

Definition at line 6585 of file GraphSysErr.C.

Referenced by operator=(), and GraphSysErr::Symmetrize().

Double_t GraphSysErr::HolderCommon::fEyl
protected

Down errors.

Definition at line 6583 of file GraphSysErr.C.

Referenced by operator=(), and GraphSysErr::Symmetrize().


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