]>
Commit | Line | Data |
---|---|---|
b26900d0 | 1 | #ifndef ALIRUNANALYSIS_H |
2 | #define ALIRUNANALYSIS_H | |
3 | //________________________________ | |
4 | /////////////////////////////////////////////////////////// | |
5 | // | |
6 | // class AliRunAnalysis | |
7 | // | |
8 | // Analysis manager | |
9 | // | |
10 | // | |
11 | // Piotr.Skowronski@cern.ch | |
12 | // | |
13 | /////////////////////////////////////////////////////////// | |
14 | ||
b26900d0 | 15 | #include <TTask.h> |
a5556ea5 | 16 | #include <TObjArray.h> |
b26900d0 | 17 | #include "AliAnalysis.h" |
18 | ||
a5556ea5 | 19 | class AliEventCut; |
20 | class TFile; | |
21 | class AliReader; | |
22 | ||
b26900d0 | 23 | class AliRunAnalysis: public TTask |
24 | { | |
25 | public: | |
26 | AliRunAnalysis(); | |
27 | virtual ~AliRunAnalysis(); | |
28 | ||
a5556ea5 | 29 | Int_t Run(); |
30 | void Add(AliAnalysis* a); | |
31 | void SetReader(AliReader* reader){fReader = reader;} | |
32 | ||
33 | const char* GetName(){return "RunAnalysis";} | |
36715d31 | 34 | void EventCutOnRec(Bool_t flag){fCutOnRec = flag;} |
35 | void EventCutOnSim(Bool_t flag){fCutOnSim = flag;} | |
36 | void SetEventCut(AliEventCut* evcut); | |
53f4817d | 37 | void SetOwner(Bool_t owner=kTRUE){fAnalysies.SetOwner(owner);} |
b26900d0 | 38 | |
b26900d0 | 39 | protected: |
a5556ea5 | 40 | TObjArray fAnalysies;//arry with analysies |
41 | AliReader* fReader;//arry with directories to read data from | |
b26900d0 | 42 | |
43 | AliEventCut* fEventCut;//event cut | |
44 | ||
a5556ea5 | 45 | Bool_t fCutOnSim;//flag indicating that event cut is performed on simulated particles |
46 | Bool_t fCutOnRec;//flag indicating that event cut is performed on reconstructed tracks | |
b26900d0 | 47 | |
cea0a066 | 48 | Bool_t Rejected(AliAOD* recevent, AliAOD* simevent); |
b26900d0 | 49 | |
50 | private: | |
91757255 | 51 | void SetName(const char *){}//change SetName to be private |
b26900d0 | 52 | |
b26900d0 | 53 | ClassDef(AliRunAnalysis,1) |
54 | }; | |
55 | ||
56 | #endif |