3 AliEmcalSetupTask* AddTaskEmcalSetup()
5 // Get the pointer to the existing analysis manager via the static access method.
6 //==============================================================================
7 AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
10 ::Error("AddTaskEmcalSetup", "No analysis manager to connect to.");
14 // Check the analysis type using the event handlers connected to the analysis manager.
15 //==============================================================================
16 if (!mgr->GetInputEventHandler())
18 ::Error("AddTaskEmcalSetup", "This task requires an input event handler");
22 //-------------------------------------------------------
23 // Init the task and do settings
24 //-------------------------------------------------------
25 AliEmcalSetupTask *eTask = new AliEmcalSetupTask("EmcalSetupTask");
27 //-------------------------------------------------------
28 // Final settings, pass to manager and set the containers
29 //-------------------------------------------------------
33 // Create containers for input/output
34 AliAnalysisDataContainer *cinput1 = mgr->GetCommonInputContainer();
35 mgr->ConnectInput (eTask, 0, cinput1 );