AliPhysics  608b256 (608b256)

Example of execution macro for analysis at generation level. More...

Go to the source code of this file.

Functions

void anaGenKine (Int_t mode)
 Main execution method. More...
 
void LoadLibraries ()
 Load the needed libraries most of them already loaded by aliroot. More...
 
void SetupPar (char *pararchivename)
 
void GetAverageXsection (TTree *tree, Double_t &xs, Float_t &ntr)
 

Detailed Description

Example of execution macro for analysis at generation level.

Example of simple analysis of a single file accessing directly the MC kinematics information nothing else. Execute the analysis in class AliAnaGeneratorKine

Author
Gustavo Conesa Balbastre Gusta.nosp@m.vo.C.nosp@m.onesa.nosp@m..Bal.nosp@m.bastr.nosp@m.e@ce.nosp@m.rn.ch, (LPSC-CNRS)

Definition in file anaGenKine.C.

Function Documentation

void anaGenKine ( Int_t  mode)

Main execution method.

Definition at line 15 of file anaGenKine.C.

void GetAverageXsection ( TTree tree,
Double_t xs,
Float_t ntr 
)

Read the PYTHIA statistics from the file pyxsec.root created by the function WriteXsection(): integrated cross section (xsection) and the number of Pyevent() calls (ntrials) and calculate the weight per one event xsection/ntrials The spectrum calculated by a user should be multiplied by this weight, something like this: TH1F *userSpectrum ... // book and fill the spectrum userSpectrum->Scale(weight)

Yuri Kharlov 19 June 2007 Gustavo Conesa 15 April 2008 Add recovery of xs from pyxsec_hists.root file 15/jan/2015

Definition at line 202 of file anaGenKine.C.

Referenced by anaGenKine().

void LoadLibraries ( )

Load the needed libraries most of them already loaded by aliroot.

Definition at line 102 of file anaGenKine.C.

Referenced by anaGenKine().

void SetupPar ( char *  pararchivename)

Load par files, create analysis libraries For testing, if par file already decompressed and modified classes then do not decompress.

Definition at line 148 of file anaGenKine.C.