]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGGA/EMCALTasks/AliEmcalTenderTask.cxx
Fixing minor bug recognizing diffractive events in simulation
[u/mrichter/AliRoot.git] / PWGGA / EMCALTasks / AliEmcalTenderTask.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
7  * Permission to use, copy, modify and distribute this software and its   *
8  * documentation strictly for non-commercial purposes is hereby granted   *
9  * without fee, provided that the above copyright notice appears in all   *
10  * copies and that both the copyright notice and this permission notice   *
11  * appear in the supporting documentation. The authors make no claims     *
12  * about the suitability of this software for any purpose. It is          *
13  * provided "as is" without express or implied warranty.                  *
14  **************************************************************************/
15
16 /* $Id: AliEmcalTenderTask.cxx 48689 2011-03-23 21:35:50Z agheata $ */
17
18 #include <TChain.h>
19 #include <TFile.h>
20
21 #include "TenderSupplies/AliEMCALTenderSupply.h"
22 #include "AliAnalysisManager.h"
23
24 #include "AliEmcalTenderTask.h"
25
26 ClassImp(AliEmcalTenderTask)
27
28 //______________________________________________________________________________
29 AliEmcalTenderTask::AliEmcalTenderTask():
30            AliAnalysisTaskSE(),
31            fEMCALTender(NULL)
32 {
33 // Dummy constructor
34 }
35
36 //______________________________________________________________________________
37 AliEmcalTenderTask::AliEmcalTenderTask(const char* name):
38            AliAnalysisTaskSE(name),
39            fEMCALTender(NULL)
40 {
41 // Default constructor
42   //DefineOutput(1,  AliESDEvent::Class());
43 }
44
45 //______________________________________________________________________________
46 AliEmcalTenderTask::~AliEmcalTenderTask()
47 {
48 // Destructor
49   if (fEMCALTender)
50     fEMCALTender->Delete();
51 }
52
53 //______________________________________________________________________________
54 void AliEmcalTenderTask::SetEMCALTenderSupply(AliEMCALTenderSupply *supply)
55 {
56   fEMCALTender = supply;
57   supply->SetTask(this);
58 }
59    
60 //______________________________________________________________________________
61 void AliEmcalTenderTask::ConnectInputData(Option_t *option)
62 {
63   AliAnalysisTaskSE::ConnectInputData(option);
64   fEMCALTender->Init();
65 }
66
67 //______________________________________________________________________________
68 void AliEmcalTenderTask::UserCreateOutputObjects()
69 {
70 // Nothing for the moment, but we may need ESD/AOD event replication here.
71  
72 }
73
74 //______________________________________________________________________________
75 void AliEmcalTenderTask::UserExec(Option_t* option)
76 {
77   fEMCALTender->ProcessEvent();
78 }