]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Michele Floris's background rejection connected to EventStats task.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 15 Dec 2009 15:10:17 +0000 (15:10 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 15 Dec 2009 15:10:17 +0000 (15:10 +0000)
PWG1/PilotTrain/AddTaskEventStats.C
PWG1/PilotTrain/runPilot.C

index 26ee5afafdcf4a413cbfcb7d9c75610f18d7e5ff..f752624f4794f5cf3a4fe81546ac1906572f7d1d 100644 (file)
@@ -1,6 +1,6 @@
 
 
-AliAnalysisTaskSE* AddTaskEventStats() {
+AliEventStatsTask* AddTaskEventStats() {
     
     AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
     if (!mgr) {
index 789427cfa7de7b7236192c21d6dc6479bee24c41..7594688a0f9b779bf49be09905e260a806553e0f 100644 (file)
@@ -117,7 +117,9 @@ void runPilot(Int_t run) {
 
   if (doEventStat) {
       gROOT->LoadMacro("AddTaskEventStats.C");
-      AddTaskEventStats();
+      evtStats = AddTaskEventStats();
+      evtStats->SetPhysicsSelection(colsel);
+      AliLog::SetClassDebugLevel("AliPhysicsSelection", AliLog::kDebug);
   }
 
   
@@ -127,7 +129,7 @@ void runPilot(Int_t run) {
       mgr->PrintStatus();
   
   // Run on dataset
-  mgr->StartAnalysis("local", chain, 1000);
+  mgr->StartAnalysis("local", chain);
   timer.Stop();
   timer.Print();
 }