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 AliEMCALTenderSupply* AliEmcalTenderTask::GetEMCALTenderSupply() const
61 //______________________________________________________________________________
62 void AliEmcalTenderTask::ConnectInputData(Option_t *option)
64 // Connect input data.
66 AliAnalysisTaskSE::ConnectInputData(option);
70 //______________________________________________________________________________
71 void AliEmcalTenderTask::UserCreateOutputObjects()
73 // Nothing to be done.
76 //______________________________________________________________________________
77 void AliEmcalTenderTask::UserExec(Option_t*)
81 fEMCALTender->ProcessEvent();