]>
Commit | Line | Data |
---|---|---|
bcb6ffdb | 1 | /************************************************************************** |
2 | * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
3 | * * | |
4 | * Author: The ALICE Off-line Project. * | |
5 | * Contributors are mentioned in the code where appropriate. * | |
6 | * * | |
7 | * Permission to use, copy, modify and distribute this software and its * | |
8 | * documentation strictly for non-commercial purposes is hereby granted * | |
9 | * without fee, provided that the above copyright notice appears in all * | |
10 | * copies and that both the copyright notice and this permission notice * | |
11 | * appear in the supporting documentation. The authors make no claims * | |
12 | * about the suitability of this software for any purpose. It is * | |
13 | * provided "as is" without express or implied warranty. * | |
14 | **************************************************************************/ | |
15 | ||
16 | // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |
17 | // | |
18 | // Modified version of AliAnalysisTaskCheckCascade.h | |
19 | // Used bits of code from AliAnalysisTaskCheckPerformanceStrange | |
20 | // | |
21 | // --- David Dobrigkeit Chinellato | |
22 | // | |
23 | // +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | |
24 | ||
25 | #ifndef ALIANALYSISTASKEXTRACTPERFORMANCEV0_H | |
26 | #define ALIANALYSISTASKEXTRACTPERFORMANCEV0_H | |
27 | ||
28 | class TList; | |
29 | class TH1F; | |
30 | class TH2F; | |
31 | class TH3F; | |
32 | class TVector3; | |
33 | class THnSparse; | |
34 | ||
35 | class AliESDpid; | |
36 | class AliESDtrackCuts; | |
37 | class AliESDEvent; | |
38 | class AliPhysicsSelection; | |
39 | class AliCFContainer; | |
40 | ||
41 | //#include "TString.h" | |
42 | //#include "AliESDtrackCuts.h" | |
43 | #include "AliAnalysisTaskSE.h" | |
44 | ||
45 | class AliAnalysisTaskExtractPerformanceV0 : public AliAnalysisTaskSE { | |
46 | public: | |
47 | AliAnalysisTaskExtractPerformanceV0(); | |
48 | AliAnalysisTaskExtractPerformanceV0(const char *name); | |
49 | virtual ~AliAnalysisTaskExtractPerformanceV0(); | |
50 | ||
51 | virtual void UserCreateOutputObjects(); | |
52 | virtual void UserExec(Option_t *option); | |
53 | virtual void Terminate(Option_t *); | |
54 | Double_t MyRapidity(Double_t rE, Double_t rPz) const; | |
4f8ed367 | 55 | void CheckChargeV0(AliESDv0 *thisv0); |
548bd092 | 56 | |
57 | void SetIsNuclear (Bool_t lIsNuclear = kTRUE ) { fkIsNuclear = lIsNuclear; } | |
58 | void SetIsLowEnergyPP (Bool_t lLowEnergyPP = kTRUE ) { fkLowEnergyPP = lLowEnergyPP; } | |
59 | void SetUseOnTheFly (Bool_t lUseOnTheFly = kTRUE ) { fkUseOnTheFly = lUseOnTheFly; } | |
7f4db1cd | 60 | void SetTakeAllTracks (Bool_t lTakeAllTracks = kTRUE ) { fkTakeAllTracks = lTakeAllTracks; } |
bcb6ffdb | 61 | |
62 | private: | |
63 | // Note : In ROOT, "//!" means "do not stream the data from Master node to Worker node" ... | |
64 | // your data member object is created on the worker nodes and streaming is not needed. | |
65 | // http://root.cern.ch/download/doc/11InputOutput.pdf, page 14 | |
66 | TList *fListHistV0; //! List of Cascade histograms | |
c228a5af | 67 | TTree *fTree; //! Output Tree, V0 |
bcb6ffdb | 68 | |
548bd092 | 69 | AliPIDResponse *fPIDResponse; // PID response object |
76029adc | 70 | AliESDtrackCuts *fESDtrackCuts; // ESD track cuts used for primary track definition |
548bd092 | 71 | |
72 | //Objects Controlling Task Behaviour | |
73 | ||
74 | Bool_t fkIsNuclear; //if true, replace multiplicity est. by centrality (default FALSE) | |
75 | Bool_t fkLowEnergyPP; //if true, skip FASTOnly (default FALSE) | |
76 | Bool_t fkUseOnTheFly; //if true, will use On-the-fly V0s instead of Offline V0s (default FALSE) | |
7f4db1cd | 77 | Bool_t fkTakeAllTracks; // if true, no TPC crossed rows and ratio cut |
bcb6ffdb | 78 | |
c228a5af | 79 | //=========================================================================================== |
80 | // Variables for Tree, V0s | |
81 | //=========================================================================================== | |
bcb6ffdb | 82 | Int_t fTreeVariablePrimaryStatus; //! |
83 | Int_t fTreeVariablePrimaryStatusMother; //! | |
84 | Float_t fTreeVariableChi2V0; //! | |
85 | Float_t fTreeVariableDcaV0Daughters; //! | |
86 | Float_t fTreeVariableDcaV0ToPrimVertex; //! | |
87 | Float_t fTreeVariableDcaPosToPrimVertex; //! | |
88 | Float_t fTreeVariableDcaNegToPrimVertex; //! | |
89 | Float_t fTreeVariableV0CosineOfPointingAngle; //! | |
90 | Float_t fTreeVariableV0Radius; //! | |
91 | Float_t fTreeVariablePt; //! | |
92 | Float_t fTreeVariablePtMC; //! | |
93 | Float_t fTreeVariableRapK0Short; //! | |
94 | Float_t fTreeVariableRapLambda; //! | |
95 | Float_t fTreeVariableRapMC; //! | |
96 | Float_t fTreeVariableInvMassK0s; //! | |
97 | Float_t fTreeVariableInvMassLambda; //! | |
98 | Float_t fTreeVariableInvMassAntiLambda; //! | |
99 | Float_t fTreeVariableAlphaV0; //! | |
100 | Float_t fTreeVariablePtArmV0;//! | |
101 | Float_t fTreeVariableNegTotMomentum; //! | |
102 | Float_t fTreeVariablePosTotMomentum; //! | |
103 | Float_t fTreeVariableNegTransvMomentum; //! | |
104 | Float_t fTreeVariablePosTransvMomentum; //! | |
105 | Float_t fTreeVariableNegTransvMomentumMC; //! | |
106 | Float_t fTreeVariablePosTransvMomentumMC; //! | |
107 | ||
108 | Float_t fTreeVariableNSigmasPosProton; //! | |
109 | Float_t fTreeVariableNSigmasPosPion; //! | |
110 | Float_t fTreeVariableNSigmasNegProton; //! | |
111 | Float_t fTreeVariableNSigmasNegPion; //! | |
112 | ||
113 | Float_t fTreeVariablePtMother; //! | |
114 | Float_t fTreeVariableV0CreationRadius; //! | |
115 | Int_t fTreeVariablePID; //! | |
116 | Int_t fTreeVariablePIDPositive; //! | |
117 | Int_t fTreeVariablePIDNegative; //! | |
118 | Int_t fTreeVariablePIDMother; //! | |
119 | Int_t fTreeVariableIndexStatus; //! | |
120 | Int_t fTreeVariableIndexStatusMother; //! | |
121 | ||
0eebce93 | 122 | Int_t fTreeVariableRunNumber; //! |
123 | ULong64_t fTreeVariableEventNumber; //! | |
124 | ||
bcb6ffdb | 125 | //Note: TDistOverTotMom needs a mass hypothesis to be converted to proper decaylength. |
126 | Float_t fTreeVariableDistOverTotMom;//! | |
127 | ||
128 | Float_t fTreeVariablePosEta; //! | |
129 | Float_t fTreeVariableNegEta; //! | |
130 | ||
a18e0a39 | 131 | Float_t fTreeVariableVertexZ; //! |
132 | ||
bcb6ffdb | 133 | Int_t fTreeVariableLeastNbrCrossedRows;//! |
134 | Float_t fTreeVariableLeastRatioCrossedRowsOverFindable;//! | |
135 | Int_t fTreeVariableMultiplicity;//! | |
a18e0a39 | 136 | Int_t fTreeVariableMultiplicityMC;//! |
bcb6ffdb | 137 | |
11960ef4 | 138 | Float_t fTreeVariableV0x; //! |
139 | Float_t fTreeVariableV0y; //! | |
140 | Float_t fTreeVariableV0z; //! | |
141 | ||
142 | Float_t fTreeVariableV0Px; //! | |
143 | Float_t fTreeVariableV0Py; //! | |
144 | Float_t fTreeVariableV0Pz; //! | |
145 | ||
146 | Float_t fTreeVariableMCV0x; //! | |
147 | Float_t fTreeVariableMCV0y; //! | |
148 | Float_t fTreeVariableMCV0z; //! | |
149 | ||
150 | Float_t fTreeVariableMCV0Px; //! | |
151 | Float_t fTreeVariableMCV0Py; //! | |
152 | Float_t fTreeVariableMCV0Pz; //! | |
153 | ||
653265df | 154 | Float_t fTreeVariablePVx; //! |
155 | Float_t fTreeVariablePVy; //! | |
156 | Float_t fTreeVariablePVz; //! | |
157 | ||
158 | Float_t fTreeVariableMCPVx; //! | |
159 | Float_t fTreeVariableMCPVy; //! | |
160 | Float_t fTreeVariableMCPVz; //! | |
161 | ||
c228a5af | 162 | //=========================================================================================== |
163 | // Histograms | |
164 | //=========================================================================================== | |
165 | ||
bcb6ffdb | 166 | TH1F *fHistV0MultiplicityBeforeTrigSel; //! V0 multiplicity distribution |
167 | TH1F *fHistV0MultiplicityForTrigEvt; //! V0 multiplicity distribution | |
168 | TH1F *fHistV0MultiplicityForSelEvt; //! V0 multiplicity distribution | |
169 | TH1F *fHistV0MultiplicityForSelEvtNoTPCOnly; //! V0 multiplicity distribution | |
170 | TH1F *fHistV0MultiplicityForSelEvtNoTPCOnlyNoPileup; //! V0 multiplicity distribution | |
171 | ||
172 | TH1F *fHistMultiplicityBeforeTrigSel; //! multiplicity distribution | |
173 | TH1F *fHistMultiplicityForTrigEvt; //! multiplicity distribution | |
174 | TH1F *fHistMultiplicity; //! multiplicity distribution | |
175 | TH1F *fHistMultiplicityNoTPCOnly; //! multiplicity distribution | |
176 | TH1F *fHistMultiplicityNoTPCOnlyNoPileup; //! multiplicity distribution | |
177 | ||
1d94e33b | 178 | //Raw Data for J/Psi paper Technique |
179 | TH2F *f2dHistMultiplicityVsTrueBeforeTrigSel; //! multiplicity distribution | |
180 | TH2F *f2dHistMultiplicityVsTrueForTrigEvt; //! multiplicity distribution | |
181 | TH2F *f2dHistMultiplicityVsTrue; //! multiplicity distribution | |
182 | TH2F *f2dHistMultiplicityVsTrueNoTPCOnly; //! multiplicity distribution | |
183 | TH2F *f2dHistMultiplicityVsTrueNoTPCOnlyNoPileup; //! multiplicity distribution | |
184 | ||
185 | //Raw Data for Vertex Z position estimator change | |
186 | TH2F *f2dHistMultiplicityVsVertexZBeforeTrigSel; //! multiplicity distribution | |
187 | TH2F *f2dHistMultiplicityVsVertexZForTrigEvt; //! multiplicity distribution | |
188 | TH2F *f2dHistMultiplicityVsVertexZ; //! multiplicity distribution | |
189 | TH2F *f2dHistMultiplicityVsVertexZNoTPCOnly; //! multiplicity distribution | |
190 | TH2F *f2dHistMultiplicityVsVertexZNoTPCOnlyNoPileup; //! multiplicity distribution | |
191 | ||
192 | TH1F *fHistGenVertexZBeforeTrigSel; //! multiplicity distribution | |
193 | TH1F *fHistGenVertexZForTrigEvt; //! multiplicity distribution | |
194 | TH1F *fHistGenVertexZ; //! multiplicity distribution | |
195 | TH1F *fHistGenVertexZNoTPCOnly; //! multiplicity distribution | |
196 | TH1F *fHistGenVertexZNoTPCOnlyNoPileup; //! multiplicity distribution | |
197 | ||
bcb6ffdb | 198 | //---> Filled At Analysis Scope |
199 | ||
200 | TH3F *f3dHistPrimAnalysisPtVsYVsMultLambda; //! Lambda | |
201 | TH3F *f3dHistPrimAnalysisPtVsYVsMultAntiLambda; //! AntiLambda | |
202 | TH3F *f3dHistPrimAnalysisPtVsYVsMultK0Short; //! K0Short | |
203 | ||
204 | //---> Containers for monte carlo information for calculating efficiency! | |
205 | ||
206 | TH3F *f3dHistPrimRawPtVsYVsMultLambda; //! Lambda | |
207 | TH3F *f3dHistPrimRawPtVsYVsMultAntiLambda; //! AntiLambda | |
208 | TH3F *f3dHistPrimRawPtVsYVsMultK0Short; //! K0Short | |
209 | ||
a18e0a39 | 210 | TH3F *f3dHistPrimRawPtVsYVsMultMCLambda; //! Lambda |
211 | TH3F *f3dHistPrimRawPtVsYVsMultMCAntiLambda; //! AntiLambda | |
212 | TH3F *f3dHistPrimRawPtVsYVsMultMCK0Short; //! K0Short | |
213 | ||
214 | TH3F *f3dHistPrimRawPtVsYVsVertexZLambda; //! Lambda | |
215 | TH3F *f3dHistPrimRawPtVsYVsVertexZAntiLambda; //! AntiLambda | |
216 | TH3F *f3dHistPrimRawPtVsYVsVertexZK0Short; //! K0Short | |
217 | ||
7e81bb32 | 218 | TH3F *f3dHistPrimCloseToPVPtVsYVsMultLambda; //! Lambda |
219 | TH3F *f3dHistPrimCloseToPVPtVsYVsMultAntiLambda; //! AntiLambda | |
220 | TH3F *f3dHistPrimCloseToPVPtVsYVsMultK0Short; //! K0Short | |
221 | ||
bcb6ffdb | 222 | //---> Filled vs Decay Length |
223 | ||
224 | TH3F *f3dHistPrimRawPtVsYVsDecayLengthLambda; //! Lambda | |
225 | TH3F *f3dHistPrimRawPtVsYVsDecayLengthAntiLambda; //! AntiLambda | |
226 | TH3F *f3dHistPrimRawPtVsYVsDecayLengthK0Short; //! K0Short | |
227 | ||
228 | //---> Needed for FeedDown Corrections | |
229 | ||
230 | TH3F *f3dHistGenPtVsYVsMultXiMinus; //! Generated Xi- Distrib | |
231 | TH3F *f3dHistGenPtVsYVsMultXiPlus; //! Generated Xi+ Distrib | |
c228a5af | 232 | TH3F *f3dHistGenPtVsYVsMultOmegaMinus; //! Generated Omega- Distrib |
233 | TH3F *f3dHistGenPtVsYVsMultOmegaPlus; //! Generated Omega+ Distrib | |
234 | ||
235 | TH3F *f3dHistGenSelectedPtVsYVsMultXiMinus; //! Generated Xi- Distrib, at event selection level | |
236 | TH3F *f3dHistGenSelectedPtVsYVsMultXiPlus; //! Generated Xi+ Distrib, at event selection level | |
237 | TH3F *f3dHistGenSelectedPtVsYVsMultOmegaMinus; //! Generated Omega- Distrib, at event selection level | |
238 | TH3F *f3dHistGenSelectedPtVsYVsMultOmegaPlus; //! Generated Omega+ Distrib, at event selection level | |
bcb6ffdb | 239 | |
240 | TH1F *fHistPVx; //! PVx distrib | |
241 | TH1F *fHistPVy; //! PVy distrib | |
242 | TH1F *fHistPVz; //! PVz distrib | |
243 | TH1F *fHistPVxAnalysis; //! PVx distrib | |
244 | TH1F *fHistPVyAnalysis; //! PVy distrib | |
245 | TH1F *fHistPVzAnalysis; //! PVz distrib | |
246 | TH1F *fHistPVxAnalysisHasHighPtLambda; //! PVx distrib | |
247 | TH1F *fHistPVyAnalysisHasHighPtLambda; //! PVy distrib | |
248 | TH1F *fHistPVzAnalysisHasHighPtLambda; //! PVz distrib | |
249 | ||
4f8ed367 | 250 | TH1F *fHistSwappedV0Counter; //! Swapped v0 counter |
251 | ||
bcb6ffdb | 252 | AliAnalysisTaskExtractPerformanceV0(const AliAnalysisTaskExtractPerformanceV0&); // not implemented |
253 | AliAnalysisTaskExtractPerformanceV0& operator=(const AliAnalysisTaskExtractPerformanceV0&); // not implemented | |
254 | ||
255 | ClassDef(AliAnalysisTaskExtractPerformanceV0, 11); | |
256 | }; | |
257 | ||
258 | #endif |