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