]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGGA/EMCALTasks/AliEmcalTenderTask.cxx
5dd6c5477b1a2cd8c9a2cdc6b0634e314c67c303
[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$ */
17
18 #include <TChain.h>
19 #include <TFile.h>
20 #include "AliAnalysisManager.h"
21 #include "TenderSupplies/AliEMCALTenderSupply.h"
22 #include "AliEmcalTenderTask.h"
23
24 ClassImp(AliEmcalTenderTask)
25
26 //______________________________________________________________________________
27 AliEmcalTenderTask::AliEmcalTenderTask():
28   AliAnalysisTaskSE(),
29   fEMCALTender(NULL)
30 {
31   // Default constructor.
32 }
33
34 //______________________________________________________________________________
35 AliEmcalTenderTask::AliEmcalTenderTask(const char* name):
36   AliAnalysisTaskSE(name),
37   fEMCALTender(NULL)
38 {
39   // Constructor.
40 }
41
42 //______________________________________________________________________________
43 AliEmcalTenderTask::~AliEmcalTenderTask()
44 {
45   // Destructor
46
47   if (fEMCALTender)
48     fEMCALTender->Delete();
49 }
50
51 //______________________________________________________________________________
52 void AliEmcalTenderTask::SetEMCALTenderSupply(AliEMCALTenderSupply *supply)
53 {
54   // Set tender supply.
55
56   fEMCALTender = supply;
57   supply->SetTask(this);
58 }
59    
60 //______________________________________________________________________________
61 void AliEmcalTenderTask::ConnectInputData(Option_t *option)
62 {
63   // Connect input data.
64
65   AliAnalysisTaskSE::ConnectInputData(option);
66   fEMCALTender->Init();
67 }
68
69 //______________________________________________________________________________
70 void AliEmcalTenderTask::UserCreateOutputObjects()
71 {
72   // Nothing to be done.
73 }
74
75 //______________________________________________________________________________
76 void AliEmcalTenderTask::UserExec(Option_t*)
77 {
78   // Process the event.
79
80   fEMCALTender->ProcessEvent();
81 }