]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG2/FORWARD/analysis2/Pass1.C
Minor fixes
[u/mrichter/AliRoot.git] / PWG2 / FORWARD / analysis2 / Pass1.C
CommitLineData
7c1a1f1d 1/**
2 * @file
3 *
4 * @ingroup pwg2_forward_scripts
5 */
7e4038b5 6/**
7 * Run first pass of the analysis - that is read in ESD and produce AOD
8 *
c389303e 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
631eaf16 13 * @param proof Proof mode
14 * @param mc Monte-Carlo truth handler installed
7e4038b5 15 *
7c1a1f1d 16 * @ingroup pwg2_forward_scripts
7e4038b5 17 */
18void
f4494b7a 19Pass1(const char* esddir=".",
c389303e 20 Int_t nEvents=1000,
631eaf16 21 Bool_t proof=false,
22 Bool_t mc=false)
7e4038b5 23{
631eaf16 24 Printf(" MC: %s", mc ? "yes" : "no");
25 Printf(" Proof mode %s", proof ? "yes" : "no");
c389303e 26
631eaf16 27 gROOT->LoadMacro("$ALICE_ROOT/PWG2/FORWARD/analysis2/MakeAOD.C");
7e4038b5 28
631eaf16 29 MakeAOD(esddir, nEvents, proof, mc);
7e4038b5 30}
31//
32// EOF
33//