1 AliVZEROEPSelectionTask *AddTaskVZEROEPSelection()
3 AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
5 ::Error("AddTaskVZEROEPSelection", "No analysis manager to connect to.");
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");
15 AliVZEROEPSelectionTask *task = new AliVZEROEPSelectionTask("AliVZEROEPSelectionTask");
16 // task->UseVZEROCentrality(); // Optional line to swith from SPD to VZERO centrality estimator
19 mgr->ConnectInput(task, 0, mgr->GetCommonInputContainer());