3 // Task to hold TenderSupply in case of running on AOD.
5 // Author: S.Aiola, C.Loizides
10 #include "AliAnalysisManager.h"
11 #include "TenderSupplies/AliEMCALTenderSupply.h"
12 #include "AliAODEvent.h"
14 #include "AliEmcalTenderTask.h"
16 ClassImp(AliEmcalTenderTask)
18 //______________________________________________________________________________
19 AliEmcalTenderTask::AliEmcalTenderTask():
23 // Default constructor.
26 //______________________________________________________________________________
27 AliEmcalTenderTask::AliEmcalTenderTask(const char* name):
28 AliAnalysisTaskSE(name),
32 DefineOutput(1, AliAODEvent::Class());
35 //______________________________________________________________________________
36 AliEmcalTenderTask::~AliEmcalTenderTask()
41 fEMCALTender->Delete();
44 //______________________________________________________________________________
45 void AliEmcalTenderTask::SetEMCALTenderSupply(AliEMCALTenderSupply *supply)
49 fEMCALTender = supply;
50 supply->SetTask(this);
53 //______________________________________________________________________________
54 void AliEmcalTenderTask::ConnectInputData(Option_t *option)
56 // Connect input data.
58 AliAnalysisTaskSE::ConnectInputData(option);
62 //______________________________________________________________________________
63 void AliEmcalTenderTask::UserCreateOutputObjects()
65 // Nothing to be done.
68 //______________________________________________________________________________
69 void AliEmcalTenderTask::UserExec(Option_t*)
73 fEMCALTender->ProcessEvent();