Few mods (Boris)
authorpanos <panos@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 9 Aug 2007 13:51:36 +0000 (13:51 +0000)
committerpanos <panos@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 9 Aug 2007 13:51:36 +0000 (13:51 +0000)
PWG2/AnalysisMacros/Proof/runAnalysis.C

index c74729d..3951bff 100644 (file)
@@ -2,16 +2,6 @@ void runAnalysis() {
   TStopwatch timer;
   timer.Start();
   
-  runProofESD("AliAnalysisTaskPt.cxx+");
-
-  timer.Stop();
-  timer.Print();
-}
-
-//==========================================//
-void runProofESD(const char *selectorfile) {
-  //the next line should point to the local $ALICE_ROOT
-  //that contains the latest ANALYSIS developments
   gSystem->AddIncludePath("-I\"$ALICE_ROOT/include\"");
   printf("****** Connect to PROOF *******\n");
   TProof::Open("proof://<username>@lxb6046.cern.ch"); 
@@ -26,20 +16,20 @@ void runProofESD(const char *selectorfile) {
 
   gProof->GetManager()->ShowROOTVersions();
   gProof->ShowEnabledPackages();
-  
+
   // You should get this macro and the txt file from:
   // http://aliceinfo.cern.ch/Offline/Analysis/CAF/
   gROOT->LoadMacro("CreateESDChain.C");
   TChain* chain = 0x0;
   chain = CreateESDChain("ESD1.txt",100);
 
-  gROOT->LoadMacro(selectorfile);
-  gProof->Load(selectorfile);
+  gROOT->LoadMacro("AliAnalysisTaskPt.cxx+");
+  gProof->Load("AliAnalysisTaskPt.cxx+");
   gROOT->LoadMacro("demoCAF.C");
   demoCAF(chain,"proof");
  
   gSystem->Exec("rm -rf ESD ANALYSIS");
-}
-
 
-                                                                                                                                               
+  timer.Stop();
+  timer.Print();
+}