]>
Commit | Line | Data |
---|---|---|
3d86166d | 1 | #ifndef ALITRDRECOTASK_H |
2 | #define ALITRDRECOTASK_H | |
3 | ||
4 | ||
5 | // Author: Alexandru Bercuci, 10/09/2008 | |
6 | ||
7 | #ifndef ALIANALYSISTASK_H | |
8 | #include "AliAnalysisTask.h" | |
9 | #endif | |
10 | ||
11 | class TObjArray; | |
12 | class TTreeSRedirector; | |
13 | class AliTRDrecoTask : public AliAnalysisTask | |
14 | { | |
15 | public: | |
16 | enum AliTRDrecoSteeringBits{ | |
d85cd79c | 17 | kMCdata = BIT(20) |
18 | ,kFriends = BIT(21) | |
19 | ,kPostProcess = BIT(22) | |
3d86166d | 20 | }; |
21 | AliTRDrecoTask(const char *name, const char *title); | |
22 | virtual ~AliTRDrecoTask(); | |
d85cd79c | 23 | |
24 | ||
3d86166d | 25 | void ConnectInputData(Option_t *); |
26 | virtual void CreateOutputObjects() = 0; | |
27 | virtual void Exec(Option_t *) = 0; | |
28 | ||
29 | Int_t GetDebugLevel() const { return fDebugLevel;} | |
30 | Int_t GetNRefFigures() const { return fNRefFigures; } | |
a391a274 | 31 | virtual void GetRefFigure(Int_t ifig); |
d85cd79c | 32 | |
33 | Bool_t HasFriends() const {return TestBit(kFriends);}; | |
34 | Bool_t HasMCdata() const {return TestBit(kMCdata);}; | |
35 | Bool_t HasPostProcess() const {return TestBit(kPostProcess);}; | |
36 | ||
28efdace | 37 | virtual Bool_t Load(const Char_t *filename); |
3d86166d | 38 | virtual Bool_t PostProcess(); |
39 | virtual void SetDebugLevel(Int_t level); | |
d85cd79c | 40 | virtual void SetFriends(Bool_t fr = kTRUE) {SetBit(kFriends, fr);} |
41 | virtual void SetMCdata(Bool_t mc = kTRUE) {SetBit(kMCdata, mc);} | |
42 | virtual void SetPostProcess(Bool_t pp = kTRUE) {SetBit(kPostProcess, pp);} | |
3d86166d | 43 | virtual void Terminate(Option_t *) = 0; |
44 | ||
45 | private: | |
46 | AliTRDrecoTask(const AliTRDrecoTask&); | |
47 | AliTRDrecoTask& operator=(const AliTRDrecoTask&); | |
48 | ||
49 | protected: | |
50 | UChar_t fNRefFigures; //! no of reference figures reported by task | |
51 | UChar_t fDebugLevel; //! Debug level | |
52 | TObjArray *fContainer; //! container to store results | |
53 | TObjArray *fTracks; //! Array of tracks | |
54 | TTreeSRedirector *fDebugStream; //! Debug stream | |
55 | ||
56 | ClassDef(AliTRDrecoTask, 0) // base TRD reconstruction task | |
57 | }; | |
58 | ||
59 | #endif | |
60 |