removed startTime selection
[u/mrichter/AliRoot.git] / ANALYSIS / macros / AddTaskVZEROEPSelection.C
CommitLineData
0643f5a7 1AliVZEROEPSelectionTask *AddTaskVZEROEPSelection()
2{
3 AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
4 if (!mgr) {
5 ::Error("AddTaskVZEROEPSelection", "No analysis manager to connect to.");
6 return NULL;
7 }
8 // Check the analysis type using the event handlers connected to the analysis manager.
9 //==============================================================================
10 if (!mgr->GetInputEventHandler()) {
11 ::Error("AddTaskVZEROEPSelection", "This task requires an input event handler");
12 return NULL;
13 }
14
15 AliVZEROEPSelectionTask *task = new AliVZEROEPSelectionTask("AliVZEROEPSelectionTask");
16 // task->UseVZEROCentrality(); // Optional line to swith from SPD to VZERO centrality estimator
17 mgr->AddTask(task);
18
19 mgr->ConnectInput(task, 0, mgr->GetCommonInputContainer());
20
21 return task;
22}