]>
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{ | |
17 | kHasMCdata = BIT(14) | |
18 | }; | |
19 | AliTRDrecoTask(const char *name, const char *title); | |
20 | virtual ~AliTRDrecoTask(); | |
21 | ||
22 | void ConnectInputData(Option_t *); | |
23 | virtual void CreateOutputObjects() = 0; | |
24 | virtual void Exec(Option_t *) = 0; | |
25 | ||
26 | Int_t GetDebugLevel() const { return fDebugLevel;} | |
27 | Int_t GetNRefFigures() const { return fNRefFigures; } | |
28 | virtual void GetRefFigure(Int_t ifig, Int_t &first, Int_t &last); | |
29 | Bool_t HasMCdata() const {return TestBit(kHasMCdata);}; | |
30 | virtual Bool_t Load(Char_t *filename); | |
31 | virtual Bool_t PostProcess(); | |
32 | virtual void SetDebugLevel(Int_t level); | |
33 | void SetMCdata(Bool_t mcdata) {SetBit(kHasMCdata, mcdata);} | |
34 | virtual void Terminate(Option_t *) = 0; | |
35 | ||
36 | private: | |
37 | AliTRDrecoTask(const AliTRDrecoTask&); | |
38 | AliTRDrecoTask& operator=(const AliTRDrecoTask&); | |
39 | ||
40 | protected: | |
41 | UChar_t fNRefFigures; //! no of reference figures reported by task | |
42 | UChar_t fDebugLevel; //! Debug level | |
43 | TObjArray *fContainer; //! container to store results | |
44 | TObjArray *fTracks; //! Array of tracks | |
45 | TTreeSRedirector *fDebugStream; //! Debug stream | |
46 | ||
47 | ClassDef(AliTRDrecoTask, 0) // base TRD reconstruction task | |
48 | }; | |
49 | ||
50 | #endif | |
51 |