]>
Commit | Line | Data |
---|---|---|
074625d9 | 1 | /********************************************************************* |
2 | * * | |
3 | * Configfemtoanalysis.C - configuration macro for the femtoscopic * | |
4 | * analysis, meant as a QA process for two-particle effects * | |
5 | * * | |
6 | * Author: Adam Kisiel (Adam.Kisiel@cern.ch) * | |
7 | * * | |
8 | *********************************************************************/ | |
9 | ||
10 | #if !defined(__CINT__) || defined(__MAKECINT_) | |
11 | #include "AliFemtoManager.h" | |
12 | #include "AliFemtoEventReaderESDChain.h" | |
13 | #include "AliFemtoEventReaderESDChainKine.h" | |
14 | #include "AliFemtoEventReaderAODChain.h" | |
15 | #include "AliFemtoSimpleAnalysis.h" | |
16 | #include "AliFemtoBasicEventCut.h" | |
17 | #include "AliFemtoESDTrackCut.h" | |
18 | #include "AliFemtoCorrFctn.h" | |
19 | #include "AliFemtoCutMonitorParticleYPt.h" | |
20 | #include "AliFemtoCutMonitorParticleVertPos.h" | |
21 | #include "AliFemtoCutMonitorParticleMomRes.h" | |
22 | #include "AliFemtoCutMonitorParticlePID.h" | |
23 | #include "AliFemtoCutMonitorEventMult.h" | |
24 | #include "AliFemtoCutMonitorEventVertex.h" | |
25 | #include "AliFemtoShareQualityTPCEntranceSepPairCut.h" | |
26 | #include "AliFemtoPairCutAntiGamma.h" | |
27 | #include "AliFemtoPairCutRadialDistance.h" | |
28 | #include "AliFemtoQinvCorrFctn.h" | |
29 | #include "AliFemtoCorrFctnNonIdDR.h" | |
30 | #include "AliFemtoShareQualityCorrFctn.h" | |
31 | #include "AliFemtoTPCInnerCorrFctn.h" | |
32 | #include "AliFemtoVertexMultAnalysis.h" | |
33 | #include "AliFemtoCorrFctn3DSpherical.h" | |
34 | #include "AliFemtoChi2CorrFctn.h" | |
35 | #include "AliFemtoCorrFctnTPCNcls.h" | |
36 | #include "AliFemtoBPLCMS3DCorrFctn.h" | |
37 | #include "AliFemtoCorrFctn3DLCMSSym.h" | |
38 | #include "AliFemtoModelBPLCMSCorrFctn.h" | |
39 | #include "AliFemtoModelCorrFctn3DSpherical.h" | |
40 | #include "AliFemtoModelGausLCMSFreezeOutGenerator.h" | |
41 | #include "AliFemtoModelGausRinvFreezeOutGenerator.h" | |
42 | #include "AliFemtoModelManager.h" | |
43 | #include "AliFemtoModelWeightGeneratorBasic.h" | |
44 | #include "AliFemtoModelWeightGeneratorLednicky.h" | |
45 | #include "AliFemtoCorrFctnDirectYlm.h" | |
46 | #include "AliFemtoModelCorrFctnDirectYlm.h" | |
47 | #include "AliFemtoModelCorrFctnSource.h" | |
48 | #include "AliFemtoCutMonitorParticlePtPDG.h" | |
49 | #include "AliFemtoKTPairCut.h" | |
50 | #endif | |
51 | ||
52 | //________________________________________________________________________ | |
53 | AliFemtoManager* ConfigFemtoAnalysis() { | |
54 | ||
55 | double PionMass = 0.13956995; | |
56 | double KaonMass = 0.493677; | |
57 | double ProtonMass = 0.938272013; | |
58 | ||
59 | double psi = TMath::Pi()/2.; | |
60 | double psid = TMath::Pi()/6.; | |
61 | ||
62 | int runepvzero[7] = {1, 1, 1, 1, 1, 1, 1}; | |
63 | double epvzerobins[7] = {-psi, -psi+psid, -psi+2*psid, -psi+3*psid, -psi+4*psid, -psi+5*psid, -psi+6*psid}; | |
64 | ||
65 | int runmults[10] = {1, 0, 0, 0, 0, 0, 0, 0, 0, 0}; | |
66 | int multbins[11] = {0.001, 50, 100, 200, 300, 400, 500, 600, 700, 800, 900}; | |
67 | ||
68 | int runch[4] = {1, 1, 1, 1}; | |
69 | const char *chrgs[4] = { "PprimPsec", "APprimAPsec", "PprimAPsec", "PsecAPprim" }; | |
70 | ||
71 | int runktdep = 1; | |
72 | double ktrng[3] = {0.01, 1.0, 100.0}; | |
73 | ||
74 | int numOfMultBins = 10; | |
75 | int numOfChTypes = 4; | |
76 | int numOfkTbins = 2; | |
77 | int numOfEPvzero = 7; | |
78 | ||
79 | int runqinv = 1; | |
80 | int runshlcms = 0;// 0:PRF(PAP), 1:LCMS(PP,APAP) | |
81 | ||
82 | int runtype = 2; // Types 0 - global, 1 - ITS only, 2 - TPC Inner | |
83 | int isrealdata = 1; | |
84 | ||
85 | // int gammacut = 1; | |
86 | ||
87 | double shqmax = 1.0; | |
88 | int nbinssh = 100; | |
89 | ||
90 | AliFemtoEventReaderAODChain *Reader = new AliFemtoEventReaderAODChain(); | |
91 | Reader->SetFilterBit(7); | |
92 | Reader->SetCentralityPreSelection(0.001, 510); | |
93 | Reader->SetEPVZERO(kTRUE); | |
94 | ||
95 | AliFemtoManager* Manager = new AliFemtoManager(); | |
96 | Manager->SetEventReader(Reader); | |
97 | ||
98 | AliFemtoVertexMultAnalysis *anetaphitpc[10*4*2]; | |
99 | AliFemtoBasicEventCut *mecetaphitpc[10*4*2]; | |
100 | AliFemtoCutMonitorEventMult *cutPassEvMetaphitpc[50]; | |
101 | AliFemtoCutMonitorEventMult *cutFailEvMetaphitpc[50]; | |
102 | // AliFemtoCutMonitorEventVertex *cutPassEvVetaphitpc[50]; | |
103 | // AliFemtoCutMonitorEventVertex *cutFailEvVetaphitpc[50]; | |
104 | AliFemtoESDTrackCut *dtc1etaphitpc[50]; | |
105 | AliFemtoESDTrackCut *dtc2etaphitpc[50]; | |
106 | AliFemtoESDTrackCut *dtc3etaphitpc[50]; | |
107 | AliFemtoESDTrackCut *dtc4etaphitpc[50]; | |
108 | AliFemtoCutMonitorParticleYPt *cutPass1YPtetaphitpc[50]; | |
109 | AliFemtoCutMonitorParticleYPt *cutFail1YPtetaphitpc[50]; | |
110 | AliFemtoCutMonitorParticlePID *cutPass1PIDetaphitpc[50]; | |
111 | AliFemtoCutMonitorParticlePID *cutFail1PIDetaphitpc[50]; | |
112 | AliFemtoCutMonitorParticleYPt *cutPass2YPtetaphitpc[50]; | |
113 | AliFemtoCutMonitorParticleYPt *cutFail2YPtetaphitpc[50]; | |
114 | AliFemtoCutMonitorParticlePID *cutPass2PIDetaphitpc[50]; | |
115 | AliFemtoCutMonitorParticlePID *cutFail2PIDetaphitpc[50]; | |
116 | AliFemtoCutMonitorParticleYPt *cutPass3YPtetaphitpc[50]; | |
117 | AliFemtoCutMonitorParticleYPt *cutFail3YPtetaphitpc[50]; | |
118 | AliFemtoCutMonitorParticlePID *cutPass3PIDetaphitpc[50]; | |
119 | AliFemtoCutMonitorParticlePID *cutFail3PIDetaphitpc[50]; | |
120 | AliFemtoCutMonitorParticleYPt *cutPass4YPtetaphitpc[50]; | |
121 | AliFemtoCutMonitorParticleYPt *cutFail4YPtetaphitpc[50]; | |
122 | AliFemtoCutMonitorParticlePID *cutPass4PIDetaphitpc[50]; | |
123 | AliFemtoCutMonitorParticlePID *cutFail4PIDetaphitpc[50]; | |
124 | // AliFemtoPairCutAntiGamma *sqpcetaphitpcdiff[10*3]; | |
125 | // AliFemtoShareQualityTPCEntranceSepPairCut *sqpcetaphitpcsame[10*3]; | |
126 | //AliFemtoPairCutAntiGamma *sqpcetaphitpc[10*3]; | |
127 | AliFemtoPairCutRadialDistance *sqpcetaphitpc[50]; | |
128 | // AliFemtoChi2CorrFctn *cchiqinvetaphitpc[20*2]; | |
129 | AliFemtoKTPairCut *ktpcuts[50*2]; | |
130 | AliFemtoCorrFctnDirectYlm *cylmtpc[50]; | |
131 | AliFemtoCorrFctnDirectYlm *cylmkttpc[50*2]; | |
132 | AliFemtoCorrFctnDirectYlm *cylmetaphitpc[10*3]; | |
133 | AliFemtoQinvCorrFctn *cqinvkttpc[50*2]; | |
134 | AliFemtoQinvCorrFctn *cqinvtpc[50]; | |
135 | AliFemtoCorrFctnNonIdDR *ckstartpc[50]; | |
136 | AliFemtoCorrFctnNonIdDR *ckstarkttpc[50*2]; | |
137 | // AliFemtoCorrFctnDEtaDPhi *cdedpetaphi[50]; | |
138 | ||
139 | // AliFemtoCorrFctn3DLCMSSym *cq3dlcmskttpc[20*2]; | |
140 | // AliFemtoCorrFctnTPCNcls *cqinvnclstpc[20]; | |
141 | // AliFemtoShareQualityCorrFctn *cqinvsqtpc[20*10]; | |
142 | // AliFemtoChi2CorrFctn *cqinvchi2tpc[20]; | |
143 | // AliFemtoTPCInnerCorrFctn *cqinvinnertpc[20*10]; | |
144 | ||
145 | // *** Third QA task - HBT analysis with all pair cuts off, TPC only *** | |
146 | // *** Begin pion-pion (positive) analysis *** | |
147 | int aniter = 0; | |
148 | ||
149 | for (int imult = 0; imult < numOfMultBins; imult++) { | |
150 | if (runmults[imult]) { | |
151 | ||
152 | for (int ichg = 0; ichg < numOfChTypes; ichg++) { | |
153 | if (runch[ichg]) { | |
154 | ||
155 | for (int iepvzero = 0; iepvzero < numOfEPvzero; iepvzero++) { | |
156 | if (runepvzero[iepvzero]) { | |
157 | ||
158 | aniter = imult * numOfChTypes + ichg * numOfEPvzero + iepvzero; | |
159 | // aniter = ichg * numOfMultBins + imult * numOfEPvzero + iepvzero; | |
160 | ||
161 | // cout << "aniter = " << aniter << endl; | |
162 | // aniter = ichg * numOfMultBins + imult; | |
163 | ||
164 | // if (ichg == 2) | |
165 | // runshlcms = 0; | |
166 | // else | |
167 | // runshlcms = 1; | |
168 | ||
169 | ||
170 | //________________________ | |
171 | ||
172 | anetaphitpc[aniter] = new AliFemtoVertexMultAnalysis(8, -8.0, 8.0, 4, multbins[imult], multbins[imult+1]); | |
173 | anetaphitpc[aniter]->SetNumEventsToMix(10); | |
174 | anetaphitpc[aniter]->SetMinSizePartCollection(1); | |
175 | anetaphitpc[aniter]->SetVerboseMode(kFALSE); | |
176 | ||
177 | mecetaphitpc[aniter] = new AliFemtoBasicEventCut(); | |
178 | mecetaphitpc[aniter]->SetEventMult(0.001,100000); | |
179 | mecetaphitpc[aniter]->SetVertZPos(-8,8); | |
180 | ||
181 | if (iepvzero == 6) | |
182 | mecetaphitpc[aniter]->SetEPVZERO(epvzerobins[0],epvzerobins[6]); | |
183 | else | |
184 | mecetaphitpc[aniter]->SetEPVZERO(epvzerobins[iepvzero],epvzerobins[iepvzero+1]); | |
185 | ||
186 | ||
187 | // cutPassEvMetaphitpc[aniter] = new AliFemtoCutMonitorEventMult(Form("cutPass%stpcM%iPsi%i", chrgs[ichg], imult, iepvzero)); | |
188 | // cutFailEvMetaphitpc[aniter] = new AliFemtoCutMonitorEventMult(Form("cutFail%stpcM%iPsi%i", chrgs[ichg], imult, iepvzero)); | |
189 | // mecetaphitpc[aniter]->AddCutMonitor(cutPassEvMetaphitpc[aniter], cutFailEvMetaphitpc[aniter]); | |
190 | ||
191 | // cutPassEvVetaphitpc[aniter] = new AliFemtoCutMonitorEventVertex(Form("cutPass%stpcM%i", chrgs[ichg], imult)); | |
192 | // cutFailEvVetaphitpc[aniter] = new AliFemtoCutMonitorEventVertex(Form("cutFail%stpcM%i", chrgs[ichg], imult)); | |
193 | // mecetaphitpc[aniter]->AddCutMonitor(cutPassEvVetaphitpc[aniter], cutFailEvVetaphitpc[aniter]); | |
194 | ||
195 | dtc1etaphitpc[aniter] = new AliFemtoESDTrackCut(); | |
196 | dtc2etaphitpc[aniter] = new AliFemtoESDTrackCut(); | |
197 | dtc3etaphitpc[aniter] = new AliFemtoESDTrackCut(); | |
198 | dtc4etaphitpc[aniter] = new AliFemtoESDTrackCut(); | |
199 | ||
200 | if (ichg == 0 || ichg == 2) { | |
201 | dtc1etaphitpc[aniter]->SetCharge(1.0); | |
202 | dtc1etaphitpc[aniter]->SetPt(0.5,5.0); | |
203 | dtc1etaphitpc[aniter]->SetEta(-0.8,0.8); | |
204 | dtc1etaphitpc[aniter]->SetMass(ProtonMass); | |
205 | dtc1etaphitpc[aniter]->SetMostProbableProton(); | |
206 | } | |
207 | ||
208 | if (ichg == 0 || ichg == 3) { | |
209 | dtc2etaphitpc[aniter]->SetCharge(1.0); | |
210 | dtc2etaphitpc[aniter]->SetPt(0.5,5.0); | |
211 | dtc2etaphitpc[aniter]->SetEta(-0.8,0.8); | |
212 | dtc2etaphitpc[aniter]->SetMass(ProtonMass); | |
213 | dtc2etaphitpc[aniter]->SetMostProbableProton(); | |
214 | } | |
215 | ||
216 | if (ichg == 1 || ichg == 3) { | |
217 | dtc3etaphitpc[aniter]->SetCharge(-1.0); | |
218 | dtc3etaphitpc[aniter]->SetPt(0.3,5.0); | |
219 | dtc3etaphitpc[aniter]->SetEta(-0.8,0.8); | |
220 | dtc3etaphitpc[aniter]->SetMass(ProtonMass); | |
221 | dtc3etaphitpc[aniter]->SetMostProbableProton(); | |
222 | } | |
223 | ||
224 | if (ichg == 1 || ichg == 2) { | |
225 | dtc4etaphitpc[aniter]->SetCharge(-1.0); | |
226 | dtc4etaphitpc[aniter]->SetPt(0.3,5.0); | |
227 | dtc4etaphitpc[aniter]->SetEta(-0.8,0.8); | |
228 | dtc4etaphitpc[aniter]->SetMass(ProtonMass); | |
229 | dtc4etaphitpc[aniter]->SetMostProbableProton(); | |
230 | } | |
231 | ||
232 | // Track quality cuts | |
233 | ||
234 | if (runtype == 0) { | |
235 | dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCrefit|AliESDtrack::kITSrefit); | |
236 | // dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCrefit); | |
237 | // dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kITSrefit); | |
238 | dtc1etaphitpc[aniter]->SetminTPCncls(80); | |
239 | dtc1etaphitpc[aniter]->SetRemoveKinks(kTRUE); | |
240 | dtc1etaphitpc[aniter]->SetLabel(kFALSE); | |
241 | // dtc1etaphitpc[aniter]->SetMaxITSChiNdof(6.0); | |
242 | dtc1etaphitpc[aniter]->SetMaxTPCChiNdof(4.0); | |
243 | dtc1etaphitpc[aniter]->SetMaxImpactXY(0.2); | |
244 | // dtc1etaphitpc[aniter]->SetMaxImpactXYPtDep(0.0182, 0.0350, -1.01); | |
245 | dtc1etaphitpc[aniter]->SetMaxImpactZ(0.15); | |
246 | // dtc1etaphitpc[aniter]->SetMaxSigmaToVertex(6.0); | |
247 | } | |
248 | else if (runtype == 1) { | |
249 | // dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCrefit|AliESDtrack::kITSrefit); | |
250 | // dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCrefit); | |
251 | // dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kITSrefit|AliESDtrack::kITSpureSA); | |
252 | // dtc1etaphitpc[aniter]->SetminTPCncls(70); | |
253 | dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kITSrefit); | |
254 | dtc1etaphitpc[aniter]->SetRemoveKinks(kTRUE); | |
255 | dtc1etaphitpc[aniter]->SetLabel(kFALSE); | |
256 | // dtc1etaphitpc[aniter]->SetMaxITSChiNdof(6.0); | |
257 | // dtc1etaphitpc[aniter]->SetMaxTPCChiNdof(6.0); | |
258 | dtc1etaphitpc[aniter]->SetMaxImpactXY(0.2); | |
259 | dtc1etaphitpc[aniter]->SetMaxImpactZ(0.25); | |
260 | // dtc1etaphitpc[aniter]->SetMaxSigmaToVertex(6.0); | |
261 | } | |
262 | else if (runtype == 2) { | |
263 | ||
264 | ||
265 | ||
266 | if (ichg == 0 || ichg == 2) { | |
267 | //dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCrefit|AliESDtrack::kITSrefit); | |
268 | dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCin); | |
269 | dtc1etaphitpc[aniter]->SetminTPCncls(80); | |
270 | dtc1etaphitpc[aniter]->SetRemoveKinks(kTRUE); | |
271 | dtc1etaphitpc[aniter]->SetLabel(kFALSE); | |
272 | dtc1etaphitpc[aniter]->SetMaxTPCChiNdof(4.0); | |
273 | //dtc1etaphitpc[aniter]->SetMaxImpactXY(0.1); // 2.4 0.1 | |
274 | dtc1etaphitpc[aniter]->SetMaxImpactXYPtDep(0.018, 0.035, -1.01); // DCA xy | |
275 | dtc1etaphitpc[aniter]->SetMaxImpactZ(2.0); // 2.0 0.1 | |
276 | ||
277 | } | |
278 | ||
279 | if (ichg == 0 || ichg == 3) { | |
280 | //dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCrefit|AliESDtrack::kITSrefit); | |
281 | dtc2etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCin); | |
282 | dtc2etaphitpc[aniter]->SetminTPCncls(80); | |
283 | dtc2etaphitpc[aniter]->SetRemoveKinks(kTRUE); | |
284 | dtc2etaphitpc[aniter]->SetLabel(kFALSE); | |
285 | dtc2etaphitpc[aniter]->SetMaxTPCChiNdof(4.0); | |
286 | dtc2etaphitpc[aniter]->SetMinImpactXY(0.1); // 2.4 0.1 | |
287 | //dtc2etaphitpc[aniter]->SetMaxImpactXYPtDep(0.018, 0.035, -1.01); // DCA xy | |
288 | dtc2etaphitpc[aniter]->SetMaxImpactZ(2.0); // 2.0 0.1 | |
289 | ||
290 | } | |
291 | ||
292 | if (ichg == 1 || ichg ==3) { | |
293 | //dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCrefit|AliESDtrack::kITSrefit); | |
294 | dtc3etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCin); | |
295 | dtc3etaphitpc[aniter]->SetminTPCncls(80); | |
296 | dtc3etaphitpc[aniter]->SetRemoveKinks(kTRUE); | |
297 | dtc3etaphitpc[aniter]->SetLabel(kFALSE); | |
298 | dtc3etaphitpc[aniter]->SetMaxTPCChiNdof(4.0); | |
299 | //dtc3etaphitpc[aniter]->SetMinImpactXY(0.1); // 2.4 0.1 | |
300 | dtc3etaphitpc[aniter]->SetMaxImpactXYPtDep(0.018, 0.035, -1.01); // DCA xy | |
301 | dtc3etaphitpc[aniter]->SetMaxImpactZ(2.0); // 2.0 0.1 | |
302 | ||
303 | } | |
304 | ||
305 | if (ichg == 1 || ichg ==2) { | |
306 | //dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCrefit|AliESDtrack::kITSrefit); | |
307 | dtc4etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCin); | |
308 | dtc4etaphitpc[aniter]->SetminTPCncls(80); | |
309 | dtc4etaphitpc[aniter]->SetRemoveKinks(kTRUE); | |
310 | dtc4etaphitpc[aniter]->SetLabel(kFALSE); | |
311 | dtc4etaphitpc[aniter]->SetMaxTPCChiNdof(4.0); | |
312 | dtc4etaphitpc[aniter]->SetMinImpactXY(0.1); // 2.4 0.1 | |
313 | //dtc4etaphitpc[aniter]->SetMaxImpactXYPtDep(0.018, 0.035, -1.01); // DCA xy | |
314 | dtc4etaphitpc[aniter]->SetMaxImpactZ(2.0); // 2.0 0.1 | |
315 | ||
316 | } | |
317 | ||
318 | ||
319 | } | |
320 | ||
321 | cutPass1YPtetaphitpc[aniter] = new AliFemtoCutMonitorParticleYPt(Form("cutPass1%stpcM%iPsi%i", chrgs[ichg], imult, iepvzero),ProtonMass); | |
322 | cutFail1YPtetaphitpc[aniter] = new AliFemtoCutMonitorParticleYPt(Form("cutFail1%stpcM%iPsi%i", chrgs[ichg], imult, iepvzero),ProtonMass); | |
323 | dtc1etaphitpc[aniter]->AddCutMonitor(cutPass1YPtetaphitpc[aniter], cutFail1YPtetaphitpc[aniter]); | |
324 | ||
325 | // cutPass1PIDetaphitpc[aniter] = new AliFemtoCutMonitorParticlePID(Form("cutPass1%stpcM%iPsi%i", chrgs[ichg], imult, iepvzero),2);//0-pion,1-kaon,2-proton | |
326 | // cutFail1PIDetaphitpc[aniter] = new AliFemtoCutMonitorParticlePID(Form("cutFail1%stpcM%iPsi%i", chrgs[ichg], imult , iepvzero),2); | |
327 | // dtc1etaphitpc[aniter]->AddCutMonitor(cutPass1PIDetaphitpc[aniter], cutFail1PIDetaphitpc[aniter]); | |
328 | ||
329 | ||
330 | cutPass2YPtetaphitpc[aniter] = new AliFemtoCutMonitorParticleYPt(Form("cutPass2%stpcM%iPsi%i", chrgs[ichg], imult, iepvzero),ProtonMass); | |
331 | cutFail2YPtetaphitpc[aniter] = new AliFemtoCutMonitorParticleYPt(Form("cutFail2%stpcM%iPsi%i", chrgs[ichg], imult, iepvzero),ProtonMass); | |
332 | dtc2etaphitpc[aniter]->AddCutMonitor(cutPass2YPtetaphitpc[aniter], cutFail2YPtetaphitpc[aniter]); | |
333 | ||
334 | // cutPass2PIDetaphitpc[aniter] = new AliFemtoCutMonitorParticlePID(Form("cutPass2%stpcM%iPsi%i", chrgs[ichg], imult, iepvzero),2);//0-pion,1-kaon,2-proton | |
335 | // cutFail2PIDetaphitpc[aniter] = new AliFemtoCutMonitorParticlePID(Form("cutFail2%stpcM%iPsi%i", chrgs[ichg], imult , iepvzero),2); | |
336 | // dtc2etaphitpc[aniter]->AddCutMonitor(cutPass2PIDetaphitpc[aniter], cutFail2PIDetaphitpc[aniter]); | |
337 | ||
338 | ||
339 | cutPass3YPtetaphitpc[aniter] = new AliFemtoCutMonitorParticleYPt(Form("cutPass3%stpcM%iPsi%i", chrgs[ichg], imult, iepvzero),ProtonMass); | |
340 | cutFail3YPtetaphitpc[aniter] = new AliFemtoCutMonitorParticleYPt(Form("cutFail3%stpcM%iPsi%i", chrgs[ichg], imult, iepvzero),ProtonMass); | |
341 | dtc3etaphitpc[aniter]->AddCutMonitor(cutPass3YPtetaphitpc[aniter], cutFail3YPtetaphitpc[aniter]); | |
342 | ||
343 | // cutPass3PIDetaphitpc[aniter] = new AliFemtoCutMonitorParticlePID(Form("cutPass3%stpcM%iPsi%i", chrgs[ichg], imult, iepvzero),2);//0-pion,1-kaon,2-proton | |
344 | // cutFail3PIDetaphitpc[aniter] = new AliFemtoCutMonitorParticlePID(Form("cutFail3%stpcM%iPsi%i", chrgs[ichg], imult , iepvzero),2); | |
345 | // dtc3etaphitpc[aniter]->AddCutMonitor(cutPass3PIDetaphitpc[aniter], cutFail3PIDetaphitpc[aniter]); | |
346 | ||
347 | cutPass4YPtetaphitpc[aniter] = new AliFemtoCutMonitorParticleYPt(Form("cutPass4%stpcM%iPsi%i", chrgs[ichg], imult, iepvzero),ProtonMass); | |
348 | cutFail4YPtetaphitpc[aniter] = new AliFemtoCutMonitorParticleYPt(Form("cutFail4%stpcM%iPsi%i", chrgs[ichg], imult, iepvzero),ProtonMass); | |
349 | dtc4etaphitpc[aniter]->AddCutMonitor(cutPass4YPtetaphitpc[aniter], cutFail4YPtetaphitpc[aniter]); | |
350 | ||
351 | // cutPass4PIDetaphitpc[aniter] = new AliFemtoCutMonitorParticlePID(Form("cutPass4%stpcM%iPsi%i", chrgs[ichg], imult, iepvzero),2);//0-pion,1-kaon,2-proton | |
352 | // cutFail4PIDetaphitpc[aniter] = new AliFemtoCutMonitorParticlePID(Form("cutFail4%stpcM%iPsi%i", chrgs[ichg], imult , iepvzero),2); | |
353 | // dtc4etaphitpc[aniter]->AddCutMonitor(cutPass4PIDetaphitpc[aniter], cutFail4PIDetaphitpc[aniter]); | |
354 | ||
355 | // if (ichg == 2){ | |
356 | // cutPass2PIDetaphitpc[aniter] = new AliFemtoCutMonitorParticlePID(Form("cutPass2%stpcM%i", chrgs[ichg], imult),2);//0-pion,1-kaon,2-proton | |
357 | // cutFail2PIDetaphitpc[aniter] = new AliFemtoCutMonitorParticlePID(Form("cutFail2%stpcM%i", chrgs[ichg], imult),2); | |
358 | // dtc2etaphitpc[aniter]->AddCutMonitor(cutPass2PIDetaphitpc[aniter], cutFail2PIDetaphitpc[aniter]); | |
359 | // } | |
360 | ||
361 | // sqpcetaphitpc[aniter] = new AliFemtoPairCutAntiGamma(); | |
362 | sqpcetaphitpc[aniter] = new AliFemtoPairCutRadialDistance(); | |
363 | ||
364 | if (runtype == 0) { | |
365 | sqpcetaphitpc[aniter]->SetShareQualityMax(1.0); | |
366 | sqpcetaphitpc[aniter]->SetShareFractionMax(0.05); | |
367 | sqpcetaphitpc[aniter]->SetRemoveSameLabel(kFALSE); | |
368 | // sqpcetaphitpc[aniter]->SetMaxEEMinv(0.0); | |
369 | // sqpcetaphitpc[aniter]->SetMaxThetaDiff(0.0); | |
370 | // sqpcetaphitpc[aniter]->SetTPCEntranceSepMinimum(1.5); | |
371 | //sqpcetaphitpc[aniter]->SetRadialDistanceMinimum(0.12, 0.03); | |
372 | // sqpcetaphitpc[aniter]->SetEtaDifferenceMinimum(0.02); | |
373 | } | |
374 | else if (runtype == 1) { | |
375 | sqpcetaphitpc[aniter]->SetShareQualityMax(1.0); | |
376 | sqpcetaphitpc[aniter]->SetShareFractionMax(1.05); | |
377 | sqpcetaphitpc[aniter]->SetRemoveSameLabel(kFALSE); | |
378 | // sqpcetaphitpc[aniter]->SetMaxEEMinv(0.002); | |
379 | // sqpcetaphitpc[aniter]->SetMaxThetaDiff(0.008); | |
380 | // sqpcetaphitpc[aniter]->SetTPCEntranceSepMinimum(5.0); | |
381 | //sqpcetaphitpc[aniter]->SetRadialDistanceMinimum(1.2, 0.03); | |
382 | // sqpcetaphitpc[aniter]->SetEtaDifferenceMinimum(0.02); | |
383 | } | |
384 | else if (runtype == 2) { | |
385 | //sqpcetaphitpc[aniter]->SetUseAOD(kTRUE); | |
386 | ||
387 | sqpcetaphitpc[aniter]->SetShareQualityMax(1.0); | |
388 | sqpcetaphitpc[aniter]->SetShareFractionMax(0.05); | |
389 | sqpcetaphitpc[aniter]->SetRemoveSameLabel(kFALSE); | |
390 | ||
391 | // if (gammacut == 0) { | |
392 | //sqpcetaphitpc[aniter]->SetMaxEEMinv(0.0); | |
393 | //sqpcetaphitpc[aniter]->SetMaxThetaDiff(0.0); | |
394 | //} | |
395 | //else if (gammacut == 1) { | |
396 | //sqpcetaphitpc[aniter]->SetMaxEEMinv(0.002); | |
397 | //sqpcetaphitpc[aniter]->SetMaxThetaDiff(0.008); | |
398 | //} | |
399 | ||
400 | // sqpcetaphitpc[aniter]->SetMagneticFieldSign(-1); // field1 -1, field3 +1 | |
401 | // sqpcetaphitpc[aniter]->SetMinimumRadius(0.8); // biggest inefficiency for R=1.1 m (checked on small sample) | |
0d7e0c63 | 402 | sqpcetaphitpc[aniter]->SetPhiStarDifferenceMinimum(0.045); // 0.012 - pions, 0.017 - kaons, 0.018 |
403 | sqpcetaphitpc[aniter]->SetEtaDifferenceMinimum(0.01); // 0.017 - pions, 0.015 - kaons | |
074625d9 | 404 | |
405 | } | |
406 | ||
407 | anetaphitpc[aniter]->SetEventCut(mecetaphitpc[aniter]); | |
408 | ||
409 | ||
410 | if (ichg == 0) { | |
411 | anetaphitpc[aniter]->SetFirstParticleCut(dtc1etaphitpc[aniter]); | |
412 | anetaphitpc[aniter]->SetSecondParticleCut(dtc2etaphitpc[aniter]); | |
413 | } | |
414 | else if (ichg == 1) { | |
415 | anetaphitpc[aniter]->SetFirstParticleCut(dtc3etaphitpc[aniter]); | |
416 | anetaphitpc[aniter]->SetSecondParticleCut(dtc4etaphitpc[aniter]); | |
417 | } | |
418 | else if (ichg == 2) { | |
419 | anetaphitpc[aniter]->SetFirstParticleCut(dtc1etaphitpc[aniter]); | |
420 | anetaphitpc[aniter]->SetSecondParticleCut(dtc4etaphitpc[aniter]); | |
421 | } | |
422 | else if (ichg == 3) { | |
423 | anetaphitpc[aniter]->SetFirstParticleCut(dtc2etaphitpc[aniter]); | |
424 | anetaphitpc[aniter]->SetSecondParticleCut(dtc3etaphitpc[aniter]); | |
425 | } | |
426 | ||
427 | anetaphitpc[aniter]->SetPairCut(sqpcetaphitpc[aniter]); | |
428 | ||
429 | ||
430 | if (ichg == 3 || ichg == 2) { | |
431 | ckstartpc[aniter] = new AliFemtoCorrFctnNonIdDR(Form("ckstar%stpcM%iPsi%i", chrgs[ichg], imult, iepvzero),nbinssh,0.0,shqmax); | |
432 | anetaphitpc[aniter]->AddCorrFctn(ckstartpc[aniter]); | |
433 | } | |
434 | else if (ichg == 0 || ichg == 1){ | |
435 | cqinvtpc[aniter] = new AliFemtoQinvCorrFctn(Form("cqinv%stpcM%iPsi%i", chrgs[ichg], imult, iepvzero),2*nbinssh,0.0,2*shqmax); | |
436 | anetaphitpc[aniter]->AddCorrFctn(cqinvtpc[aniter]); | |
437 | ||
438 | } | |
439 | ||
440 | // cylmtpc[aniter] = new AliFemtoCorrFctnDirectYlm(Form("cylm%stpcM%i", chrgs[ichg], imult),2,nbinssh, 0.0,shqmax,runshlcms); | |
441 | // anetaphitpc[aniter]->AddCorrFctn(cylmtpc[aniter]); | |
442 | ||
443 | ||
444 | // cqinvinnertpc[aniter] = new AliFemtoTPCInnerCorrFctn(Form("cqinvinner%stpcM", chrgs[ichg], imult),nbinssh,0.0,shqmax); | |
445 | // anetaphitpc[aniter]->AddCorrFctn(cqinvinnertpc[aniter]); | |
446 | ||
447 | ||
448 | if (runktdep) { | |
449 | int ktm; | |
450 | for (int ikt=0; ikt<numOfkTbins; ikt++) { | |
451 | ||
452 | ktm = aniter * numOfkTbins + ikt; | |
453 | ktpcuts[ktm] = new AliFemtoKTPairCut(ktrng[ikt], ktrng[ikt+1]); | |
454 | ||
455 | ||
456 | // cylmkttpc[ktm] = new AliFemtoCorrFctnDirectYlm(Form("cylm%stpcM%ikT%i", chrgs[ichg], imult, ikt),2,nbinssh,0.0,shqmax,runshlcms); | |
457 | // cylmkttpc[ktm]->SetPairSelectionCut(ktpcuts[ktm]); | |
458 | // anetaphitpc[aniter]->AddCorrFctn(cylmkttpc[ktm]); | |
459 | ||
460 | ||
461 | ||
462 | if (ichg == 2 || ichg == 3 ) { | |
463 | ckstarkttpc[ktm] = new AliFemtoCorrFctnNonIdDR(Form("ckstar%stpcM%iPsi%ikT%i", chrgs[ichg], imult, iepvzero, ikt),nbinssh,0.0,shqmax); | |
464 | ckstarkttpc[ktm]->SetPairSelectionCut(ktpcuts[ktm]); | |
465 | anetaphitpc[aniter]->AddCorrFctn(ckstarkttpc[ktm]); | |
466 | ||
467 | ||
468 | } | |
469 | else if (ichg == 0 || ichg == 1 ) { | |
470 | cqinvkttpc[ktm] = new AliFemtoQinvCorrFctn(Form("cqinv%stpcM%iPsi%ikT%i", chrgs[ichg], imult, iepvzero, ikt),2*nbinssh,0.0,2*shqmax); | |
471 | cqinvkttpc[ktm]->SetPairSelectionCut(ktpcuts[ktm]); | |
472 | anetaphitpc[aniter]->AddCorrFctn(cqinvkttpc[ktm]); | |
473 | } | |
474 | ||
475 | // cqinvsqtpc[ktm] = new AliFemtoShareQualityCorrFctn(Form("cqinvsq%stpcM%ikT%i", chrgs[ichg], imult, ikt),nbinssh,0.0,shqmax); | |
476 | // cqinvsqtpc[ktm]->SetPairSelectionCut(ktpcuts[ktm]); | |
477 | // anetaphitpc[aniter]->AddCorrFctn(cqinvsqtpc[ktm]); | |
478 | ||
479 | // cqinvinnertpc[ktm] = new AliFemtoTPCInnerCorrFctn(Form("cqinvinner%stpcM%ikT%i", chrgs[ichg], imult, ikt),nbinssh,0.0,shqmax); | |
480 | // cqinvinnertpc[ktm]->SetPairSelectionCut(ktpcuts[ktm]); | |
481 | // cqinvinnertpc[ktm]->SetRadius(1.2); | |
482 | // anetaphitpc[aniter]->AddCorrFctn(cqinvinnertpc[ktm]); | |
483 | ||
484 | // if (run3d) { | |
485 | // cq3dlcmskttpc[ktm] = new AliFemtoCorrFctn3DLCMSSym(Form("cq3d%stpcM%ikT%i", chrgs[ichg], imult, ikt),60,(imult>3)?((imult>6)?((imult>7)?0.6:0.4):0.25):0.15); | |
486 | // cq3dlcmskttpc[ktm]->SetPairSelectionCut(ktpcuts[ktm]); | |
487 | // anetaphitpc[aniter]->AddCorrFctn(cq3dlcmskttpc[ktm]); | |
488 | // } | |
489 | } | |
490 | } | |
491 | ||
492 | // cdedpetaphi[aniter] = new AliFemtoCorrFctnDEtaDPhi(Form("cdedp%stpcM%i", chrgs[ichg], imult),24, 24); | |
493 | // anetaphitpc[aniter]->AddCorrFctn(cdedpetaphi[aniter]); | |
494 | ||
495 | Manager->AddAnalysis(anetaphitpc[aniter]); | |
496 | } | |
497 | } | |
498 | } | |
499 | } | |
500 | } | |
501 | } | |
502 | ||
503 | ||
504 | // *** End pion-pion (positive) analysis | |
505 | ||
506 | ||
507 | return Manager; | |
508 | } |