]>
Commit | Line | Data |
---|---|---|
02a6c937 MS |
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_) | |
5b3ffe92 | 11 | |
02a6c937 MS |
12 | #include "AliFemtoManager.h" |
13 | #include "AliFemtoEventReaderESDChain.h" | |
14 | #include "AliFemtoEventReaderESDChainKine.h" | |
15 | #include "AliFemtoEventReaderAODChain.h" | |
16 | #include "AliFemtoSimpleAnalysis.h" | |
17 | #include "AliFemtoBasicEventCut.h" | |
18 | #include "AliFemtoESDTrackCut.h" | |
19 | #include "AliFemtoCorrFctn.h" | |
20 | #include "AliFemtoCutMonitorParticleYPt.h" | |
21 | #include "AliFemtoCutMonitorParticleVertPos.h" | |
22 | #include "AliFemtoCutMonitorParticleMomRes.h" | |
23 | #include "AliFemtoCutMonitorParticlePID.h" | |
24 | #include "AliFemtoCutMonitorEventMult.h" | |
25 | #include "AliFemtoCutMonitorEventVertex.h" | |
26 | #include "AliFemtoShareQualityTPCEntranceSepPairCut.h" | |
27 | #include "AliFemtoPairCutAntiGamma.h" | |
28 | #include "AliFemtoPairCutRadialDistance.h" | |
29 | #include "AliFemtoQinvCorrFctn.h" | |
30 | #include "AliFemtoCorrFctnNonIdDR.h" | |
31 | #include "AliFemtoShareQualityCorrFctn.h" | |
32 | #include "AliFemtoTPCInnerCorrFctn.h" | |
33 | #include "AliFemtoVertexMultAnalysis.h" | |
34 | #include "AliFemtoCorrFctn3DSpherical.h" | |
35 | #include "AliFemtoChi2CorrFctn.h" | |
36 | #include "AliFemtoCorrFctnTPCNcls.h" | |
37 | #include "AliFemtoBPLCMS3DCorrFctn.h" | |
38 | #include "AliFemtoCorrFctn3DLCMSSym.h" | |
39 | #include "AliFemtoModelBPLCMSCorrFctn.h" | |
40 | #include "AliFemtoModelCorrFctn3DSpherical.h" | |
41 | #include "AliFemtoModelGausLCMSFreezeOutGenerator.h" | |
42 | #include "AliFemtoModelGausRinvFreezeOutGenerator.h" | |
43 | #include "AliFemtoModelManager.h" | |
44 | #include "AliFemtoModelWeightGeneratorBasic.h" | |
45 | #include "AliFemtoModelWeightGeneratorLednicky.h" | |
46 | #include "AliFemtoCorrFctnDirectYlm.h" | |
47 | #include "AliFemtoModelCorrFctnDirectYlm.h" | |
48 | #include "AliFemtoModelCorrFctnSource.h" | |
49 | #include "AliFemtoCutMonitorParticlePtPDG.h" | |
50 | #include "AliFemtoKTPairCut.h" | |
51 | #include "AliFemtoAvgSepCorrFctn.h" | |
52 | #endif | |
53 | ||
54 | //________________________________________________________________________ | |
55 | AliFemtoManager* ConfigFemtoAnalysis() { | |
56 | ||
57 | double PionMass = 0.13956995; | |
58 | double KaonMass = 0.493677; | |
59 | double ProtonMass = 0.938272013; | |
60 | ||
61 | // double psi = TMath::Pi()/2.; | |
62 | // double psid = TMath::Pi()/6.; | |
63 | ||
64 | // int runepvzero[7] = {1, 1, 1, 1, 1, 1, 1}; | |
65 | // double epvzerobins[7] = {-psi, -psi+psid, -psi+2*psid, -psi+3*psid, -psi+4*psid, -psi+5*psid, -psi+6*psid}; | |
66 | ||
67 | double psi = TMath::Pi()/2.; | |
68 | double psid = TMath::Pi()/3.; | |
69 | ||
70 | int runepvzero[4] = {0, 0, 0, 1}; | |
71 | double epvzerobins[4] = {-psi, -psi+psid, -psi+2*psid, -psi+3*psid}; | |
72 | ||
a96042b8 | 73 | int runmults[10] = {1, 1, 0, 0, 0, 0, 0, 0, 0, 0}; |
02a6c937 MS |
74 | int multbins[11] = {0.001, 50, 100, 200, 300, 400, 500, 600, 700, 800, 900}; |
75 | ||
a96042b8 | 76 | int runch[3] = {1, 1, 1}; |
02a6c937 MS |
77 | const char *chrgs[3] = { "PP", "APAP", "PAP" }; |
78 | ||
79 | int runktdep = 0; | |
80 | double ktrng[3] = {0.01, 1.0, 5.0}; | |
81 | ||
82 | int numOfMultBins = 10; | |
83 | int numOfChTypes = 3; | |
84 | int numOfkTbins = 2; | |
85 | int numOfEPvzero = 4; | |
86 | ||
87 | int runqinv = 1; | |
88 | int runshlcms = 0;// 0:PRF(PAP), 1:LCMS(PP,APAP) | |
89 | ||
90 | int runtype = 2; // Types 0 - global, 1 - ITS only, 2 - TPC Inner | |
91 | int isrealdata = 1; | |
92 | ||
93 | // int gammacut = 1; | |
94 | ||
95 | double shqmax = 1.0; | |
96 | int nbinssh = 100; | |
97 | ||
98 | AliFemtoEventReaderAODChain *Reader = new AliFemtoEventReaderAODChain(); | |
99 | Reader->SetFilterBit(7); | |
100 | Reader->SetCentralityPreSelection(0.001, 310); | |
101 | Reader->SetEPVZERO(kTRUE); | |
102 | // Reader->SetCentralityFlattening(kTRUE); | |
103 | // Reader->SetDCAglobalTrack(kTRUE); | |
104 | ||
105 | AliFemtoManager* Manager = new AliFemtoManager(); | |
106 | Manager->SetEventReader(Reader); | |
107 | ||
108 | AliFemtoVertexMultAnalysis *anetaphitpc[10*3*2]; | |
109 | AliFemtoBasicEventCut *mecetaphitpc[10*3*2]; | |
110 | AliFemtoCutMonitorEventMult *cutPassEvMetaphitpc[50]; | |
111 | AliFemtoCutMonitorEventMult *cutFailEvMetaphitpc[50]; | |
112 | // AliFemtoCutMonitorEventVertex *cutPassEvVetaphitpc[50]; | |
113 | // AliFemtoCutMonitorEventVertex *cutFailEvVetaphitpc[50]; | |
114 | AliFemtoESDTrackCut *dtc1etaphitpc[50]; | |
115 | AliFemtoESDTrackCut *dtc2etaphitpc[50]; | |
116 | AliFemtoCutMonitorParticleYPt *cutPass1YPtetaphitpc[50]; | |
117 | AliFemtoCutMonitorParticleYPt *cutFail1YPtetaphitpc[50]; | |
118 | AliFemtoCutMonitorParticlePID *cutPass1PIDetaphitpc[50]; | |
119 | AliFemtoCutMonitorParticlePID *cutFail1PIDetaphitpc[50]; | |
120 | AliFemtoCutMonitorParticleYPt *cutPass2YPtetaphitpc[50]; | |
121 | AliFemtoCutMonitorParticleYPt *cutFail2YPtetaphitpc[50]; | |
122 | AliFemtoCutMonitorParticlePID *cutPass2PIDetaphitpc[50]; | |
123 | AliFemtoCutMonitorParticlePID *cutFail2PIDetaphitpc[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*2]; | |
138 | AliFemtoAvgSepCorrFctn *cAvgSeptpc[50]; | |
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 | // if (isrealdata) | |
188 | // mecetaphitpc[aniter]->SetAcceptOnlyPhysics(kTRUE); | |
189 | ||
190 | cutPassEvMetaphitpc[aniter] = new AliFemtoCutMonitorEventMult(Form("cutPass%stpcM%iPsi%i", chrgs[ichg], imult, iepvzero)); | |
191 | cutFailEvMetaphitpc[aniter] = new AliFemtoCutMonitorEventMult(Form("cutFail%stpcM%iPsi%i", chrgs[ichg], imult, iepvzero)); | |
192 | mecetaphitpc[aniter]->AddCutMonitor(cutPassEvMetaphitpc[aniter], cutFailEvMetaphitpc[aniter]); | |
193 | ||
194 | // cutPassEvVetaphitpc[aniter] = new AliFemtoCutMonitorEventVertex(Form("cutPass%stpcM%i", chrgs[ichg], imult)); | |
195 | // cutFailEvVetaphitpc[aniter] = new AliFemtoCutMonitorEventVertex(Form("cutFail%stpcM%i", chrgs[ichg], imult)); | |
196 | // mecetaphitpc[aniter]->AddCutMonitor(cutPassEvVetaphitpc[aniter], cutFailEvVetaphitpc[aniter]); | |
197 | ||
198 | dtc1etaphitpc[aniter] = new AliFemtoESDTrackCut(); | |
199 | dtc2etaphitpc[aniter] = new AliFemtoESDTrackCut(); | |
200 | ||
201 | if (ichg == 0) { | |
202 | dtc1etaphitpc[aniter]->SetCharge(1.0); | |
203 | dtc1etaphitpc[aniter]->SetPt(0.7,4.0); | |
204 | } | |
205 | else if (ichg == 1) { | |
206 | dtc1etaphitpc[aniter]->SetCharge(-1.0); | |
207 | dtc1etaphitpc[aniter]->SetPt(0.7,4.0); | |
208 | } | |
209 | else if (ichg == 2) { | |
210 | dtc1etaphitpc[aniter]->SetCharge(-1.0); | |
211 | dtc2etaphitpc[aniter]->SetCharge(1.0); | |
212 | dtc1etaphitpc[aniter]->SetPt(0.7,4.0); | |
213 | dtc2etaphitpc[aniter]->SetPt(0.7,4.0); | |
214 | } | |
215 | ||
216 | dtc1etaphitpc[aniter]->SetEta(-0.8,0.8); | |
217 | dtc1etaphitpc[aniter]->SetMass(ProtonMass); | |
218 | dtc1etaphitpc[aniter]->SetMostProbableProton(); | |
219 | dtc1etaphitpc[aniter]->SetNsigma(3.0); | |
220 | //dtc1etaphitpc[aniter]->SetNsigma(2.0); | |
221 | dtc1etaphitpc[aniter]->SetNsigmaTPCTOF(kTRUE); | |
222 | //dtc1etaphitpc[aniter]->SetNsigmaTPConly(kTRUE); | |
223 | ||
224 | if (ichg == 2) { | |
225 | dtc2etaphitpc[aniter]->SetEta(-0.8,0.8); | |
226 | dtc2etaphitpc[aniter]->SetMass(ProtonMass); | |
227 | dtc2etaphitpc[aniter]->SetMostProbableProton(); | |
228 | dtc2etaphitpc[aniter]->SetNsigma(3.0); | |
229 | //dtc2etaphitpc[aniter]->SetNsigma(2.0); | |
230 | dtc2etaphitpc[aniter]->SetNsigmaTPCTOF(kTRUE); | |
231 | //dtc2etaphitpc[aniter]->SetNsigmaTPConly(kTRUE); | |
232 | ||
233 | } | |
234 | ||
235 | // Track quality cuts | |
236 | ||
237 | if (runtype == 0) { | |
238 | dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCrefit|AliESDtrack::kITSrefit); | |
239 | // dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCrefit); | |
240 | // dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kITSrefit); | |
241 | dtc1etaphitpc[aniter]->SetminTPCncls(80); | |
242 | dtc1etaphitpc[aniter]->SetRemoveKinks(kTRUE); | |
243 | dtc1etaphitpc[aniter]->SetLabel(kFALSE); | |
244 | // dtc1etaphitpc[aniter]->SetMaxITSChiNdof(6.0); | |
245 | dtc1etaphitpc[aniter]->SetMaxTPCChiNdof(4.0); | |
246 | dtc1etaphitpc[aniter]->SetMaxImpactXY(0.2); | |
247 | // dtc1etaphitpc[aniter]->SetMaxImpactXYPtDep(0.0182, 0.0350, -1.01); | |
248 | dtc1etaphitpc[aniter]->SetMaxImpactZ(0.15); | |
249 | // dtc1etaphitpc[aniter]->SetMaxSigmaToVertex(6.0); | |
250 | } | |
251 | else if (runtype == 1) { | |
252 | // dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCrefit|AliESDtrack::kITSrefit); | |
253 | // dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCrefit); | |
254 | // dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kITSrefit|AliESDtrack::kITSpureSA); | |
255 | // dtc1etaphitpc[aniter]->SetminTPCncls(70); | |
256 | dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kITSrefit); | |
257 | dtc1etaphitpc[aniter]->SetRemoveKinks(kTRUE); | |
258 | dtc1etaphitpc[aniter]->SetLabel(kFALSE); | |
259 | // dtc1etaphitpc[aniter]->SetMaxITSChiNdof(6.0); | |
260 | // dtc1etaphitpc[aniter]->SetMaxTPCChiNdof(6.0); | |
261 | dtc1etaphitpc[aniter]->SetMaxImpactXY(0.2); | |
262 | dtc1etaphitpc[aniter]->SetMaxImpactZ(0.25); | |
263 | // dtc1etaphitpc[aniter]->SetMaxSigmaToVertex(6.0); | |
264 | } | |
265 | else if (runtype == 2) { | |
266 | //dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCrefit|AliESDtrack::kITSrefit); | |
267 | dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCin); | |
268 | dtc1etaphitpc[aniter]->SetminTPCncls(80); | |
269 | dtc1etaphitpc[aniter]->SetRemoveKinks(kTRUE); | |
270 | dtc1etaphitpc[aniter]->SetLabel(kFALSE); | |
271 | dtc1etaphitpc[aniter]->SetMaxTPCChiNdof(4.0); | |
272 | dtc1etaphitpc[aniter]->SetMaxImpactXY(2.4); // 2.4 0.1 | |
273 | // dtc1etaphitpc[aniter]->SetMaxImpactXYPtDep(0.0205, 0.035, -1.1); // DCA xy | |
274 | // dtc1etaphitpc[aniter]->SetMaxImpactXYPtDep(0.018, 0.035, -1.01); // DCA xy | |
275 | dtc1etaphitpc[aniter]->SetMaxImpactZ(3.2); // 2.0 0.1 | |
276 | ||
277 | if (ichg == 2) { | |
278 | //dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCrefit|AliESDtrack::kITSrefit); | |
279 | dtc2etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCin); | |
280 | dtc2etaphitpc[aniter]->SetminTPCncls(80); | |
281 | dtc2etaphitpc[aniter]->SetRemoveKinks(kTRUE); | |
282 | dtc2etaphitpc[aniter]->SetLabel(kFALSE); | |
283 | dtc2etaphitpc[aniter]->SetMaxTPCChiNdof(4.0); | |
284 | dtc2etaphitpc[aniter]->SetMaxImpactXY(2.4); // 2.4 0.1 | |
285 | // dtc2etaphitpc[aniter]->SetMaxImpactXYPtDep(0.0205, 0.035, -1.1); // DCA xy | |
286 | //dtc2etaphitpc[aniter]->SetMaxImpactXYPtDep(0.018, 0.035, -1.01); // DCA xy | |
287 | dtc2etaphitpc[aniter]->SetMaxImpactZ(3.2); // 2.0 0.1 | |
288 | } | |
289 | ||
290 | } | |
291 | ||
292 | // cutPass1YPtetaphitpc[aniter] = new AliFemtoCutMonitorParticleYPt(Form("cutPass1%stpcM%iPsi%i", chrgs[ichg], imult, iepvzero),ProtonMass); | |
293 | // cutFail1YPtetaphitpc[aniter] = new AliFemtoCutMonitorParticleYPt(Form("cutFail1%stpcM%iPsi%i", chrgs[ichg], imult, iepvzero),ProtonMass); | |
294 | // dtc1etaphitpc[aniter]->AddCutMonitor(cutPass1YPtetaphitpc[aniter], cutFail1YPtetaphitpc[aniter]); | |
295 | ||
296 | // cutPass1PIDetaphitpc[aniter] = new AliFemtoCutMonitorParticlePID(Form("cutPass1%stpcM%iPsi%i", chrgs[ichg], imult, iepvzero),2);//0-pion,1-kaon,2-proton | |
297 | // cutFail1PIDetaphitpc[aniter] = new AliFemtoCutMonitorParticlePID(Form("cutFail1%stpcM%iPsi%i", chrgs[ichg], imult , iepvzero),2); | |
298 | // dtc1etaphitpc[aniter]->AddCutMonitor(cutPass1PIDetaphitpc[aniter], cutFail1PIDetaphitpc[aniter]); | |
299 | ||
300 | // if (ichg == 2){ | |
301 | // cutPass2PIDetaphitpc[aniter] = new AliFemtoCutMonitorParticlePID(Form("cutPass2%stpcM%i", chrgs[ichg], imult),2);//0-pion,1-kaon,2-proton | |
302 | // cutFail2PIDetaphitpc[aniter] = new AliFemtoCutMonitorParticlePID(Form("cutFail2%stpcM%i", chrgs[ichg], imult),2); | |
303 | // dtc2etaphitpc[aniter]->AddCutMonitor(cutPass2PIDetaphitpc[aniter], cutFail2PIDetaphitpc[aniter]); | |
304 | // } | |
305 | ||
306 | // sqpcetaphitpc[aniter] = new AliFemtoPairCutAntiGamma(); | |
307 | sqpcetaphitpc[aniter] = new AliFemtoPairCutRadialDistance(); | |
308 | ||
309 | if (runtype == 0) { | |
310 | sqpcetaphitpc[aniter]->SetShareQualityMax(1.0); | |
311 | sqpcetaphitpc[aniter]->SetShareFractionMax(0.05); | |
312 | sqpcetaphitpc[aniter]->SetRemoveSameLabel(kFALSE); | |
313 | // sqpcetaphitpc[aniter]->SetMaxEEMinv(0.0); | |
314 | // sqpcetaphitpc[aniter]->SetMaxThetaDiff(0.0); | |
315 | // sqpcetaphitpc[aniter]->SetTPCEntranceSepMinimum(1.5); | |
316 | //sqpcetaphitpc[aniter]->SetRadialDistanceMinimum(0.12, 0.03); | |
317 | // sqpcetaphitpc[aniter]->SetEtaDifferenceMinimum(0.02); | |
318 | } | |
319 | else if (runtype == 1) { | |
320 | sqpcetaphitpc[aniter]->SetShareQualityMax(1.0); | |
321 | sqpcetaphitpc[aniter]->SetShareFractionMax(1.05); | |
322 | sqpcetaphitpc[aniter]->SetRemoveSameLabel(kFALSE); | |
323 | // sqpcetaphitpc[aniter]->SetMaxEEMinv(0.002); | |
324 | // sqpcetaphitpc[aniter]->SetMaxThetaDiff(0.008); | |
325 | // sqpcetaphitpc[aniter]->SetTPCEntranceSepMinimum(5.0); | |
326 | //sqpcetaphitpc[aniter]->SetRadialDistanceMinimum(1.2, 0.03); | |
327 | // sqpcetaphitpc[aniter]->SetEtaDifferenceMinimum(0.02); | |
328 | } | |
329 | else if (runtype == 2) { | |
330 | //sqpcetaphitpc[aniter]->SetUseAOD(kTRUE); | |
331 | ||
332 | sqpcetaphitpc[aniter]->SetShareQualityMax(1.0); | |
333 | sqpcetaphitpc[aniter]->SetShareFractionMax(0.05); | |
334 | sqpcetaphitpc[aniter]->SetRemoveSameLabel(kFALSE); | |
335 | ||
336 | // if (gammacut == 0) { | |
337 | //sqpcetaphitpc[aniter]->SetMaxEEMinv(0.0); | |
338 | //sqpcetaphitpc[aniter]->SetMaxThetaDiff(0.0); | |
339 | //} | |
340 | //else if (gammacut == 1) { | |
341 | //sqpcetaphitpc[aniter]->SetMaxEEMinv(0.002); | |
342 | //sqpcetaphitpc[aniter]->SetMaxThetaDiff(0.008); | |
343 | //} | |
344 | ||
345 | // sqpcetaphitpc[aniter]->SetMagneticFieldSign(-1); // field1 -1, field3 +1 | |
346 | // sqpcetaphitpc[aniter]->SetMinimumRadius(0.8); // biggest inefficiency for R=1.1 m (checked on small sample) | |
347 | ||
348 | sqpcetaphitpc[aniter]->SetMinimumRadius(1.2); //0.8 | |
349 | sqpcetaphitpc[aniter]->SetPhiStarMin(kFALSE); | |
350 | sqpcetaphitpc[aniter]->SetPhiStarDifferenceMinimum(0.045); // 0.012 - pions, 0.017 - kaons, 0.018 | |
351 | sqpcetaphitpc[aniter]->SetEtaDifferenceMinimum(0.15); // 0.017 - pions, 0.015 - kaons | |
352 | ||
353 | } | |
354 | ||
355 | anetaphitpc[aniter]->SetEventCut(mecetaphitpc[aniter]); | |
356 | ||
357 | if (ichg == 2) { | |
358 | anetaphitpc[aniter]->SetFirstParticleCut(dtc1etaphitpc[aniter]); | |
359 | anetaphitpc[aniter]->SetSecondParticleCut(dtc2etaphitpc[aniter]); | |
360 | } | |
361 | else { | |
362 | anetaphitpc[aniter]->SetFirstParticleCut(dtc1etaphitpc[aniter]); | |
363 | anetaphitpc[aniter]->SetSecondParticleCut(dtc1etaphitpc[aniter]); | |
364 | } | |
365 | ||
366 | anetaphitpc[aniter]->SetPairCut(sqpcetaphitpc[aniter]); | |
367 | ||
368 | ||
369 | if (ichg == 2) { | |
370 | ckstartpc[aniter] = new AliFemtoCorrFctnNonIdDR(Form("ckstar%stpcM%iPsi%i", chrgs[ichg], imult, iepvzero),nbinssh,0.0,shqmax); | |
371 | anetaphitpc[aniter]->AddCorrFctn(ckstartpc[aniter]); | |
372 | } | |
373 | else { | |
374 | ||
375 | cqinvtpc[aniter] = new AliFemtoQinvCorrFctn(Form("cqinv%stpcM%iPsi%i", chrgs[ichg], imult, iepvzero),2*nbinssh,0.0,2*shqmax); | |
376 | anetaphitpc[aniter]->AddCorrFctn(cqinvtpc[aniter]); | |
377 | ||
378 | } | |
379 | ||
380 | // cylmtpc[aniter] = new AliFemtoCorrFctnDirectYlm(Form("cylm%stpcM%i", chrgs[ichg], imult),2,nbinssh, 0.0,shqmax,runshlcms); | |
381 | // anetaphitpc[aniter]->AddCorrFctn(cylmtpc[aniter]); | |
382 | ||
383 | ||
384 | // cAvgSeptpc[aniter] = new AliFemtoAvgSepCorrFctn(Form("cAvgSep%stpcM%iPsi%i", chrgs[ichg], imult, iepvzero),4*nbinssh,0.0,200); | |
385 | // anetaphitpc[aniter]->AddCorrFctn(cAvgSeptpc[aniter]); | |
386 | ||
387 | // cqinvinnertpc[aniter] = new AliFemtoTPCInnerCorrFctn(Form("cqinvinner%stpcM%d", chrgs[ichg], imult),nbinssh,0.0,shqmax); | |
388 | // cqinvinnertpc[aniter]->SetRadius(1.2); | |
389 | // anetaphitpc[aniter]->AddCorrFctn(cqinvinnertpc[aniter]); | |
390 | ||
391 | ||
392 | if (runktdep) { | |
393 | int ktm; | |
394 | for (int ikt=0; ikt<numOfkTbins; ikt++) { | |
395 | ||
396 | ktm = aniter * numOfkTbins + ikt; | |
397 | ktpcuts[ktm] = new AliFemtoKTPairCut(ktrng[ikt], ktrng[ikt+1]); | |
398 | ||
399 | ||
400 | cylmkttpc[ktm] = new AliFemtoCorrFctnDirectYlm(Form("cylm%stpcM%ikT%i", chrgs[ichg], imult, ikt),2,nbinssh,0.0,shqmax,runshlcms); | |
401 | cylmkttpc[ktm]->SetPairSelectionCut(ktpcuts[ktm]); | |
402 | anetaphitpc[aniter]->AddCorrFctn(cylmkttpc[ktm]); | |
403 | ||
404 | if (ichg == 2) { | |
405 | ckstarkttpc[ktm] = new AliFemtoCorrFctnNonIdDR(Form("ckstar%stpcM%iPsi%ikT%i", chrgs[ichg], imult, iepvzero, ikt),nbinssh,0.0,shqmax); | |
406 | ckstarkttpc[ktm]->SetPairSelectionCut(ktpcuts[ktm]); | |
407 | anetaphitpc[aniter]->AddCorrFctn(ckstarkttpc[ktm]); | |
408 | ||
409 | ||
410 | } | |
411 | else { | |
412 | cqinvkttpc[ktm] = new AliFemtoQinvCorrFctn(Form("cqinv%stpcM%iPsi%ikT%i", chrgs[ichg], imult, iepvzero, ikt),2*nbinssh,0.0,2*shqmax); | |
413 | cqinvkttpc[ktm]->SetPairSelectionCut(ktpcuts[ktm]); | |
414 | anetaphitpc[aniter]->AddCorrFctn(cqinvkttpc[ktm]); | |
415 | } | |
416 | ||
417 | // cqinvsqtpc[ktm] = new AliFemtoShareQualityCorrFctn(Form("cqinvsq%stpcM%ikT%i", chrgs[ichg], imult, ikt),nbinssh,0.0,shqmax); | |
418 | // cqinvsqtpc[ktm]->SetPairSelectionCut(ktpcuts[ktm]); | |
419 | // anetaphitpc[aniter]->AddCorrFctn(cqinvsqtpc[ktm]); | |
420 | ||
421 | // cqinvinnertpc[ktm] = new AliFemtoTPCInnerCorrFctn(Form("cqinvinner%stpcM%ikT%i", chrgs[ichg], imult, ikt),nbinssh,0.0,shqmax); | |
422 | // cqinvinnertpc[ktm]->SetPairSelectionCut(ktpcuts[ktm]); | |
423 | // cqinvinnertpc[ktm]->SetRadius(1.2); | |
424 | // anetaphitpc[aniter]->AddCorrFctn(cqinvinnertpc[ktm]); | |
425 | ||
426 | // if (run3d) { | |
427 | // 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); | |
428 | // cq3dlcmskttpc[ktm]->SetPairSelectionCut(ktpcuts[ktm]); | |
429 | // anetaphitpc[aniter]->AddCorrFctn(cq3dlcmskttpc[ktm]); | |
430 | // } | |
431 | } | |
432 | } | |
433 | ||
434 | // cdedpetaphi[aniter] = new AliFemtoCorrFctnDEtaDPhi(Form("cdedp%stpcM%i", chrgs[ichg], imult),240, 240); | |
435 | // anetaphitpc[aniter]->AddCorrFctn(cdedpetaphi[aniter]); | |
436 | ||
437 | Manager->AddAnalysis(anetaphitpc[aniter]); | |
438 | } | |
439 | } | |
440 | } | |
441 | } | |
442 | } | |
443 | } | |
444 | ||
445 | ||
446 | // *** End pion-pion (positive) analysis | |
447 | ||
448 | ||
449 | return Manager; | |
450 | } |