]>
Commit | Line | Data |
---|---|---|
ed45f693 | 1 | #ifndef ALIANALYSISTASKCHECKPERFORMANCECASCADEPP276_H |
2 | #define ALIANALYSISTASKCHECKPERFORMANCECASCADEPP276_H | |
3 | ||
4 | /* See cxx source for full Copyright notice */ | |
5 | ||
6 | // //----------------------------------------------------------------- | |
7 | // // AliAnalysisTaskCheckPerformanceCascadePbPb class | |
8 | // // This task is for a performance study of cascade identification. | |
9 | // // It works with MC info and ESD and AOD tree | |
74457772 | 10 | // // Origin : A.Maire Jan2010, antonin.maire@ires.in2p3.fr |
ed45f693 | 11 | // // Modified : M.Nicassio Feb2011, maria.nicassio@ba.infn.it |
74457772 | 12 | // // Modified : D.Colella Feb2012, domenico.colella@ba.infn.it |
ed45f693 | 13 | // //----------------------------------------------------------------- |
14 | ||
15 | class TList; | |
16 | class TH1F; | |
17 | class TH2F; | |
18 | class TH3F; | |
19 | ||
20 | class AliESDEvent; | |
21 | class AliESDtrackCuts; | |
22 | class AliPhysicsSelection; | |
23 | class AliCFContainer; | |
24 | class AliPIDResponse; | |
25 | ||
26 | #include "AliAnalysisTaskSE.h" | |
27 | ||
28 | class AliAnalysisTaskCheckPerformanceCascadepp276 : public AliAnalysisTaskSE { | |
29 | public: | |
30 | ||
31 | AliAnalysisTaskCheckPerformanceCascadepp276(); | |
32 | AliAnalysisTaskCheckPerformanceCascadepp276(const char *name ); | |
33 | virtual ~AliAnalysisTaskCheckPerformanceCascadepp276(); | |
34 | ||
35 | virtual void UserCreateOutputObjects(); | |
36 | virtual void UserExec(Option_t *option); | |
37 | virtual void Terminate(Option_t *); | |
38 | ||
39 | void SetAnalysisType (const char* analysisType = "ESD") { fAnalysisType = analysisType;} | |
40 | ||
93900229 | 41 | void SetRelaunchV0CascVertexers (Bool_t rerunV0CascVertexers = 0 ) { fkRerunV0CascVertexers = rerunV0CascVertexers; } |
42 | void SetSDDSelection (Bool_t sddOnSelection = kTRUE) { fkSDDselectionOn = sddOnSelection; } | |
43 | void SetQualityCutZprimVtxPos (Bool_t qualityCutZprimVtxPos = kTRUE) { fkQualityCutZprimVtxPos = qualityCutZprimVtxPos; } | |
44 | void SetRejectEventPileUp (Bool_t rejectPileUp = kTRUE) { fkRejectEventPileUp = rejectPileUp; } | |
45 | void SetQualityCutNoTPConlyPrimVtx (Bool_t qualityCutNoTPConlyPrimVtx = kTRUE) { fkQualityCutNoTPConlyPrimVtx = qualityCutNoTPConlyPrimVtx;} | |
46 | void SetQualityCutTPCrefit (Bool_t qualityCutTPCrefit = kTRUE) { fkQualityCutTPCrefit = qualityCutTPCrefit; } | |
47 | void SetQualityCutnTPCcls (Bool_t qualityCutnTPCcls = kTRUE) { fkQualityCutnTPCcls = qualityCutnTPCcls; } | |
48 | void SetWithSDDOn (Bool_t withsddOn = kTRUE) { fwithSDD = withsddOn; } | |
49 | void SetQualityCutMinnTPCcls (Int_t minnTPCcls = 70 ) { fMinnTPCcls = minnTPCcls; } | |
50 | void SetExtraSelections (Bool_t extraSelections = 0 ) { fkExtraSelections = extraSelections; } | |
51 | void SetVertexRange (Float_t vtxrange = 0. ) { fVtxRange = vtxrange; } | |
52 | void SetVertexRangeMin (Float_t vtxrangemin = 0. ) { fVtxRangeMin = vtxrangemin; } | |
53 | void SetApplyAccCut (Bool_t acccut = kFALSE){ fApplyAccCut = acccut; } | |
54 | void SetMinptCutOnDaughterTracks (Float_t minptdaughtrks = 0. ) { fMinPtCutOnDaughterTracks = minptdaughtrks; } | |
55 | void SetEtaCutOnDaughterTracks (Float_t etadaughtrks = 0. ) { fEtaCutOnDaughterTracks = etadaughtrks; } | |
ed45f693 | 56 | |
57 | private: | |
58 | // Note : In ROOT, "//!" means "do not stream the data from Master node to Worker node" ... | |
59 | // your data member object is created on the worker nodes and streaming is not needed. | |
60 | // http://root.cern.ch/download/doc/11InputOutput.pdf, page 14 | |
61 | ||
62 | TString fAnalysisType; // "ESD" or "AOD" analysis type | |
63 | AliESDtrackCuts *fESDtrackCuts; // ESD track cuts used for primary track definition | |
64 | //TPaveText *fPaveTextBookKeeping; // TString to store all the relevant info necessary for book keeping (v0 cuts, cascade cuts, quality cuts, ...) | |
65 | AliPIDResponse *fPIDResponse; //! PID response object | |
66 | ||
67 | Bool_t fkRerunV0CascVertexers; // Boolean : kTRUE = relaunch both V0 + Cascade vertexers | |
93900229 | 68 | Bool_t fkSDDselectionOn; // Boolean : kTRUE = enable the selection based on the SDD status |
ed45f693 | 69 | Bool_t fkQualityCutZprimVtxPos; // Boolean : kTRUE = cut on the prim.vtx z-position |
70 | Bool_t fkRejectEventPileUp; // Boolean : kTRUE = enable the rejection of events tagged as pile-up by SPD (AliESDEvent::IsPileupFromSPD) | |
71 | Bool_t fkQualityCutNoTPConlyPrimVtx; // Boolean : kTRUE = prim vtx should be SPD or Tracking vertex | |
72 | Bool_t fkQualityCutTPCrefit; // Boolean : kTRUE = ask for TPCrefit for the 3 daughter tracks | |
93900229 | 73 | Bool_t fkQualityCutnTPCcls; // Boolean : kTRUE = ask for n TPC clusters for each daughter track |
74 | Bool_t fwithSDD; // Boolean : kTRUE = select events with SDD reco | |
75 | Int_t fMinnTPCcls; // Boolean : set the value for the minimum number of TPC clusters | |
ed45f693 | 76 | Bool_t fkExtraSelections; // Boolean : kTRUE = apply tighter selections, before starting the analysis |
77 | Float_t fVtxRange; // to select events with |zvtx|<fVtxRange cm | |
93900229 | 78 | Float_t fVtxRangeMin; // to select events with |zvtx|>fVtxRangeMin cm |
ed45f693 | 79 | Bool_t fApplyAccCut; // flag to apply acceptance cuts to MC cascades |
80 | Float_t fMinPtCutOnDaughterTracks; // minimum pt cut on daughter tracks | |
81 | Float_t fEtaCutOnDaughterTracks; // pseudorapidity cut on daughter tracks | |
82 | ||
83 | Double_t fV0Sels[7]; // Array to store the 7 values for the different selections V0 related (if fkRerunV0CascVertexers) | |
84 | Double_t fCascSels[8]; // Array to store the 8 values for the different selections Casc. related (if fkRerunV0CascVertexers) | |
85 | ||
86 | TList *fListHistCascade; //! List of Cascade histograms | |
87 | // - General Plots | |
88 | // Cascade multiplicity plots | |
89 | TH1F *fHistCascadeMultiplicityBeforeAnySel; | |
90 | TH1F *fHistCascadeMultiplicityAfterSDDSel; | |
91 | TH1F *fHistCascadeMultiplicityAfterPhysicsSel; | |
ed45f693 | 92 | TH1F *fHistCascadeMultiplicityForSelEvtNoTPCOnly; |
93 | TH1F *fHistCascadeMultiplicityForSelEvtNoTPCOnlyNoPileup; | |
74457772 | 94 | TH1F *fHistCascadeMultiplicityAfterVertexCutSel; |
ed45f693 | 95 | TH1F *fHistnXiPlusPerEvTot; // After any event selections, in all the eta and pt range |
96 | TH1F *fHistnXiMinusPerEvTot; // After any event selections, in all the eta and pt range | |
97 | TH1F *fHistnOmegaPlusPerEvTot; // After any event selections, in all the eta and pt range | |
98 | TH1F *fHistnOmegaMinusPerEvTot; // After any event selections, in all the eta and pt range | |
99 | TH1F *fHistnXiPlusPerEv; // After any event selections, in the detector acceptance and over a pt minimum | |
100 | TH1F *fHistnXiMinusPerEv; // After any event selections, in the detector acceptance and over a pt minimum | |
101 | TH1F *fHistnOmegaPlusPerEv; // After any event selections, in the detector acceptance and over a pt minimum | |
102 | TH1F *fHistnOmegaMinusPerEv; // After any event selections, in the detector acceptance and over a pt minimum | |
103 | TH1F *fHistnAssoXiMinus; // For the Reconstructed-Associated cascades | |
104 | TH1F *fHistnAssoXiPlus; // For the Reconstructed-Associated cascades | |
105 | TH1F *fHistnAssoOmegaMinus; // For the Reconstructed-Associated cascades | |
106 | TH1F *fHistnAssoOmegaPlus; // For the Reconstructed-Associated cascades | |
107 | // Tracks multiplicity plots | |
108 | TH1F *fHistTrackMultiplicityBeforeAnySel; | |
109 | TH1F *fHistTrackMultiplicityAfterSDDSel; | |
74457772 | 110 | TH1F *fHistTrackMultiplicityAfterPhysicsSel; |
ed45f693 | 111 | TH1F *fHistTrackMultiplicityForSelEvtNoTPCOnly; |
112 | TH1F *fHistTrackMultiplicityForSelEvtNoTPCOnlyNoPileup; | |
74457772 | 113 | TH1F *fHistTrackMultiplicityAfterVertexCutSel; |
ed45f693 | 114 | // Vertex position plots (BestVertex) |
74457772 | 115 | TH1F *fHistPVx; // After any selections but before |Z| < 10 cm |
116 | TH1F *fHistPVy; // After any selections but before |Z| < 10 cm | |
117 | TH1F *fHistPVz; // After any selections but before |Z| < 10 cm | |
ed45f693 | 118 | TH1F *fHistPVxAnalysis; // After any event selections |
119 | TH1F *fHistPVyAnalysis; // After any event selections | |
120 | TH1F *fHistPVzAnalysis; // After any event selections | |
121 | // - Plots before Physics Selection | |
122 | TH3D *f3dHistGenPtVsGenYvsNtracksXiMinus; // After the SDD event selection (For efficinecy calculation) | |
123 | TH3D *f3dHistGenPtVsGenctauvsYXiMinus; // After the SDD event selection (For efficinecy calculation) | |
124 | TH3D *f3dHistGenPtVsGenYvsNtracksXiPlus; // After the SDD event selection (For efficinecy calculation) | |
125 | TH3D *f3dHistGenPtVsGenctauvsYXiPlus; // After the SDD event selection (For efficinecy calculation) | |
126 | TH3D *f3dHistGenPtVsGenYvsNtracksOmegaMinus; // After the SDD event selection (For efficinecy calculation) | |
127 | TH3D *f3dHistGenPtVsGenctauvsYOmegaMinus; // After the SDD event selection (For efficinecy calculation) | |
128 | TH3D *f3dHistGenPtVsGenYvsNtracksOmegaPlus; // After the SDD event selection (For efficinecy calculation) | |
129 | TH3D *f3dHistGenPtVsGenctauvsYOmegaPlus; // After the SDD event selection (For efficinecy calculation) | |
130 | ||
131 | // - Generated cascade plots | |
132 | // After all the event selections | |
133 | //Xi- | |
134 | TH1F *fHistEtaGenCascXiMinus; // In all the eta and pt range (as they are generated) | |
135 | TH1F *fHistThetaGenCascXiMinus; // In all the eta and pt range (as they are generated) | |
136 | TH3D *f3dHistGenPtVsGenYvsNtracksXiMinusPhysEff; // | |
137 | TH3D *f3dHistGenPtVsGenctauvsYXiMinusPhysEff; // | |
138 | TH2D *f2dHistGenPtVsGenYFdblXiMinus; // In the detector acceptance and over a pt minimum (Findable particle) | |
139 | TH1F *fHistThetaLambdaXiMinus; // In the detector acceptance and over a pt minimum (Findable particle) | |
140 | TH1F *fHistThetaBachXiMinus; // In the detector acceptance and over a pt minimum (Findable particle) | |
141 | TH1F *fHistThetaMesDghterXiMinus; // In the detector acceptance and over a pt minimum (Findable particle) | |
142 | TH1F *fHistThetaBarDghterXiMinus; // In the detector acceptance and over a pt minimum (Findable particle) | |
143 | TH1F *fHistPtBachXiMinus; // In the detector acceptance and over a pt minimum (Findable particle) | |
144 | TH1F *fHistPtMesDghterXiMinus; // In the detector acceptance and over a pt minimum (Findable particle) | |
145 | TH1F *fHistPtBarDghterXiMinus; // In the detector acceptance and over a pt minimum (Findable particle) | |
146 | //Xi+ | |
147 | TH1F *fHistEtaGenCascXiPlus; // In all the eta and pt range (as they are generated) | |
148 | TH1F *fHistThetaGenCascXiPlus; // In all the eta and pt range (as they are generated) | |
149 | TH3D *f3dHistGenPtVsGenYvsNtracksXiPlusPhysEff; // | |
150 | TH3D *f3dHistGenPtVsGenctauvsYXiPlusPhysEff; // | |
151 | TH2D *f2dHistGenPtVsGenYFdblXiPlus; // In the detector acceptance and over a pt minimum (Findable particle) | |
152 | TH1F *fHistThetaLambdaXiPlus; // In the detector acceptance and over a pt minimum (Findable particle) | |
153 | TH1F *fHistThetaBachXiPlus; // In the detector acceptance and over a pt minimum (Findable particle) | |
154 | TH1F *fHistThetaMesDghterXiPlus; // In the detector acceptance and over a pt minimum (Findable particle) | |
155 | TH1F *fHistThetaBarDghterXiPlus; // In the detector acceptance and over a pt minimum (Findable particle) | |
156 | TH1F *fHistPtBachXiPlus; // In the detector acceptance and over a pt minimum (Findable particle) | |
157 | TH1F *fHistPtMesDghterXiPlus; // In the detector acceptance and over a pt minimum (Findable particle) | |
158 | TH1F *fHistPtBarDghterXiPlus; // In the detector acceptance and over a pt minimum (Findable particle) | |
159 | //Omega- | |
160 | TH1F *fHistEtaGenCascOmegaMinus; // In all the eta and pt range (as they are generated) | |
161 | TH1F *fHistThetaGenCascOmegaMinus; // In all the eta and pt range (as they are generated) | |
162 | TH3D *f3dHistGenPtVsGenYvsNtracksOmegaMinusPhysEff; // | |
163 | TH3D *f3dHistGenPtVsGenctauvsYOmegaMinusPhysEff; // | |
164 | TH2D *f2dHistGenPtVsGenYFdblOmegaMinus; // In the detector acceptance and over a pt minimum (Findable particle) | |
165 | TH1F *fHistThetaLambdaOmegaMinus; // In the detector acceptance and over a pt minimum (Findable particle) | |
166 | TH1F *fHistThetaBachOmegaMinus; // In the detector acceptance and over a pt minimum (Findable particle) | |
167 | TH1F *fHistThetaMesDghterOmegaMinus; // In the detector acceptance and over a pt minimum (Findable particle) | |
168 | TH1F *fHistThetaBarDghterOmegaMinus; // In the detector acceptance and over a pt minimum (Findable particle) | |
169 | TH1F *fHistPtBachOmegaMinus; // In the detector acceptance and over a pt minimum (Findable particle) | |
170 | TH1F *fHistPtMesDghterOmegaMinus; // In the detector acceptance and over a pt minimum (Findable particle) | |
171 | TH1F *fHistPtBarDghterOmegaMinus; // In the detector acceptance and over a pt minimum (Findable particle) | |
172 | //Omega+ | |
173 | TH1F *fHistEtaGenCascOmegaPlus; // In all the eta and pt range (as they are generated) | |
174 | TH1F *fHistThetaGenCascOmegaPlus; // In all the eta and pt range (as they are generated) | |
175 | TH3D *f3dHistGenPtVsGenYvsNtracksOmegaPlusPhysEff; // | |
176 | TH3D *f3dHistGenPtVsGenctauvsYOmegaPlusPhysEff; // | |
177 | TH2D *f2dHistGenPtVsGenYFdblOmegaPlus; // In the detector acceptance and over a pt minimum (Findable particle) | |
178 | TH1F *fHistThetaLambdaOmegaPlus; // In the detector acceptance and over a pt minimum (Findable particle) | |
179 | TH1F *fHistThetaBachOmegaPlus; // In the detector acceptance and over a pt minimum (Findable particle) | |
180 | TH1F *fHistThetaMesDghterOmegaPlus; // In the detector acceptance and over a pt minimum (Findable particle) | |
181 | TH1F *fHistThetaBarDghterOmegaPlus; // In the detector acceptance and over a pt minimum (Findable particle) | |
182 | TH1F *fHistPtBachOmegaPlus; // In the detector acceptance and over a pt minimum (Findable particle) | |
183 | TH1F *fHistPtMesDghterOmegaPlus; // In the detector acceptance and over a pt minimum (Findable particle) | |
184 | TH1F *fHistPtBarDghterOmegaPlus; // In the detector acceptance and over a pt minimum (Findable particle) | |
185 | ||
186 | // - Associated to MC cascade plots | |
187 | TH1F *fHistMassXiMinus; // For the Reconstructed-Associated cascades | |
188 | TH1F *fHistMassXiPlus; // For the Reconstructed-Associated cascades | |
189 | TH1F *fHistMassOmegaMinus; // For the Reconstructed-Associated cascades | |
190 | TH1F *fHistMassOmegaPlus; // For the Reconstructed-Associated cascades | |
191 | // Effective mass histos with combined PID | |
192 | TH1F *fHistMassWithCombPIDXiMinus; | |
193 | TH1F *fHistMassWithCombPIDXiPlus; | |
194 | TH1F *fHistMassWithCombPIDOmegaMinus; | |
195 | TH1F *fHistMassWithCombPIDOmegaPlus; | |
196 | // PID Probability versus MC Pt(bachelor track) | |
197 | TH2F *f2dHistPIDprobaKaonVsMCPtBach; | |
198 | TH2F *f2dHistPIDprobaPionVsMCPtBach; | |
199 | // Effective mass histos with perfect MC PID on the bachelor | |
200 | TH1F *fHistMassWithMcPIDXiMinus; | |
201 | TH1F *fHistMassWithMcPIDXiPlus; | |
202 | TH1F *fHistMassWithMcPIDOmegaMinus; | |
203 | TH1F *fHistMassWithMcPIDOmegaPlus; | |
204 | // Effective mass histos for the cascade candidates associated with MC | |
205 | TH1F *fHistAsMCMassXiMinus; | |
206 | TH1F *fHistAsMCMassXiPlus; | |
207 | TH1F *fHistAsMCMassOmegaMinus; | |
208 | TH1F *fHistAsMCMassOmegaPlus; | |
209 | // Generated Pt Vs generated y, for the cascade candidates associated with MC + Info Comb. PID | |
210 | TH2F *f2dHistAsMCandCombPIDGenPtVsGenYXiMinus; | |
211 | TH2F *f2dHistAsMCandCombPIDGenPtVsGenYXiPlus; | |
212 | TH2F *f2dHistAsMCandCombPIDGenPtVsGenYOmegaMinus; | |
213 | TH2F *f2dHistAsMCandCombPIDGenPtVsGenYOmegaPlus; | |
214 | // Generated Pt Vs generated y, for the cascade candidates associated with MC | |
215 | TH2F *f2dHistAsMCGenPtVsGenYXiMinus; | |
216 | TH2F *f2dHistAsMCGenPtVsGenYXiPlus; | |
217 | TH2F *f2dHistAsMCGenPtVsGenYOmegaMinus; | |
218 | TH2F *f2dHistAsMCGenPtVsGenYOmegaPlus; | |
219 | // Generated Eta of the the cascade candidates associated with MC | |
220 | TH1F *fHistAsMCGenEtaXiMinus; | |
221 | TH1F *fHistAsMCGenEtaXiPlus; | |
222 | TH1F *fHistAsMCGenEtaOmegaMinus; | |
223 | TH1F *fHistAsMCGenEtaOmegaPlus; | |
224 | // Resolution in Pt as function of generated Pt | |
225 | TH2F *f2dHistAsMCResPtXiMinus; | |
226 | TH2F *f2dHistAsMCResPtXiPlus; | |
227 | TH2F *f2dHistAsMCResPtOmegaMinus; | |
228 | TH2F *f2dHistAsMCResPtOmegaPlus; | |
229 | // Resolution in R(2D) as function of generated R | |
230 | TH2F *f2dHistAsMCResRXiMinus; | |
231 | TH2F *f2dHistAsMCResRXiPlus; | |
232 | TH2F *f2dHistAsMCResROmegaMinus; | |
233 | TH2F *f2dHistAsMCResROmegaPlus; | |
234 | // Resolution in phi as function of generated Pt | |
235 | TH2F *f2dHistAsMCResPhiXiMinus; | |
236 | TH2F *f2dHistAsMCResPhiXiPlus; | |
237 | TH2F *f2dHistAsMCResPhiOmegaMinus; | |
238 | TH2F *f2dHistAsMCResPhiOmegaPlus; | |
239 | // Correlation between proton (antiproton) daughter MC pt and Xi/Omega MC pt (to apply Geat/Fluka correction) | |
240 | TH2F *f2dHistAsMCptProtonMCptXiMinus; | |
241 | TH2F *f2dHistAsMCptAntiprotonMCptXiPlus; | |
242 | TH2F *f2dHistAsMCptProtonMCptOmegaMinus; | |
243 | TH2F *f2dHistAsMCptAntiprotonMCptOmegaPlus; | |
244 | // QA plots | |
245 | TH1F *fHistV0toXiCosineOfPointingAngle; | |
246 | TH2F *fHistV0CosineOfPointingAnglevsPtXi; | |
247 | TH2F *fHistV0CosineOfPointingAnglevsPtOmega; | |
248 | ||
249 | // Containers | |
250 | AliCFContainer *fCFContCascadePIDAsXiMinus; | |
251 | AliCFContainer *fCFContCascadePIDAsXiPlus; | |
252 | AliCFContainer *fCFContCascadePIDAsOmegaMinus; | |
253 | AliCFContainer *fCFContCascadePIDAsOmegaPlus; | |
254 | AliCFContainer *fCFContAsCascadeCuts; | |
255 | ||
256 | ||
257 | ||
258 | AliAnalysisTaskCheckPerformanceCascadepp276(const AliAnalysisTaskCheckPerformanceCascadepp276&); // not implemented | |
259 | AliAnalysisTaskCheckPerformanceCascadepp276& operator=(const AliAnalysisTaskCheckPerformanceCascadepp276&); // not implemented | |
260 | ||
261 | ClassDef(AliAnalysisTaskCheckPerformanceCascadepp276, 8); | |
262 | }; | |
263 | ||
264 | #endif |