AliPhysics  cc1c0ba (cc1c0ba)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Collaboration diagram for UnfoldMult stuff:

Typedefs

typedef TCollection Dir
 

Functions

TObjectGetObject (TDirectory *d, const char *name)
 
TObjectGetObject (TCollection *d, const char *name)
 
TCollectionGetCollection (TDirectory *d, const char *name)
 
TCollectionGetCollection (TCollection *d, const char *name)
 
TH1GetH1 (TDirectory *d, const char *name)
 
TH1GetH1 (TCollection *d, const char *name)
 
TH2GetH2 (TCollection *d, const char *name)
 
TFile * OpenFile (const char *filename, Bool_t readNotWrite)
 
void GetHistos (Double_t lowLim, Double_t highLim, Dir *resp, Dir *data, TDirectory *out)
 
void ProcessUnfold (TH2 *response, TH1 *measured, TH1 *mcHist, TH1 *esdHist)
 
TH1GetTriggerBias (TH1 *mcHist, TH1 *esdHist)
 
void UnfoldMult (const char *respFile="forward_response.root", const char *dataFile="forward_multiplicy.root", const char *outFile="unfolded.root")
 

Detailed Description

Typedef Documentation

typedef TCollection Dir

A type definition to make it easier to switch to TDirectory structure

Definition at line 173 of file UnfoldMult.C.

Function Documentation

TCollection* GetCollection ( TDirectory *  d,
const char *  name 
)

Get a collection from a directory

Parameters
dParent directory
nameName of collection
Returns
Pointer to collection or null

Definition at line 77 of file UnfoldMult.C.

Referenced by GetHistos(), and UnfoldMult().

TCollection* GetCollection ( TCollection d,
const char *  name 
)

Get a collection from a collection

Parameters
dParent collection
nameName of collection
Returns
Pointer to collection or null

Definition at line 91 of file UnfoldMult.C.

TH1* GetH1 ( TDirectory *  d,
const char *  name 
)

Get a 1D-histogram from a directory

Parameters
dParent directory
nameName of histogram
Returns
Pointer to histogram or null

Definition at line 105 of file UnfoldMult.C.

Referenced by GetHistos().

TH1* GetH1 ( TCollection d,
const char *  name 
)

Get a 1D-histogram from a collection

Parameters
dParent collectoin
nameName of histogram
Returns
Pointer to histogram or null

Definition at line 119 of file UnfoldMult.C.

TH2* GetH2 ( TCollection d,
const char *  name 
)

Get a 2D-histogram from a collection

Parameters
dParent collection
nameName of histogram
Returns
Pointer to histogram or null

Definition at line 145 of file UnfoldMult.C.

void GetHistos ( Double_t  lowLim,
Double_t  highLim,
Dir resp,
Dir data,
TDirectory *  out 
)

Get histograms for \(\eta\)-bin from lowLim to highLim and process it .

Parameters
lowLimLower \(\eta\) limit
highLimUpper \(\eta\) limit
respDirectory containing response matrices
dataDirectory containing data histogram
outOutput directory

Definition at line 261 of file UnfoldMult.C.

Referenced by UnfoldMult(), and PWG::EMCAL::AliAnalysisTaskEmcalTriggerSelection::UserCreateOutputObjects().

TObject* GetObject ( TDirectory *  d,
const char *  name 
)

Get an object from a directory

Parameters
dDirectory
nameName of object
Returns
Pointer to object or null if not found

Definition at line 38 of file UnfoldMult.C.

Referenced by GetCollection(), GetH1(), and GetH2().

TObject* GetObject ( TCollection d,
const char *  name 
)

Get an object from a collection

Parameters
dCollection
nameName of object
Returns
Pointer to object or null if not found

Definition at line 57 of file UnfoldMult.C.

TH1 * GetTriggerBias ( TH1 mcHist,
TH1 esdHist 
)

Caclulate the trigger bias correction

Parameters
mcHistMC truth distribution
esdHistMC distribution after ESD event selection
Returns
Histogram of trigger bias correction

Definition at line 339 of file UnfoldMult.C.

Referenced by ProcessUnfold().

TFile* OpenFile ( const char *  filename,
Bool_t  readNotWrite 
)

Open a file

Parameters
filenameFile name
readNotWriteIf true, open read-only
Returns
Pointer to file, or null

Definition at line 159 of file UnfoldMult.C.

Referenced by UnfoldMult().

void ProcessUnfold ( TH2 response,
TH1 measured,
TH1 mcHist,
TH1 esdHist 
)

Do the actual unfolding and corrections

Parameters
responseResponse matrix
measuredMeasured distribution
mcHistMC truth distribution
esdHistMC distribution after ESD event selection

Definition at line 300 of file UnfoldMult.C.

Referenced by GetHistos().

void UnfoldMult ( const char *  respFile = "forward_response.root",
const char *  dataFile = "forward_multiplicy.root",
const char *  outFile = "unfolded.root" 
)

Main Loop to call eta range

Parameters
respFileFile containing response matrices
dataFileFile containing measured distributions
outFileOutput file

Definition at line 233 of file UnfoldMult.C.