]>
Commit | Line | Data |
---|---|---|
9d173aad | 1 | #ifndef ALIANALYSISTASKTRIGGERSTUDY_H |
2 | #define ALIANALYSISTASKTRIGGERSTUDY_H | |
3 | ||
4 | #include "AliAnalysisTaskSE.h" | |
5 | ||
6 | //------------------------------------------------------------------------- | |
7 | // AliAnalysisTaskTriggerStudy | |
8 | // | |
9 | // | |
10 | // | |
11 | // | |
12 | // Author: Michele Floris, CERN | |
13 | //------------------------------------------------------------------------- | |
14 | ||
15 | ||
16 | class AliESDEvent; | |
17 | class AliESDtrackCuts; | |
18 | class AliHistoListWrapper; | |
19 | class AliTriggerAnalysis; | |
20 | class AliAnalysisTaskTriggerStudy : public AliAnalysisTaskSE { | |
21 | ||
52d405b5 | 22 | // offline trigger enum |
23 | enum {kC0MBS1,kC0MBS2,kC0MBS3,kC0MBS4,kC0MBS5,kC0VBA,kC0VBC,kC0OM2,kCO0M3}; | |
24 | // enum for triggers to be included in the venn-like histogram | |
7f5f2e0c | 25 | // enum {kVDC0MBS1,kVDC0MBS2,kVDC0VBA,kVDC0VBC,kVDC0OM2,kNVDEntries}; |
26 | enum {kVDC0MBS1,kVDC0MBS2,kVDC0VBA,kVDC0VBC,kNVDEntries}; | |
52d405b5 | 27 | |
9d173aad | 28 | public: |
29 | ||
30 | AliAnalysisTaskTriggerStudy(); | |
31 | AliAnalysisTaskTriggerStudy(const char * name); | |
32 | AliAnalysisTaskTriggerStudy(const AliAnalysisTaskTriggerStudy& obj) ; | |
33 | ~AliAnalysisTaskTriggerStudy(); | |
34 | ||
35 | void SetIsMC(Bool_t flag=kTRUE) { fIsMC = flag;} | |
36 | AliHistoListWrapper * GetHistoList() { return fHistoList;} | |
37 | ||
52d405b5 | 38 | void SetNTrackletsCut(Int_t cut) { fNTrackletsCut = cut;} |
39 | ||
a82dc581 | 40 | TH1 * GetHistoTracklets (const char * name, const char * title); |
52d405b5 | 41 | void FillTriggerOverlaps (const char * name, const char * title, Bool_t * vdArray) ; |
9d173aad | 42 | |
43 | virtual void UserCreateOutputObjects(); | |
44 | virtual void UserExec(Option_t *option); | |
45 | virtual void Terminate(Option_t *); | |
46 | ||
47 | ||
48 | ||
49 | private: | |
50 | ||
51 | // | |
52 | AliESDEvent * fESD; //! ESD object AliVEvent* fEvent; | |
53 | AliHistoListWrapper * fHistoList; // wrapper for the list, takes care of merging + histo booking and getters | |
54 | Bool_t fIsMC; // true if processing montecarlo | |
55 | ||
a82dc581 | 56 | AliTriggerAnalysis * fTriggerAnalysis; // trigger analysis object, to get the offline triggers |
57 | TString fHistoSuffix; // suffix appended to all histos, set in the user exec. | |
58 | ||
52d405b5 | 59 | Int_t fNTrackletsCut; // max number of tracklets |
9d173aad | 60 | |
52d405b5 | 61 | static const char * kVDNames[]; // names of the venn hist |
9d173aad | 62 | AliAnalysisTaskTriggerStudy& operator=(const AliAnalysisTaskTriggerStudy& task); |
63 | ||
64 | ClassDef(AliAnalysisTaskTriggerStudy, 2) | |
65 | ||
66 | ||
67 | }; | |
68 | ||
69 | #endif |