AliPhysics  a4b41ad (a4b41ad)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SysErrorAdder Struct Referenceabstract
Inheritance diagram for SysErrorAdder:

Public Types

enum  {
  kTriggerFill = 1001, kMergingFill = 3001, kDensityFill = 3002, kEmpiricalFill = 3144,
  kHadronFill = 3244, kOtherFill = 0
}
 

Public Member Functions

 SysErrorAdder (const TString &sys, UShort_t sNN, const TString &trig)
 
virtual ~SysErrorAdder ()
 
virtual const char * GetTriggerName () const
 
virtual const char * GetTriggerString () const
 
Int_t ModColor (Color_t n, UShort_t off) const
 
void ModError (GraphSysErr *gse, Int_t id, Style_t fill, TLegend *l, UShort_t off=64) const
 
void AddLegend (TLegend *l, Int_t id, const char *title, Style_t fill) const
 
virtual Int_t MakeTrigger (GraphSysErr *gse, TLegend *l) const
 
Int_t MakeMerging (GraphSysErr *gse, TLegend *l) const
 
Int_t MakeDensity (GraphSysErr *gse, TLegend *l) const
 
virtual Int_t MakeEmpirical (GraphSysErr *gse, TLegend *l) const
 
virtual Int_t MakeHadron (GraphSysErr *gse, TLegend *l) const
 
virtual const char * MakeName () const
 
virtual Double_t GetMerging (Short_t) const
 
virtual Double_t GetDensity (Short_t w) const
 
virtual Double_t GetEmpirical () const
 
virtual Double_t GetHadron (Double_t eta) const
 
virtual void GetTrigger (Double_t &low, Double_t &high) const =0
 
virtual GraphSysErrMake (TH1 *h, TLegend *l, Double_t eff=1, Bool_t verb=false)
 

Static Public Member Functions

static SysErrorAdderCreate (const TString &t, const TString &s, UShort_t e, const TString &c)
 

Public Attributes

TString fSys
 
UShort_t fSNN
 
TString fTrig
 

Detailed Description

Definition at line 15 of file SysErrorAdder.C.

Member Enumeration Documentation

anonymous enum

Fill styles

Enumerator
kTriggerFill 
kMergingFill 
kDensityFill 
kEmpiricalFill 
kHadronFill 
kOtherFill 

Definition at line 20 of file SysErrorAdder.C.

Constructor & Destructor Documentation

SysErrorAdder::SysErrorAdder ( const TString sys,
UShort_t  sNN,
const TString trig 
)
inline

Constructor

Parameters
sysSystem
sNNCollision energy
trigTrigger

Definition at line 41 of file SysErrorAdder.C.

virtual SysErrorAdder::~SysErrorAdder ( )
inlinevirtual

Destructor

Definition at line 49 of file SysErrorAdder.C.

Member Function Documentation

void SysErrorAdder::AddLegend ( TLegend *  l,
Int_t  id,
const char *  title,
Style_t  fill 
) const
inline

Add legend entry

Parameters
lLegend
idIdentifier
titleTitle
fillFill style

Definition at line 108 of file SysErrorAdder.C.

Referenced by CENTAdder::MakeEmpirical(), and ModError().

SysErrorAdder * SysErrorAdder::Create ( const TString t,
const TString s,
UShort_t  e,
const TString c 
)
static

Definition at line 649 of file SysErrorAdder.C.

Referenced by ExtractGSEs().

virtual Double_t SysErrorAdder::GetDensity ( Short_t  w) const
inlinevirtual
Returns
The systematic error from density calculator

Definition at line 204 of file SysErrorAdder.C.

Referenced by Make(), and MakeDensity().

virtual Double_t SysErrorAdder::GetEmpirical ( ) const
inlinevirtual
Returns
The systematic error from empirical correction

Definition at line 208 of file SysErrorAdder.C.

Referenced by Make(), MakeEmpirical(), and CENTAdder::MakeEmpirical().

virtual Double_t SysErrorAdder::GetHadron ( Double_t  eta) const
inlinevirtual
Returns
The systematic error from empirical correction

Printf("Eta=%f -> %f", eta, ret);

Definition at line 212 of file SysErrorAdder.C.

Referenced by Make(), and MakeHadron().

virtual Double_t SysErrorAdder::GetMerging ( Short_t  ) const
inlinevirtual
Returns
The systematic error from merging

Definition at line 200 of file SysErrorAdder.C.

Referenced by Make(), and MakeMerging().

virtual void SysErrorAdder::GetTrigger ( Double_t low,
Double_t high 
) const
pure virtual

Get trigger systematic error

Parameters
lowOn return, the low error
highOn return, the high error

Implemented in CENTAdder, NSDAdder, INELGt0Adder, INELAdder, and OfflineAdder.

Referenced by MakeTrigger().

virtual const char* SysErrorAdder::GetTriggerName ( ) const
inlinevirtual

Trigger name

Returns
The trigger name

Reimplemented in CENTAdder.

Definition at line 55 of file SysErrorAdder.C.

Referenced by MakeTrigger().

virtual const char* SysErrorAdder::GetTriggerString ( ) const
inlinevirtual

Reimplemented in CENTAdder.

Definition at line 56 of file SysErrorAdder.C.

Referenced by ConvertOne(), Create(), MakeName(), and WithSysError().

virtual GraphSysErr* SysErrorAdder::Make ( TH1 h,
TLegend *  l,
Double_t  eff = 1,
Bool_t  verb = false 
)
inlinevirtual

Create a graph

Parameters
hhistogram
lOption Legend to add to
effEfficiency
verbBe verbose
Returns
Graph

Reimplemented in CENTAdder.

Definition at line 235 of file SysErrorAdder.C.

Referenced by ConvertOne(), DoOne(), CENTAdder::Make(), and WithSysError().

Int_t SysErrorAdder::MakeDensity ( GraphSysErr gse,
TLegend *  l 
) const
inline

Declare the systematic error from the denisty calculation

Parameters
gseGraph
lLegend
Returns
Id of systmatic error or -1

Definition at line 159 of file SysErrorAdder.C.

Referenced by Make().

virtual Int_t SysErrorAdder::MakeEmpirical ( GraphSysErr gse,
TLegend *  l 
) const
inlinevirtual

Declare the systematic error from the empirical correction

Parameters
gseGraph
lLegend
Returns
Id of systmatic error or -1

Reimplemented in CENTAdder.

Definition at line 174 of file SysErrorAdder.C.

Referenced by Make(), and CENTAdder::MakeEmpirical().

virtual Int_t SysErrorAdder::MakeHadron ( GraphSysErr gse,
TLegend *  l 
) const
inlinevirtual

Declare the systematic error from the hadron chemistry

Parameters
gseGraph
lLegend
Returns
Identifier

Definition at line 189 of file SysErrorAdder.C.

Referenced by Make().

Int_t SysErrorAdder::MakeMerging ( GraphSysErr gse,
TLegend *  l 
) const
inline

Declare the systematic error from the merging

Parameters
gseGraph
lLegend
Returns
Id of systmatic error or -1

Definition at line 144 of file SysErrorAdder.C.

Referenced by Make().

virtual const char* SysErrorAdder::MakeName ( ) const
inlinevirtual

Reimplemented in INELGt0Adder.

Definition at line 196 of file SysErrorAdder.C.

Referenced by Make().

virtual Int_t SysErrorAdder::MakeTrigger ( GraphSysErr gse,
TLegend *  l 
) const
inlinevirtual

Declare the systematic error from the trigger

Parameters
gseGraph
lLegend
Returns
Id of systmatic error or -1

Reimplemented in CENTAdder, NSDAdder, INELGt0Adder, INELAdder, and OfflineAdder.

Definition at line 126 of file SysErrorAdder.C.

Referenced by Make(), INELAdder::MakeTrigger(), INELGt0Adder::MakeTrigger(), NSDAdder::MakeTrigger(), and CENTAdder::MakeTrigger().

Int_t SysErrorAdder::ModColor ( Color_t  n,
UShort_t  off 
) const
inline

Definition at line 57 of file SysErrorAdder.C.

void SysErrorAdder::ModError ( GraphSysErr gse,
Int_t  id,
Style_t  fill,
TLegend *  l,
UShort_t  off = 64 
) const
inline

Modify an error

Parameters
gseGraph
idIdentifier
fillFill style
lLegend
offOff-set

Definition at line 78 of file SysErrorAdder.C.

Referenced by MakeDensity(), MakeEmpirical(), MakeHadron(), MakeMerging(), and MakeTrigger().

Member Data Documentation

UShort_t SysErrorAdder::fSNN

Energy

Definition at line 31 of file SysErrorAdder.C.

Referenced by INELAdder::INELAdder(), Make(), and NSDAdder::NSDAdder().

TString SysErrorAdder::fSys

System

Definition at line 29 of file SysErrorAdder.C.

Referenced by CENTAdder::CENTAdder(), INELAdder::INELAdder(), Make(), and NSDAdder::NSDAdder().

TString SysErrorAdder::fTrig

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