AddTask was missing.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 14 Jan 2011 13:04:17 +0000 (13:04 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 14 Jan 2011 13:04:17 +0000 (13:04 +0000)
ANALYSIS/macros/AddTaskCentrality.C

index 0236777..4b22f60 100644 (file)
@@ -19,7 +19,8 @@ AliCentralitySelectionTask *AddTaskCentrality()
   }
   AliCentralitySelectionTask *centralityTask = new AliCentralitySelectionTask("CentralitySelection");
   centralityTask->SelectCollisionCandidates(AliVEvent::kMB);
-
+  mgr->AddTask(centralityTask);
+  
   AliAnalysisDataContainer *cinput0 = mgr->GetCommonInputContainer();
   AliAnalysisDataContainer *coutput1 = mgr->CreateContainer("CentralityStat",
                 TList::Class(), AliAnalysisManager::kOutputContainer,