]>
Commit | Line | Data |
---|---|---|
777a0ba6 | 1 | #ifndef AliPERFORMANCETASK_H |
2 | #define AliPERFORMANCETASK_H | |
3 | ||
4 | //------------------------------------------------------------------------------ | |
5 | // Task to run reconstruction performance. | |
6 | // | |
7 | // Author: J.Otwinowski 01/04/2009 | |
8 | //------------------------------------------------------------------------------ | |
9 | ||
10 | class AliESDEvent; | |
ff0db5e9 | 11 | class AliESDfriend; |
777a0ba6 | 12 | class AliMCEvent; |
13 | class AliPerformanceObject; | |
14 | class AliMagF; | |
15 | class TList; | |
16 | ||
17 | #include "AliAnalysisTask.h" | |
18 | ||
19 | class AliPerformanceTask : public AliAnalysisTask { | |
20 | public: | |
21 | AliPerformanceTask(); | |
22 | AliPerformanceTask(const char *name, const char *title); | |
23 | virtual ~AliPerformanceTask(); | |
24 | ||
25 | virtual void ConnectInputData(Option_t *); | |
26 | virtual void CreateOutputObjects(); | |
27 | virtual void Exec(Option_t *option); | |
28 | virtual void Terminate(Option_t *); | |
29 | virtual Bool_t Notify(); | |
30 | ||
31 | // Add comparison objects | |
32 | Bool_t AddPerformanceObject(AliPerformanceObject* comp); | |
33 | ||
34 | // Use MC | |
35 | void SetUseMCInfo(Bool_t useMCInfo = kFALSE) {fUseMCInfo = useMCInfo;} | |
36 | ||
ff0db5e9 | 37 | // Use ESD friend |
38 | void SetUseESDfriend(Bool_t useESDFriend = kFALSE) {fUseESDfriend = useESDFriend;} | |
39 | ||
777a0ba6 | 40 | private: |
41 | AliESDEvent *fESD; //! ESD event | |
ff0db5e9 | 42 | AliESDfriend *fESDfriend; //! ESD friend event |
777a0ba6 | 43 | AliMCEvent *fMC; //! MC event |
44 | ||
45 | TList *fOutput; //! list send on output slot 0 | |
46 | TIterator *fPitList; //! iterator over the output objetcs | |
47 | TList *fCompList; // list of comparison objects | |
48 | ||
49 | Bool_t fUseMCInfo; // use MC information | |
ff0db5e9 | 50 | Bool_t fUseESDfriend; // use ESD friend |
777a0ba6 | 51 | |
52 | AliPerformanceTask(const AliPerformanceTask&); // not implemented | |
53 | AliPerformanceTask& operator=(const AliPerformanceTask&); // not implemented | |
54 | ||
55 | ClassDef(AliPerformanceTask, 1); // example of analysis | |
56 | }; | |
57 | ||
58 | #endif |