changes for the PWG2 train (L.Milano)
authorbhippoly <bhippoly@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 4 Mar 2011 17:51:46 +0000 (17:51 +0000)
committerbhippoly <bhippoly@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 4 Mar 2011 17:51:46 +0000 (17:51 +0000)
PWG2/centraltrain/AnalysisTrainPWG2.C

index 51610ce..ac10742 100644 (file)
@@ -313,10 +313,15 @@ void AddAnalysisTasks()
 
    // PWG2 Spectra
    if (iPWG2spectra) {
+     gROOT->LoadMacro("$ALICE_ROOT/PWG2/SPECTRA/macros/AddTaskITSsaSpectra.C");
+     AliAnalysisTask *taskSpectraITSsa = AddTaskITSsaSpectra(0,useMC,-1,-1,iCollision);
+     if (!taskSpectraITSsa) ::Warning("AnalysisTrainNew", "AliAnalysisTaskSpectraITSsa cannot run for this train conditions - EXCLUDED");
+   }
+   if (iPWG2spectra) {
      gROOT->LoadMacro("$ALICE_ROOT/PWG2/SPECTRA/macros/AddTaskChargedHadronSpectraITSTruncatedMean.C");
      AliAnalysisTask *taskSpectraITSTPC = AddTaskChargedHadronSpectraITSTruncatedMean(-1,-1,useMC,iCollision,"$ALICE_ROOT/PWG2/SPECTRA/macros/configChargedHadronSpectraITSTruncatedMeanTask.C");
      if (!taskSpectraITSTPC) ::Warning("AnalysisTrainNew", "AliAnalysisTaskSpectraITSTPC cannot run for this train conditions - EXCLUDED");
-   }         
+   }
 }
 
 //______________________________________________________________________________