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::Holder Struct Referenceabstract

Base class to hold systematic errors. More...

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

Public Member Functions

 Holder ()
 CTOR. More...
 
virtual ~Holder ()
 DTOR. More...
 
void CopyAttr (Holder *h)
 

Protected Member Functions

 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 GraphStackError (Graph *g, Bool_t ignoreErr, Bool_t quad) const =0
 Create new graph with stacked errors. More...
 
virtual void SumError (Graph *g, Int_t i, Bool_t ignoreErr, Bool_t quad, UInt_t opt) const =0
 Sum errors at point. 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 Print (Option_t *option="") 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
 Do add errors. More...
 
void SetAttributes (Graph *g) const
 Set attributes. More...
 
 ClassDef (Holder, 3)
 

Protected Attributes

Bool_t fRelative
 Relative error flag. More...
 
UInt_t fOption
 Options. More...
 

Friends

struct GraphSysErr
 Containing class is a friemd. More...
 

Detailed Description

Base class to hold systematic errors.

Definition at line 5649 of file GraphSysErr.C.

Constructor & Destructor Documentation

GraphSysErr::Holder::Holder ( )
inline

CTOR.

Definition at line 5656 of file GraphSysErr.C.

virtual GraphSysErr::Holder::~Holder ( )
inlinevirtual

DTOR.

Definition at line 5666 of file GraphSysErr.C.

GraphSysErr::Holder::Holder ( const char *  name,
const char *  title,
Bool_t  rel,
UInt_t  option,
UInt_t  id 
)
inlineprotected

CTOR with name and title.

Parameters
nameName
titleTitle
relRelative or absolue
optionDraw Option
idIdentifier

Definition at line 5686 of file GraphSysErr.C.

GraphSysErr::Holder::Holder ( const Holder other)
inlineprotected

Copy constructorr.

Parameters
otherObject to copy from

Definition at line 5701 of file GraphSysErr.C.

Member Function Documentation

GraphSysErr::Holder::ClassDef ( Holder  ,
 
)
protected
void GraphSysErr::Holder::CopyAttr ( Holder h)
inline

Definition at line 5667 of file GraphSysErr.C.

References fOption.

Referenced by GraphSysErr::Ratio().

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

Do add errors.

Parameters
xModeX-mode
curExlCurrently summed/stacked X low error
curExhCurrently summed/stacked X high error
curEylCurrently summed/stacked Y low error
curEyhCurrently summed/stacked Y high error
ignoreErrIf true, ignore errors on currently stack errors
quadIf true, add in quadrature
sqOldIf false, assume current errors are squared already
exlInput: this sources X low error, Output: new value
exhInput: this sources X high error, Output: new value
eylInput: this sources Y low error, Output: new value
eyhInput: this sources Y high error, Output: new value

Definition at line 5818 of file GraphSysErr.C.

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

virtual UInt_t GraphSysErr::Holder::GetDOption ( ) const
inlineprotectedvirtual
Returns
Get the Option

Definition at line 5757 of file GraphSysErr.C.

Referenced by GraphSysErr::MakeMulti().

virtual Bool_t GraphSysErr::Holder::IsRelative ( ) const
inlineprotectedvirtual
virtual void GraphSysErr::Holder::ls ( Option_t *  option) const
inlineprotectedvirtual

Definition at line 5785 of file GraphSysErr.C.

References GraphSysErr::Combiner::Observation::Print().

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

Assignment operator.

Parameters
otherObject to assign from
Returns
reference to this object

Definition at line 5717 of file GraphSysErr.C.

References fOption, and fRelative.

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

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

Reimplemented in GraphSysErr::HolderCommon, and GraphSysErr::HolderP2P.

Definition at line 5771 of file GraphSysErr.C.

References GraphSysErr::IsRelative(), and GraphSysErr::kUsedBit.

void GraphSysErr::Holder::SetAttributes ( Graph g) const
inlineprotected

Set attributes.

Parameters
gon graph

Definition at line 5867 of file GraphSysErr.C.

virtual void GraphSysErr::Holder::SetDOption ( EDrawOption_t  opt)
inlineprotectedvirtual

Set the draw option.

Parameters
optOption

Definition at line 5763 of file GraphSysErr.C.

Referenced by GraphSysErr::SetSysOption().

virtual Graph* GraphSysErr::Holder::StackError ( Graph g,
Bool_t  ignoreErr,
Bool_t  quad 
) const
protectedpure virtual

Create new graph with stacked errors.

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

Implemented in GraphSysErr::HolderCommon, and GraphSysErr::HolderP2P.

Referenced by GraphSysErr::MakeMulti().

virtual void GraphSysErr::Holder::SumError ( Graph g,
Int_t  i,
Bool_t  ignoreErr,
Bool_t  quad,
UInt_t  opt 
) const
protectedpure virtual

Sum errors at point.

Point i of g is updated

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

Implemented in GraphSysErr::HolderCommon, and GraphSysErr::HolderP2P.

Referenced by GraphSysErr::MakeMulti().

UShort_t GraphSysErr::Holder::XMode ( Int_t  opt = -1) const
inlineprotected

Friends And Related Function Documentation

friend struct GraphSysErr
friend

Containing class is a friemd.

Definition at line 5652 of file GraphSysErr.C.

Member Data Documentation

UInt_t GraphSysErr::Holder::fOption
protected

Options.

Definition at line 5879 of file GraphSysErr.C.

Referenced by CopyAttr(), and operator=().

Bool_t GraphSysErr::Holder::fRelative
protected

Relative error flag.

Definition at line 5877 of file GraphSysErr.C.

Referenced by operator=().


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