]>
Commit | Line | Data |
---|---|---|
72c0a987 | 1 | //-*- Mode: C++ -*- |
2 | // $Id$ | |
3 | ||
4 | //* This file is property of and copyright by the ALICE Project * | |
5 | //* ALICE Experiment at CERN, All rights reserved. * | |
6 | //* See cxx source for full Copyright notice * | |
7 | ||
8 | /// @file AliAnalysisTaskDxHFECorrelation.h | |
9 | /// @author Sedat Altinpinar, Hege Erdal, Matthias Richter | |
10 | /// @date 2012-03-19 | |
11 | /// @brief AnalysisTask D0 - HFE correlation | |
12 | /// | |
13 | ||
14 | #ifndef ALIANALYSISTASKDXHFECORRELATION_H | |
15 | #define ALIANALYSISTASKDXHFECORRELATION_H | |
16 | ||
17 | #include "AliAnalysisTaskSE.h" | |
18 | #include "TString.h" | |
19 | class TList; | |
20 | class AliDxHFEParticleSelection; | |
21 | class AliDxHFECorrelation; | |
22 | ||
23 | /** | |
24 | * @class AliAnalysisTaskDxHFECorrelation | |
25 | * Task for D0-HFE correleations | |
26 | */ | |
27 | class AliAnalysisTaskDxHFECorrelation : public AliAnalysisTaskSE { | |
28 | public: | |
29 | /// constructor | |
30 | AliAnalysisTaskDxHFECorrelation(const char* opt=""); | |
31 | /// destructor | |
32 | virtual ~AliAnalysisTaskDxHFECorrelation(); | |
33 | ||
34 | /// inherited from AliAnalysisTask: connect tree branches at input slots | |
35 | virtual void ConnectInputData(Option_t *option="") { | |
36 | return AliAnalysisTaskSE::ConnectInputData(option); | |
37 | } | |
38 | ||
39 | /// inherited from AliAnalysisTaskSE: create output objects | |
40 | virtual void UserCreateOutputObjects(); | |
41 | /// inherited from AliAnalysisTaskSE: event processing | |
42 | virtual void UserExec(Option_t*); | |
43 | /// inherited from AliAnalysisTask: called in SlaveTerminate phase for each task | |
44 | virtual void FinishTaskOutput(); | |
45 | /// inherited from AliAnalysisTask: final step | |
46 | virtual void Terminate(Option_t*); | |
47 | ||
48 | /// set options | |
49 | void SetOption(const char* opt) { fOption = opt; } | |
50 | /// overloaded from TObject: get option | |
51 | virtual Option_t* GetOption() const { return fOption;} | |
52 | ||
53 | protected: | |
54 | ||
55 | private: | |
56 | /// copy constructor prohibited: might change | |
57 | AliAnalysisTaskDxHFECorrelation(const AliAnalysisTaskDxHFECorrelation&); | |
58 | /// assignment operator prohibited: might change | |
59 | AliAnalysisTaskDxHFECorrelation& operator=(const AliAnalysisTaskDxHFECorrelation&); | |
60 | ||
61 | int DefineSlots(); | |
62 | ||
63 | TList* fOutput; //! list send on output slot 1 | |
64 | TString fOption; // option string | |
65 | AliDxHFECorrelation* fCorrelation; // correlation worker class | |
66 | AliDxHFEParticleSelection* fD0s; // selection of D0s | |
67 | AliDxHFEParticleSelection* fElectrons; // selection of electrons | |
68 | ||
69 | ClassDef(AliAnalysisTaskDxHFECorrelation, 1); | |
70 | }; | |
71 | ||
72 | #endif |