]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG/EMCAL/AliEmcalTenderTask.cxx
update from salvatore to include its refit tracks with correct label
[u/mrichter/AliRoot.git] / PWG / EMCAL / 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>
fa03a7fd 9
e82e282c 10#include "AliAnalysisManager.h"
c144ae2f 11#include "TenderSupplies/AliEMCALTenderSupply.h"
fa03a7fd 12#include "AliAODEvent.h"
13
e82e282c 14#include "AliEmcalTenderTask.h"
15
16ClassImp(AliEmcalTenderTask)
17
18//______________________________________________________________________________
19AliEmcalTenderTask::AliEmcalTenderTask():
c144ae2f 20 AliAnalysisTaskSE(),
21 fEMCALTender(NULL)
e82e282c 22{
c144ae2f 23 // Default constructor.
e82e282c 24}
25
26//______________________________________________________________________________
27AliEmcalTenderTask::AliEmcalTenderTask(const char* name):
c144ae2f 28 AliAnalysisTaskSE(name),
29 fEMCALTender(NULL)
e82e282c 30{
c144ae2f 31 // Constructor.
fa03a7fd 32 DefineOutput(1, AliAODEvent::Class());
e82e282c 33}
34
35//______________________________________________________________________________
36AliEmcalTenderTask::~AliEmcalTenderTask()
37{
c144ae2f 38 // Destructor
39
e82e282c 40 if (fEMCALTender)
41 fEMCALTender->Delete();
42}
43
44//______________________________________________________________________________
45void AliEmcalTenderTask::SetEMCALTenderSupply(AliEMCALTenderSupply *supply)
46{
c144ae2f 47 // Set tender supply.
48
e82e282c 49 fEMCALTender = supply;
50 supply->SetTask(this);
51}
52
53//______________________________________________________________________________
54void AliEmcalTenderTask::ConnectInputData(Option_t *option)
55{
c144ae2f 56 // Connect input data.
57
e82e282c 58 AliAnalysisTaskSE::ConnectInputData(option);
59 fEMCALTender->Init();
60}
61
62//______________________________________________________________________________
63void AliEmcalTenderTask::UserCreateOutputObjects()
64{
c144ae2f 65 // Nothing to be done.
e82e282c 66}
67
68//______________________________________________________________________________
c144ae2f 69void AliEmcalTenderTask::UserExec(Option_t*)
e82e282c 70{
c144ae2f 71 // Process the event.
72
e82e282c 73 fEMCALTender->ProcessEvent();
74}