1 // Task to hold TenderSupply in case of running on AOD.
3 // Author: D.Peressounko after EMCAL Tender task
8 #include "AliAnalysisManager.h"
9 #include "TenderSupplies/AliPHOSTenderSupply.h"
10 #include "AliAODEvent.h"
12 #include "AliPHOSTenderTask.h"
14 ClassImp(AliPHOSTenderTask)
16 //______________________________________________________________________________
17 AliPHOSTenderTask::AliPHOSTenderTask():
21 // Default constructor.
24 //______________________________________________________________________________
25 AliPHOSTenderTask::AliPHOSTenderTask(const char* name):
26 AliAnalysisTaskSE(name),
30 DefineOutput(1, AliAODEvent::Class());
33 //______________________________________________________________________________
34 AliPHOSTenderTask::~AliPHOSTenderTask()
39 fPHOSTender->Delete();
42 //______________________________________________________________________________
43 void AliPHOSTenderTask::SetPHOSTenderSupply(AliPHOSTenderSupply *supply)
48 supply->SetTask(this);
51 //______________________________________________________________________________
52 void AliPHOSTenderTask::ConnectInputData(Option_t *option)
54 // Connect input data.
56 AliAnalysisTaskSE::ConnectInputData(option);
60 //______________________________________________________________________________
61 void AliPHOSTenderTask::UserCreateOutputObjects()
63 // Nothing to be done.
66 //______________________________________________________________________________
67 void AliPHOSTenderTask::UserExec(Option_t*)
71 fPHOSTender->ProcessEvent();
73 //______________________________________________________________________________
74 void AliPHOSTenderTask::NotifyRun(){
75 //Change of the run number
77 fPHOSTender->InitTender();