]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWG1/TPC/AliPerformanceTask.h
extentions by Jochen Thaeder
[u/mrichter/AliRoot.git] / PWG1 / TPC / AliPerformanceTask.h
CommitLineData
7cc34f08 1#ifndef AliPERFORMANCETASK_H
2#define AliPERFORMANCETASK_H
3
4//------------------------------------------------------------------------------
5// Task to run reconstruction performance.
6//
7// Author: J.Otwinowski 01/04/2009
814d192f 8// Changes by M.Knichel 15/10/2010
7cc34f08 9//------------------------------------------------------------------------------
10
11class AliESDEvent;
12class AliESDfriend;
13class AliMCEvent;
14class AliPerformanceObject;
15class AliMagF;
16class TList;
814d192f 17class TTree;
7cc34f08 18
a26a028b 19#include "AliAnalysisTaskSE.h"
7cc34f08 20
a26a028b 21class AliPerformanceTask : public AliAnalysisTaskSE {
7cc34f08 22 public:
23 AliPerformanceTask();
24 AliPerformanceTask(const char *name, const char *title);
25 virtual ~AliPerformanceTask();
26
a26a028b 27 virtual void UserCreateOutputObjects();
28 virtual void UserExec(Option_t *option);
7cc34f08 29 virtual void Terminate(Option_t *);
814d192f 30 virtual void FinishTaskOutput();
7cc34f08 31 virtual Bool_t Notify();
32
33 // Add comparison objects
34 Bool_t AddPerformanceObject(AliPerformanceObject* comp);
35
36 // Use MC
37 void SetUseMCInfo(Bool_t useMCInfo = kFALSE) {fUseMCInfo = useMCInfo;}
38
39 // Use ESD friend
40 void SetUseESDfriend(Bool_t useESDFriend = kFALSE) {fUseESDfriend = useESDFriend;}
41
636e5a51 42 // Use HLT ESD
43 void SetUseHLT(Bool_t useHLT = kFALSE) {fUseHLT = useHLT;}
44
c1b69b58 45 // Use Terminate function
46 void SetUseTerminate(Bool_t useTerminate = kTRUE) {fUseTerminate = useTerminate;}
47
7cc34f08 48 private:
814d192f 49 AliESDEvent *fESD; //! ESD event
50 AliESDfriend *fESDfriend; //! ESD friend event
51 AliMCEvent *fMC; //! MC event
7cc34f08 52
814d192f 53 TList *fOutput; //! list send on output container 1
c1b69b58 54 TTree* fOutputSummary; //! tree to dump summary values (output container 2)
7cc34f08 55 TIterator *fPitList; //! iterator over the output objetcs
56 TList *fCompList; // list of comparison objects
57
58 Bool_t fUseMCInfo; // use MC information
59 Bool_t fUseESDfriend; // use ESD friend
636e5a51 60 Bool_t fUseHLT; // use HLT ESD
7cc34f08 61
c1b69b58 62 Bool_t fUseTerminate; // use terminate function
63
7cc34f08 64 AliPerformanceTask(const AliPerformanceTask&); // not implemented
65 AliPerformanceTask& operator=(const AliPerformanceTask&); // not implemented
66
c1b69b58 67 ClassDef(AliPerformanceTask, 4); // example of analysis
7cc34f08 68};
69
70#endif