]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGGA/EMCALTasks/AliEmcalTenderTask.cxx
ids plus comments, authors
[u/mrichter/AliRoot.git] / PWGGA / EMCALTasks / AliEmcalTenderTask.cxx
CommitLineData
cd231d42 1// $Id$
2//
3// Task to hold TenderSupply in case of running on AOD.
4//
5// Author: S.Aiola, C.Loizides
e82e282c 6
7#include <TChain.h>
8#include <TFile.h>
e82e282c 9#include "AliAnalysisManager.h"
c144ae2f 10#include "TenderSupplies/AliEMCALTenderSupply.h"
e82e282c 11#include "AliEmcalTenderTask.h"
12
13ClassImp(AliEmcalTenderTask)
14
15//______________________________________________________________________________
16AliEmcalTenderTask::AliEmcalTenderTask():
c144ae2f 17 AliAnalysisTaskSE(),
18 fEMCALTender(NULL)
e82e282c 19{
c144ae2f 20 // Default constructor.
e82e282c 21}
22
23//______________________________________________________________________________
24AliEmcalTenderTask::AliEmcalTenderTask(const char* name):
c144ae2f 25 AliAnalysisTaskSE(name),
26 fEMCALTender(NULL)
e82e282c 27{
c144ae2f 28 // Constructor.
e82e282c 29}
30
31//______________________________________________________________________________
32AliEmcalTenderTask::~AliEmcalTenderTask()
33{
c144ae2f 34 // Destructor
35
e82e282c 36 if (fEMCALTender)
37 fEMCALTender->Delete();
38}
39
40//______________________________________________________________________________
41void AliEmcalTenderTask::SetEMCALTenderSupply(AliEMCALTenderSupply *supply)
42{
c144ae2f 43 // Set tender supply.
44
e82e282c 45 fEMCALTender = supply;
46 supply->SetTask(this);
47}
48
49//______________________________________________________________________________
50void AliEmcalTenderTask::ConnectInputData(Option_t *option)
51{
c144ae2f 52 // Connect input data.
53
e82e282c 54 AliAnalysisTaskSE::ConnectInputData(option);
55 fEMCALTender->Init();
56}
57
58//______________________________________________________________________________
59void AliEmcalTenderTask::UserCreateOutputObjects()
60{
c144ae2f 61 // Nothing to be done.
e82e282c 62}
63
64//______________________________________________________________________________
c144ae2f 65void AliEmcalTenderTask::UserExec(Option_t*)
e82e282c 66{
c144ae2f 67 // Process the event.
68
e82e282c 69 fEMCALTender->ProcessEvent();
70}