Minor fixes
[u/mrichter/AliRoot.git] / PWG2 / FORWARD / analysis2 / Pass1.C
... / ...
CommitLineData
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 */
18void
19Pass1(const char* esddir=".",
20 Int_t nEvents=1000,
21 Bool_t proof=false,
22 Bool_t mc=false)
23{
24 Printf(" MC: %s", mc ? "yes" : "no");
25 Printf(" Proof mode %s", proof ? "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//