]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG2/FORWARD/analysis2/Pass1.C
Added class AliForwarddNdetaTask to do the dN/deta
[u/mrichter/AliRoot.git] / PWG2 / FORWARD / analysis2 / Pass1.C
1 /**
2  * @file 
3  * 
4  * @ingroup pwg2_forward_scripts
5  */
6 /** 
7  * Run first pass of the analysis - that is read in ESD and produce AOD
8  * 
9  * @param esddir    ESD input directory. Any file matching the pattern 
10  *                  *AliESDs*.root are added to the chain 
11  * @param nEvents   Number of events to process.  If 0 or less, then 
12  *                  all events are analysed
13  * @param proof     Proof mode
14  * @param mc        Monte-Carlo truth handler installed 
15  *
16  * @ingroup pwg2_forward_scripts
17  */
18 void
19 Pass1(const char* esddir=".", 
20       Int_t       nEvents=-1,
21       Int_t       proof=0, 
22       Bool_t      mc=false)
23 {
24   Printf("  MC:            %s", mc        ? "yes" : "no");
25   Printf("  Proof mode     %s", proof > 0 ? "yes" : "no");
26
27   gROOT->LoadMacro("$ALICE_ROOT/PWG2/FORWARD/analysis2/MakeAOD.C"); 
28
29   MakeAOD(esddir, nEvents, proof, mc);
30 }
31 //
32 // EOF
33 //