]>
Commit | Line | Data |
---|---|---|
7cc34f08 | 1 | #ifndef ALICOMPARISONRESTASK_H |
2 | #define ALICOMPARISONRESTASK_H | |
3 | ||
4 | //------------------------------------------------------------------------------ | |
5 | // Class to compare properties of reconstructed and MC particle tracks. | |
6 | // | |
7 | // Author: J.Otwinowski 04/02/2008 | |
8 | //------------------------------------------------------------------------------ | |
9 | ||
10 | class AliComparisonObject; | |
11 | class AliMagF; | |
12 | class TList; | |
13 | ||
14 | #include "AliAnalysisTask.h" | |
a958c4d4 | 15 | #include "AliMCInfo.h" |
16 | #include "AliESDRecInfo.h" | |
7cc34f08 | 17 | |
18 | class AliComparisonTask : public AliAnalysisTask { | |
19 | public: | |
20 | AliComparisonTask(const char *name = "AliComparisonTask"); | |
21 | virtual ~AliComparisonTask(); | |
22 | ||
23 | virtual void ConnectInputData(Option_t *); | |
24 | virtual void CreateOutputObjects(); | |
25 | virtual void Exec(Option_t *option); | |
26 | virtual void Terminate(Option_t *); | |
27 | ||
28 | // Read TTree entry (event by event) | |
29 | Bool_t ReadEntry(Int_t evt); | |
30 | ||
31 | // Set comparison objects | |
32 | Bool_t AddComparisonObject(AliComparisonObject* comp); | |
33 | ||
34 | private: | |
35 | TTree* fTree; //! input tree | |
36 | AliMCInfo *fInfoMC; //! AliMCInfo object | |
37 | AliESDRecInfo *fInfoRC; //! AliESDRecInfo object | |
38 | ||
39 | TList* fOutput; //! list send on output slot 0 | |
40 | static Int_t fEvtNumber; //! event number | |
41 | TIterator *fPitList; //! iterator over the output objetcs | |
42 | TList *fCompList; // list of comparison objects | |
43 | ||
44 | AliComparisonTask(const AliComparisonTask&); // not implemented | |
45 | AliComparisonTask& operator=(const AliComparisonTask&); // not implemented | |
46 | ||
47 | ClassDef(AliComparisonTask, 1); // example of analysis | |
48 | }; | |
49 | ||
50 | #endif |