]>
Commit | Line | Data |
---|---|---|
ed48c5a8 | 1 | // $Id$ |
2 | ||
32bf39af | 3 | AliEmcalTenderTask *AddTaskEmcalAodTender() |
e82e282c | 4 | { |
e82e282c | 5 | // Get the pointer to the existing analysis manager via the static access method. |
6 | //============================================================================== | |
7 | AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager(); | |
e82e282c | 8 | if (!mgr) { |
9 | ::Error("AddTaskTrgContam", "No analysis manager to connect to."); | |
10 | return NULL; | |
11 | } | |
12 | ||
13 | // Create the task and configure it. | |
14 | //=========================================================================== | |
15 | AliEmcalTenderTask* ana = new AliEmcalTenderTask("AliEmcalTenderTask"); | |
e82e282c | 16 | |
17 | Bool_t ismc = (mgr->GetMCtruthEventHandler() != NULL); | |
18 | ||
19 | mgr->AddTask(ana); | |
e82e282c | 20 | |
2f06de14 | 21 | gROOT->LoadMacro("$ALICE_ROOT/PWG/EMCAL/macros/ConfigEmcalTenderSupply.C"); |
32bf39af | 22 | AliEMCALTenderSupply *EMCALSupply = ConfigEmcalTenderSupply(kFALSE); |
e82e282c | 23 | |
24 | ana->SetEMCALTenderSupply(EMCALSupply); | |
a55e4f1d | 25 | |
32bf39af | 26 | // Get and connect common input/output containers via the manager as below |
e82e282c | 27 | //============================================================================== |
32bf39af | 28 | |
e82e282c | 29 | mgr->ConnectInput (ana, 0, mgr->GetCommonInputContainer()); |
e82e282c | 30 | |
31 | return ana; | |
32 | } |