]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Minor fixes
authorcholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 5 Jan 2011 11:30:44 +0000 (11:30 +0000)
committercholm <cholm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 5 Jan 2011 11:30:44 +0000 (11:30 +0000)
PWG2/FORWARD/analysis2/Pass1.C
PWG2/FORWARD/analysis2/Pass2.C

index 98c68e1354ec7b36a431aa63a74e6017811cebfe..e2d3a549a4939023c01dca999d15b3d53776f1ca 100644 (file)
  *                  *AliESDs*.root are added to the chain 
  * @param nEvents   Number of events to process.  If 0 or less, then 
  *                  all events are analysed
- * @param flags     Job flags. A bit mask of 
- *  - 0x01 (MC)        Monte-Carlo truth handler installed 
- *  - 0x02 (PROOF)     Proof mode 
- *  - 0x04 (FULL)      Run full analysis - including terminate 
- *  - 0x08 (ANALYSE)   Run only analysis - not terminate 
- *  - 0x10 (TERMINATE) Run no analysis - just terminate.  
- * 
- * of these, PROOF, FULL, ANALYSE, and TERMINATE are mutually exclusive. 
- *
- * If PROOF mode is selected, then Terminate will be run on the master node 
- * in any case. 
- * 
- * If FULL is selected, then the full analysis is done.  Note that
- * this can be combined with PROOF but with no effect.
- *
- * ANALYSE cannot be combined with FULL, PROOF, or TERMINATE.  In a
- * local job, the output AnalysisResults.root will still be made, but
- * terminate is not called.
- *
- * In TERMINATE, the file AnalysisResults.root is opened and all
- * containers found are connected to the tasks.  The terminate member
- * function is then called
- * 
+ * @param proof     Proof mode
+ * @param mc        Monte-Carlo truth handler installed 
  *
  * @ingroup pwg2_forward_scripts
  */
 void
 Pass1(const char* esddir=".", 
       Int_t       nEvents=1000,
-      UShort_t    flags=0x4)
+      Bool_t      proof=false, 
+      Bool_t      mc=false)
 {
-  Printf("Flags: 0x%04x", flags);
-  Printf("  MC:            %s", flags & 0x01 ? "yes" : "no");
-  Printf("  Proof mode     %s", flags & 0x02 ? "yes" : "no");
-  Printf("  Full analysis  %s", flags & 0x04 ? "yes" : "no");
-  Printf("  Analyse only   %s", flags & 0x08 ? "yes" : "no");
-  Printf("  Terminate only %s", flags & 0x10 ? "yes" : "no");
+  Printf("  MC:            %s", mc    ? "yes" : "no");
+  Printf("  Proof mode     %s", proof ? "yes" : "no");
 
-  gROOT->LoadMacro("$ALICE_ROOT/PWG2/FORWARD/analysis2/RunManager.C"); 
+  gROOT->LoadMacro("$ALICE_ROOT/PWG2/FORWARD/analysis2/MakeAOD.C"); 
 
-  RunManager(esddir, nEvents, flags);
+  MakeAOD(esddir, nEvents, proof, mc);
 }
 //
 // EOF
index 91d70cdd6931dba656772faec76ede7e6172cf25..4b16b62dc3d242b735b1be93872cc1233ccb0203 100644 (file)
@@ -31,7 +31,7 @@ Pass2(const char* file="AliAODs.root",
       bool        comp=true)
 {
   gROOT->LoadMacro("$ALICE_ROOT/PWG2/FORWARD/analysis2/scripts/Compile.C"); 
-  Compile("$ALICE_ROOT/PWG2/FORWARD/analysis2/DrawRes.C","g"); 
+  Compile("$ALICE_ROOT/PWG2/FORWARD/analysis2/AnalyseAOD.C","g"); 
   
   Int_t trgMask; 
   TString     trgs(triggers);
@@ -68,7 +68,7 @@ Pass2(const char* file="AliAODs.root",
         file, vzMin, vzMax, rebin, trgMask, trgs.Data(), energy, tit.Data(),
         hhd ? "yes" : "no", comp ? "yes" : "no");
   
-  DrawRes dr;
+  AnalyseAOD dr;
   TStopwatch t;
   t.Start();
   dr.Run(file, vzMin, vzMax, rebin, trgMask, energy, tit.Data(), hhd, comp);