AliPhysics  96866e8 (96866e8)
EmpiricalMaker Struct Reference

Public Member Functions

 EmpiricalMaker ()
 
void LoadReferences ()
 
TMultiGraph * GetReference (UShort_t c1, UShort_t c2)
 
void Run (const TString &fileName)
 
void ProcessComponent (TDirectory *d, TDirectory *out, const TString &name)
 
void ProcessCent (UShort_t c1, UShort_t c2, TCollection *c, const TString &name, THStack *s, TDirectory *d)
 

Static Public Member Functions

static TFile * OpenFile (const TString &fname, Bool_t rw=false)
 
static Bool_t CheckType (TObject *o, TClass *cl, Bool_t quiet=false)
 
static TObjectGetObject (TDirectory *d, const TString &name, TClass *cl=0, Bool_t quiet=false)
 
static TObjectGetObject (TCollection *d, const TString &name, TClass *cl=0, Bool_t quiet=false)
 
static TCollectionGetCollection (TDirectory *d, const TString &name, Bool_t quiet=false)
 
static TCollectionGetCollection (TCollection *d, const TString &name, Bool_t quiet=false)
 
static TH1GetH1 (TDirectory *d, const TString &name, Bool_t quiet=false)
 
static TH1GetH1 (TCollection *d, const TString &name, Bool_t quiet=false)
 
static TGraphGetGraph (TCollection *d, const TString &name, Bool_t quiet=false)
 
static TAxisGetAxis (TCollection *d, const TString &name, Bool_t quiet=false)
 
static TH1RatioHG (const TH1 *h, const TGraph *g)
 

Public Attributes

Bool_t fRefLoaded
 

Detailed Description

Definition at line 28 of file GenerateEmpirical.C.

Constructor & Destructor Documentation

EmpiricalMaker::EmpiricalMaker ( )
inline

Constructor

Definition at line 247 of file GenerateEmpirical.C.

Member Function Documentation

static Bool_t EmpiricalMaker::CheckType ( TObject o,
TClass *  cl,
Bool_t  quiet = false 
)
inlinestatic

Check the type of an object

Parameters
oObject to check
clClass of object required
quietIf true, report no errors
Returns
true on success, false otherwise

Definition at line 56 of file GenerateEmpirical.C.

Referenced by GetObject().

static TAxis* EmpiricalMaker::GetAxis ( TCollection d,
const TString name,
Bool_t  quiet = false 
)
inlinestatic

Get an axis from a collection

Parameters
dParent
nameName of collection to get
quietIf true, report no errors
Returns
The found axis or null

Definition at line 203 of file GenerateEmpirical.C.

Referenced by ProcessComponent().

static TCollection* EmpiricalMaker::GetCollection ( TDirectory *  d,
const TString name,
Bool_t  quiet = false 
)
inlinestatic

Get a collection from a directory

Parameters
dParent
nameName of collection to get
quietIf true, report no errors
Returns
The found collection or null

Definition at line 134 of file GenerateEmpirical.C.

Referenced by ProcessCent(), and ProcessComponent().

static TCollection* EmpiricalMaker::GetCollection ( TCollection d,
const TString name,
Bool_t  quiet = false 
)
inlinestatic

Get a collection from another collection

Parameters
dParent
nameName of collection to get
quietIf true, report no errors
Returns
The found collection or null

Definition at line 149 of file GenerateEmpirical.C.

static TGraph* EmpiricalMaker::GetGraph ( TCollection d,
const TString name,
Bool_t  quiet = false 
)
inlinestatic

Get an graph from a collection

Parameters
dParent
nameName of collection to get
quietIf true, report no errors
Returns
The found graph or null

Definition at line 190 of file GenerateEmpirical.C.

Referenced by ProcessCent().

static TH1* EmpiricalMaker::GetH1 ( TDirectory *  d,
const TString name,
Bool_t  quiet = false 
)
inlinestatic

Get a histogram from a directory

Parameters
dParent
nameName of collection to get
quietIf true, report no errors
Returns
The found histogram or null

Definition at line 164 of file GenerateEmpirical.C.

Referenced by ProcessCent().

static TH1* EmpiricalMaker::GetH1 ( TCollection d,
const TString name,
Bool_t  quiet = false 
)
inlinestatic

Get a histogram from a collection

Parameters
dParent
nameName of collection to get
quietIf true, report no errors
Returns
The found histogram or null

Definition at line 177 of file GenerateEmpirical.C.

static TObject* EmpiricalMaker::GetObject ( TDirectory *  d,
const TString name,
TClass *  cl = 0,
Bool_t  quiet = false 
)
inlinestatic

Get an object from a directory

Parameters
dParent directory
nameName of object
clClass pointer for testing
quietIf true, report no errors
Returns
Pointer to object, or null

Definition at line 79 of file GenerateEmpirical.C.

Referenced by GetAxis(), GetCollection(), GetGraph(), and GetH1().

static TObject* EmpiricalMaker::GetObject ( TCollection d,
const TString name,
TClass *  cl = 0,
Bool_t  quiet = false 
)
inlinestatic

Get an object from a directory

Parameters
dParent directory
nameName of object
quietIf true, report no errors
clClass pointer for testing
Returns
Pointer to object, or null

Definition at line 107 of file GenerateEmpirical.C.

TMultiGraph* EmpiricalMaker::GetReference ( UShort_t  c1,
UShort_t  c2 
)
inline

Get reference dN/deta in some centrality range

Parameters
c1Low value of centrality range
c2High value of centrallity range
Returns
Reference data, or null

Definition at line 277 of file GenerateEmpirical.C.

Referenced by ProcessCent().

void EmpiricalMaker::LoadReferences ( )
inline

Load reference data as compiled script

Definition at line 254 of file GenerateEmpirical.C.

Referenced by GetReference().

static TFile* EmpiricalMaker::OpenFile ( const TString fname,
Bool_t  rw = false 
)
inlinestatic

Open a file

Parameters
fnameFilename of file to open
rwIf true, update for read/write acess
Returns
Pointer to file handle or null

Definition at line 37 of file GenerateEmpirical.C.

Referenced by Run().

void EmpiricalMaker::ProcessCent ( UShort_t  c1,
UShort_t  c2,
TCollection c,
const TString name,
THStack *  s,
TDirectory *  d 
)
inline

Process a single centrality bin

Parameters
c1Lower cut
c2Higher cut
cParent
nameName of component
sStack
dDirectory

Definition at line 406 of file GenerateEmpirical.C.

Referenced by ProcessComponent().

void EmpiricalMaker::ProcessComponent ( TDirectory *  d,
TDirectory *  out,
const TString name 
)
inline

Process a single component

Parameters
dParent
outOutput
nameName of component

Definition at line 329 of file GenerateEmpirical.C.

Referenced by Run().

static TH1* EmpiricalMaker::RatioHG ( const TH1 h,
const TGraph g 
)
inlinestatic

Compute the ratio of h to g. g is evaluated at the bin centers of h

Parameters
hNumerator
gDivisor
Returns
h/g

Definition at line 217 of file GenerateEmpirical.C.

Referenced by ProcessCent().

void EmpiricalMaker::Run ( const TString fileName)
inline

Run the full thing

Parameters
fileNameFile to query results

Definition at line 307 of file GenerateEmpirical.C.

Referenced by GenerateEmpirical().

Member Data Documentation

Bool_t EmpiricalMaker::fRefLoaded

Definition at line 442 of file GenerateEmpirical.C.

Referenced by GetReference(), and LoadReferences().


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