Solve problem when calling PostData in derived classes (Diego)
[u/mrichter/AliRoot.git] / PWG4 / JetTasks / AliAnalysisTaskJetCore.h
CommitLineData
75bf77e3 1#ifndef ALIANALYSISTASKJETCORE_H
2#define ALIANALYSISTASKJETCORE_H
3
4class TH1F;
5class TH2F;
6class TH3F;
7class THnSparse;
8class AliESDEvent;
9class AliAODEvent;
10
11#include "AliAnalysisTaskSE.h"
12#include "AliVEvent.h"
13
14class AliAnalysisTaskJetCore : public AliAnalysisTaskSE {
15public:
16 AliAnalysisTaskJetCore();
17 AliAnalysisTaskJetCore(const char *name);
18 virtual ~AliAnalysisTaskJetCore();
19
20 virtual void LocalInit() {Init();}
21 virtual void Init();
22 virtual void UserCreateOutputObjects();
23 virtual void UserExec(Option_t *option);
24 virtual void Terminate(const Option_t*);
25
26 virtual Int_t GetNInputTracks();
27
28
29
30 virtual AliVEvent::EOfflineTriggerTypes GetOfflineTrgMask() const { return fOfflineTrgMask; }
31 virtual void GetBranchNames(TString &branch1, TString &branch2) const { branch1 = fJetBranchName[0]; branch2 = fJetBranchName[1]; }
32 virtual Bool_t GetIsPbPb() const { return fIsPbPb; }
33 virtual Int_t GetMinContribVtx() const { return fMinContribVtx; };
34 virtual Float_t GetVtxZMin() const { return fVtxZMin; }
35 virtual Float_t GetVtxZMax() const { return fVtxZMax; }
36 virtual Int_t GetEvtClassMin() const { return fEvtClassMin; }
37 virtual Int_t GetEvtClassMax() const { return fEvtClassMax; }
38 virtual Float_t GetCentMin() const { return fCentMin; }
39 virtual Float_t GetCentMax() const { return fCentMax; }
40 virtual Int_t GetNInputTracksMin() const { return fNInputTracksMin; }
41 virtual Int_t GetNInputTracksMax() const { return fNInputTracksMax; }
42 virtual Float_t GetJetEtaMin() const { return fJetEtaMin; }
43 virtual Float_t GetJetEtaMax() const { return fJetEtaMax; }
44 virtual Float_t GetJetPtMin() const { return fJetPtMin; }
45 virtual Float_t GetJetPtFractionMin() const { return fJetPtFractionMin; }
46 virtual Int_t GetNMatchJets() const { return fNMatchJets; }
47 virtual void SetBranchNames(const TString &branch1, const TString &branch2);
48 virtual void SetBackgroundBranch(TString &branch) { fBackgroundBranch = branch;}
49 virtual void SetIsPbPb(Bool_t b=kTRUE) { fIsPbPb = b; }
50 virtual void SetOfflineTrgMask(AliVEvent::EOfflineTriggerTypes mask) { fOfflineTrgMask = mask; }
51 virtual void SetMinContribVtx(Int_t n) { fMinContribVtx = n; }
52 virtual void SetVtxZMin(Float_t z) { fVtxZMin = z; }
53 virtual void SetVtxZMax(Float_t z) { fVtxZMax = z; }
54 virtual void SetEvtClassMin(Int_t evtClass) { fEvtClassMin = evtClass; }
55 virtual void SetEvtClassMax(Int_t evtClass) { fEvtClassMax = evtClass; }
56 virtual void SetCentMin(Float_t cent) { fCentMin = cent; }
57 virtual void SetCentMax(Float_t cent) { fCentMax = cent; }
58 virtual void SetNInputTracksMin(Int_t nTr) { fNInputTracksMin = nTr; }
59 virtual void SetNInputTracksMax(Int_t nTr) { fNInputTracksMax = nTr; }
60 virtual void SetJetEtaMin(Float_t eta) { fJetEtaMin = eta; }
61 virtual void SetJetEtaMax(Float_t eta) { fJetEtaMax = eta; }
62 virtual void SetJetPtMin(Float_t pt) { fJetPtMin = pt; }
63 virtual void SetJetTriggerExclude(UChar_t i) { fJetTriggerExcludeMask = i; }
64 virtual void SetJetPtFractionMin(Float_t frac) { fJetPtFractionMin = frac; }
65 virtual void SetNMatchJets(Int_t n) { fNMatchJets = n; }
66 virtual void SetFillEvent(Bool_t b) { fbEvent = b; }
67 virtual void SetKeepJets(Bool_t b = kTRUE) { fKeepJets = b; }
68 virtual void SetRadioFrac(Float_t radiofrac) { fRadioFrac = radiofrac; }
69 virtual void SetMinDist(Float_t minDist) { fMinDist = minDist; }
70
71
72private:
73 // ESD/AOD events
74 AliESDEvent *fESD; //! ESD object
75 AliAODEvent *fAOD; //! AOD event
76
77 // jets to compare
78 TString fJetBranchName[2]; // name of jet branches to compare
79 TList *fListJets[2]; //! jet lists
80
81 TString fBackgroundBranch;
82
83 // event selection
84 Bool_t fIsPbPb; // is Pb-Pb (fast embedding) or p-p (detector response)
85 AliVEvent::EOfflineTriggerTypes fOfflineTrgMask; // mask of offline triggers to accept
86 Int_t fMinContribVtx; // minimum number of track contributors for primary vertex
87 Float_t fVtxZMin; // lower bound on vertex z
88 Float_t fVtxZMax; // upper bound on vertex z
89 Int_t fEvtClassMin; // lower bound on event class
90 Int_t fEvtClassMax; // upper bound on event class
91 Float_t fCentMin; // lower bound on centrality
92 Float_t fCentMax; // upper bound on centrality
93 Int_t fNInputTracksMin; // lower bound of nb. of input tracks
94 Int_t fNInputTracksMax; // upper bound of nb. of input tracks
95 Float_t fJetEtaMin; // lower bound on eta for found jets
96 Float_t fJetEtaMax; // upper bound on eta for found jets
97 Float_t fJetPtMin; // minimum jet pT
98 UChar_t fJetTriggerExcludeMask; // mask for jet triggeres to exclude
99 Float_t fJetPtFractionMin; // minimum fraction for positiv match of jets
100 Int_t fNMatchJets; // maximal nb. of jets taken for matching
101 Double_t fMatchMaxDist; // maximal distance of matching jets
102 Bool_t fKeepJets; // keep jets with negative pt after background subtraction
103 Float_t fRadioFrac; //size of the concentric cone
104 Float_t fMinDist; //minimum jet axis distance
105
106 // output objects
107 const Int_t fkNbranches; //! number of branches to be read
108 const Int_t fkEvtClasses; //! number of event classes
109
110 TList *fOutputList; //! output data container
111 Bool_t fbEvent; // fill fhnEvent
112 TH1I *fHistEvtSelection; //! event selection statistic
113 TH1I *fHistJetSelection; //! jet selection statistic
114 TH2F *fh2JetSelection; //! jet selection statistic, with
115
116 TH2F *fh2JetCoreMethod1C10; //jet core method1 0-10%
117 TH2F *fh2JetCoreMethod2C10; //jet core method2 0-10%
118 TH2F *fh2JetCoreMethod3C10; //jet core method3 0-10%
119
120 TH2F *fh2JetCoreMethod1C30; //jet core method1 30-60%
121 TH2F *fh2JetCoreMethod2C30; //jet core method2 30-60%
122 TH2F *fh2JetCoreMethod3C30; //jet core method3 30-60%
123
124
125 TH2F *fh2JetCoreMethod1C60; //jet core method1 60-100%
126 TH2F *fh2JetCoreMethod2C60; //jet core method2 60-100%
127 TH2F *fh2JetCoreMethod3C60; //jet core method3 60-100%
128
129
130
131
132 AliAnalysisTaskJetCore(const AliAnalysisTaskJetCore&); // not implemented
133 AliAnalysisTaskJetCore& operator=(const AliAnalysisTaskJetCore&); // not implemented
134
135 ClassDef(AliAnalysisTaskJetCore, 4);
136};
137
138#endif
139