]>
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 AliAnalysisTaskDxHFEParticleSelection.h | |
9 | /// @author Sedat Altinpinar, Hege Erdal, Matthias Richter | |
10 | /// @date 2012-03-19 | |
11 | /// @brief AnalysisTask electron selection for D0 - HFE correlation | |
12 | /// | |
13 | ||
14 | #ifndef ALIANALYSISTASKDXHFEPARTICLESELECTION_H | |
15 | #define ALIANALYSISTASKDXHFEPARTICLESELECTION_H | |
16 | ||
17 | #include "AliAnalysisTaskSE.h" | |
18 | #include "TString.h" | |
19 | class TList; | |
20 | class AliDxHFEParticleSelection; | |
21 | ||
22 | /** | |
23 | * @class AliAnalysisTaskDxHFEParticleSelection | |
24 | * Selection task for particles uesd in the D0 - HFE correlation studies | |
25 | * Task performs the selection based on a configured AliDxHFEParticleSelection | |
26 | * instance. | |
27 | */ | |
28 | class AliAnalysisTaskDxHFEParticleSelection : public AliAnalysisTaskSE { | |
29 | public: | |
30 | /// constructor | |
31 | AliAnalysisTaskDxHFEParticleSelection(const char* opt=""); | |
32 | /// destructor | |
33 | virtual ~AliAnalysisTaskDxHFEParticleSelection(); | |
34 | ||
35 | /// inherited from AliAnalysisTask: connect tree branches at input slots | |
36 | virtual void ConnectInputData(Option_t *option="") { | |
37 | return AliAnalysisTaskSE::ConnectInputData(option); | |
38 | } | |
39 | ||
40 | /// inherited from AliAnalysisTaskSE: create output objects | |
41 | virtual void UserCreateOutputObjects(); | |
42 | /// inherited from AliAnalysisTaskSE: event processing | |
43 | virtual void UserExec(Option_t*); | |
44 | /// inherited from AliAnalysisTask: called in SlaveTerminate phase for each task | |
45 | virtual void FinishTaskOutput(); | |
46 | /// inherited from AliAnalysisTask: final step | |
47 | virtual void Terminate(Option_t*); | |
48 | ||
49 | void SetOption(const char* opt) { fOption = opt; } | |
50 | ||
51 | protected: | |
52 | ||
53 | private: | |
54 | /// copy constructor prohibited: might change | |
55 | AliAnalysisTaskDxHFEParticleSelection(const AliAnalysisTaskDxHFEParticleSelection&); | |
56 | /// assignment operator prohibited: might change | |
57 | AliAnalysisTaskDxHFEParticleSelection& operator=(const AliAnalysisTaskDxHFEParticleSelection&); | |
58 | ||
59 | int DefineSlots(); | |
60 | ||
61 | TList* fOutput; //! list send on output slot 1 | |
62 | TString fOption; // option string | |
63 | AliDxHFEParticleSelection* fSelector; // selector instance | |
64 | ||
65 | ClassDef(AliAnalysisTaskDxHFEParticleSelection, 1); | |
66 | }; | |
67 | ||
68 | #endif |