3 AliEmcalTenderTask *AddTaskEmcalAodTender()
5 // Get the pointer to the existing analysis manager via the static access method.
6 //==============================================================================
7 AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager();
9 ::Error("AddTaskTrgContam", "No analysis manager to connect to.");
13 // Create the task and configure it.
14 //===========================================================================
15 AliEmcalTenderTask* ana = new AliEmcalTenderTask("AliEmcalTenderTask");
17 Bool_t ismc = (mgr->GetMCtruthEventHandler() != NULL);
21 gROOT->LoadMacro("$ALICE_ROOT/PWG/EMCAL/macros/ConfigEmcalTenderSupply.C");
22 AliEMCALTenderSupply *EMCALSupply = ConfigEmcalTenderSupply(kFALSE);
24 ana->SetEMCALTenderSupply(EMCALSupply);
26 // Get and connect common input/output containers via the manager as below
27 //==============================================================================
29 mgr->ConnectInput (ana, 0, mgr->GetCommonInputContainer());