update of macros for kaon femto train
[u/mrichter/AliRoot.git] / PWGCF / FEMTOSCOPY / macros / Train / KchKch_purity_test / PbPb2011 / 0010 / ConfigFemtoAnalysis.C
CommitLineData
24c2a096 1
2/*********************************************************************
3 * *
4 * ConfigFemtoAnalysis.C - configuration macro for the femtoscopic *
5 * analysis, meant as a QA process for two-particle effects *
6 * *
7 * Author: Adam Kisiel (Adam.Kisiel@cern.ch) *
8 * *
9 *********************************************************************/
10
11#if !defined(__CINT__) || defined(__MAKECINT_)
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"
e6de4690 19#include "AliFemtoKKTrackCut.h"
20#include "AliFemtoCorrFctn.h"
21#include "AliFemtoCutMonitorParticleYPt.h"
22#include "AliFemtoCutMonitorParticleVertPos.h"
23#include "AliFemtoCutMonitorParticleMomRes.h"
24#include "AliFemtoCutMonitorParticlePID.h"
25#include "AliFemtoCutMonitorEventMult.h"
26#include "AliFemtoCutMonitorEventVertex.h"
27#include "AliFemtoShareQualityTPCEntranceSepPairCut.h"
28#include "AliFemtoPairCutAntiGamma.h"
29#include "AliFemtoPairCutRadialDistance.h"
b79e456a 30#include "AliFemtoPairCutRadialDistanceKK.h"
e6de4690 31#include "AliFemtoQinvCorrFctn.h"
32#include "AliFemtoShareQualityCorrFctn.h"
33#include "AliFemtoTPCInnerCorrFctn.h"
34#include "AliFemtoVertexMultAnalysis.h"
35#include "AliFemtoCorrFctn3DSpherical.h"
36#include "AliFemtoChi2CorrFctn.h"
37#include "AliFemtoCorrFctnTPCNcls.h"
38#include "AliFemtoBPLCMS3DCorrFctn.h"
39#include "AliFemtoCorrFctn3DLCMSSym.h"
40#include "AliFemtoModelBPLCMSCorrFctn.h"
41#include "AliFemtoModelCorrFctn3DSpherical.h"
42#include "AliFemtoModelGausLCMSFreezeOutGenerator.h"
43#include "AliFemtoModelGausRinvFreezeOutGenerator.h"
44#include "AliFemtoModelManager.h"
45#include "AliFemtoModelWeightGeneratorBasic.h"
46#include "AliFemtoModelWeightGeneratorLednicky.h"
47#include "AliFemtoCorrFctnDirectYlm.h"
48#include "AliFemtoModelCorrFctnDirectYlm.h"
49#include "AliFemtoModelCorrFctnSource.h"
50#include "AliFemtoKTPairCut.h"
51#endif
52
53//________________________________________________________________________
54AliFemtoManager* ConfigFemtoAnalysis() {
55
56 double PionMass = 0.13956995;
57 double KaonMass = 0.493677;
c389b2ee 58 const int cMu=1;
8a882d4c 59 const int cKt=3;
e6de4690 60
61 //-------Single track cuts------------------------------------------------->
62 double DCAxy=2.4;//cm // our standard is 0.20 cm; super narrow was 0.015cm
63 double DCAz =3.0;//cm // our standard is 0.15 cm;
64 //-------Single track cuts-------------------------------------------------<
b79e456a
MS
65 //=======Double track cuts=================================================>
66 //Dhevan's : PhiStarDifferenceMinimum=0.06; EtaDifferenceMinimum=0.02;
54295a0d 67 //standart
68 //double PhiStarDifferenceMinimum=0.017; //[radian]
69 // double EtaDifferenceMinimum=0.015; //[radian]
70 //for test
79b587c6 71 double PhiStarDifferenceMinimum=0.03; //[radian]
72 double EtaDifferenceMinimum=0.02; //[radian]
54295a0d 73
74
75
b79e456a 76 //=======Double track cuts=================================================<
e6de4690 77
78 // Switches for QA analyses
24c2a096 79
c389b2ee 80 int runmults[4] = {1, 0, 0, 0};
24c2a096 81 int multbins[5] = {0, 100, 300, 500, 900};
e6de4690 82
b79e456a 83 //.................................................
e6de4690 84
85 int runch[2] = {1, 1};
86 const char *chrgs[2] = { "Kp", "Km"};
87
88
89 int runktdep = 1;
8a882d4c 90//YS double ktrng[cKt+1] = {0.2, 0.36, 0.48, 0.6, 1.0, 1.5};
0d0e6a7a 91 double ktrng[cKt+1] = {0.2, 0.4, 0.6, 1.5};
8a882d4c 92
e6de4690 93// double ktrng[8] = {0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 2.0};
94
b79e456a 95 int run3d = 1;
e6de4690 96 int runshlcms = 0;
97
98 int runtype = 2; // Types 0 - global, 1 - ITS only, 2 - TPC Inner
99 int isrealdata = 1;
100
101 // AliFemtoEventReaderESDChainKine* Reader=new AliFemtoEventReaderESDChainKine();
102 // Reader->SetConstrained(true);
103 // Reader->SetUseTPCOnly(false);
104
105 double shqmax;
106 double shqmaxSH;
107 int nbinssh = 100;
108
109//ml if (runshlcms) shqmax = 0.25;
110// else shqmax = 0.9;
111
112
113 if (runshlcms) shqmaxSH = 0.25;
114 shqmax = 0.9;
115
116
117 // AliFemtoEventReaderESDChain* Reader=new AliFemtoEventReaderESDChain();
118 // Reader->SetConstrained(true);
119 // Reader->SetUseTPCOnly(false);
120 // Reader->SetReadTPCInner(false);
121 // Reader->SetUseMultiplicity(AliFemtoEventReaderESDChain::kV0Centrality);
122
123 // if (runtype == 0)
124 // Reader->SetReadTrackType(AliFemtoEventReaderESDChain::kGlobal);
125 // else if (runtype == 1)
126 // Reader->SetReadTrackType(AliFemtoEventReaderESDChain::kITSOnly);
127 // else if (runtype == 2)
128 // Reader->SetReadTrackType(AliFemtoEventReaderESDChain::kTPCOnly);
129 // if (isrealdata)
130 // Reader->SetUsePhysicsSelection(kTRUE);
131 // else
132 // Reader->SetUsePhysicsSelection(kFALSE);
133
134 // Reader->SetUseMultiplicity(AliFemtoEventReaderESDChain::kV0Centrality);
135
136 AliFemtoEventReaderAODChain *Reader = new AliFemtoEventReaderAODChain();
137 Reader->SetFilterBit(7);
138 Reader->SetCentralityPreSelection(0, 100);
b79e456a 139 Reader->SetDCAglobalTrack(kTRUE);//option the DCA information from global tracks (ITS+TPC)
e6de4690 140
141 AliFemtoManager* Manager=new AliFemtoManager();
142 Manager->SetEventReader(Reader);
143
144 AliFemtoVertexMultAnalysis *anetaphitpc[20];
145 AliFemtoBasicEventCut *mecetaphitpc[20];
146 AliFemtoCutMonitorEventMult *cutPassEvMetaphitpc[20];
147 AliFemtoCutMonitorEventMult *cutFailEvMetaphitpc[20];
148 AliFemtoCutMonitorEventVertex *cutPassEvVetaphitpc[20];
149 AliFemtoCutMonitorEventVertex *cutFailEvVetaphitpc[20];
150 AliFemtoKKTrackCut *dtc1etaphitpc[20];
151 AliFemtoKKTrackCut *dtc2etaphitpc[20];
152// AliFemtoESDTrackCut *dtc1etaphitpc[20];
153// AliFemtoESDTrackCut *dtc2etaphitpc[20];
154 AliFemtoCutMonitorParticleYPt *cutPass1YPtetaphitpc[20];
155 AliFemtoCutMonitorParticleYPt *cutFail1YPtetaphitpc[20];
156 AliFemtoCutMonitorParticlePID *cutPass1PIDetaphitpc[20];
157 AliFemtoCutMonitorParticlePID *cutFail1PIDetaphitpc[20];
158 AliFemtoCutMonitorParticleYPt *cutPass2YPtetaphitpc[20];
159 AliFemtoCutMonitorParticleYPt *cutFail2YPtetaphitpc[20];
160 AliFemtoCutMonitorParticlePID *cutPass2PIDetaphitpc[20];
161 AliFemtoCutMonitorParticlePID *cutFail2PIDetaphitpc[20];
162//AliFemtoPairCutAntiGamma *sqpcetaphitpc[20];
163// AliFemtoShareQualityTPCEntranceSepPairCut *sqpcetaphitpc[20];
b79e456a
MS
164 //AliFemtoPairCutRadialDistance *sqpcetaphitpc[20];//AliFemto dphi* cut
165 AliFemtoPairCutRadialDistanceKK *sqpcetaphitpc[20];//Dhevan's dphi* cut
e6de4690 166 AliFemtoCorrFctnDirectYlm *cylmetaphitpc[20];
167 AliFemtoCorrFctnDEtaDPhi *cdedpetaphi[20*10];//20->20*10 due to kT
168 AliFemtoChi2CorrFctn *cchiqinvetaphitpc[20];
169 AliFemtoKTPairCut *ktpcuts[20*8];
170 AliFemtoCorrFctnDirectYlm *cylmkttpc[20*8];
171 AliFemtoQinvCorrFctn *cqinvkttpc[20*8];
c587a3af 172 // AliFemtoCorrFctn3DLCMSSym *cq3dlcmskttpc[20*8];
173 AliFemtoBPLCMS3DCorrFctn *cq3dlcmskttpc[20*8];
174
e6de4690 175 AliFemtoCorrFctnTPCNcls *cqinvnclstpc[20];
176 AliFemtoShareQualityCorrFctn *cqinvsqtpc[20*10];
177 AliFemtoChi2CorrFctn *cqinvchi2tpc[20];
178 AliFemtoTPCInnerCorrFctn *cqinvinnertpc[20*10];
179
180 // *** Third QA task - HBT analysis with all pair cuts off, TPC only ***
181 // *** Begin Kaon-Kaon (positive) analysis ***
182 int aniter = 0;
183
184 for (int imult=0; imult<cMu/*4*/; imult++) {
185 if (runmults[imult]) {
186 for (int ichg=0; ichg<2; ichg++) {
187 if (runch[ichg]) {
188 aniter = ichg*5+imult;
189
190 anetaphitpc[aniter] = new AliFemtoVertexMultAnalysis(4, -8.0, 8.0, 5, multbins[imult], multbins[imult+1]);
191 anetaphitpc[aniter]->SetNumEventsToMix(3);
192 anetaphitpc[aniter]->SetMinSizePartCollection(1);
193
194 mecetaphitpc[aniter] = new AliFemtoBasicEventCut();
195 mecetaphitpc[aniter]->SetEventMult(0,100000);
196 mecetaphitpc[aniter]->SetVertZPos(-8.0,8.0);
197 /* //was in aliroot 5.03.76
198 if (isrealdata)
199 mecetaphitpc[aniter]->SetAcceptOnlyPhysics(kTRUE);
200 */
201 // mecetaphitpc->SetAcceptBadVertex(kTRUE);
202
203 cutPassEvMetaphitpc[aniter] = new AliFemtoCutMonitorEventMult(Form("cutPass%stpcM%i", chrgs[ichg], imult));
204 cutFailEvMetaphitpc[aniter] = new AliFemtoCutMonitorEventMult(Form("cutFail%stpcM%i", chrgs[ichg], imult));
205 mecetaphitpc[aniter]->AddCutMonitor(cutPassEvMetaphitpc[aniter], cutFailEvMetaphitpc[aniter]);
206
207 cutPassEvVetaphitpc[aniter] = new AliFemtoCutMonitorEventVertex(Form("cutPass%stpcM%i", chrgs[ichg], imult));
208 cutFailEvVetaphitpc[aniter] = new AliFemtoCutMonitorEventVertex(Form("cutFail%stpcM%i", chrgs[ichg], imult));
209 mecetaphitpc[aniter]->AddCutMonitor(cutPassEvVetaphitpc[aniter], cutFailEvVetaphitpc[aniter]);
210
211 dtc1etaphitpc[aniter] = new AliFemtoKKTrackCut();
212// dtc1etaphitpc[aniter] = new AliFemtoESDTrackCut();
213 // dtc1etaphitpc[aniter]->SetPidProbPion(0.0,1.001);
214 // dtc1etaphitpc[aniter]->SetPidProbMuon(0.0,1.0);
215 // dtc1etaphitpc[aniter]->SetPidProbKaon(0.0,1.0);
216 // dtc1etaphitpc[aniter]->SetPidProbProton(0.0,1.0);
217 if (ichg == 0)
218 dtc1etaphitpc[aniter]->SetCharge(1.0);
219 else if (ichg == 1)
220 dtc1etaphitpc[aniter]->SetCharge(-1.0);
221
0d0e6a7a 222 dtc1etaphitpc[aniter]->SetPt(0.14,1.5);
e6de4690 223 // dtc1etaphitpc[aniter]->SetEta(-1.2,1.2);
8a882d4c 224 dtc1etaphitpc[aniter]->SetEta(-0.8,0.8); //0.5
e6de4690 225 // // dtc1etaphitpc[aniter]->SetEta(-0.5,0.5);
226/// dtc1etaphitpc[aniter]->SetMass(PionMass);
227 dtc1etaphitpc[aniter]->SetMass(KaonMass);
228
229
230 //// dtc1etaphitpc[aniter]->SetminTPCncls(80);
231
232/////// ----!!!!!!
233 dtc1etaphitpc[aniter]->SetMostProbableKaon(); //!!!!!!
b79e456a
MS
234 //------------------- November 2013 -----------------------------------<
235 //New class in AliFemo: PWGCF/FEMTOSCOPY/AliFemtoUser/AliFemtoKKTrackCut.cxx
236 dtc1etaphitpc[aniter]->SetNsigmaTPCle250(2.0);
e6de4690 237 dtc1etaphitpc[aniter]->SetNsigmaTPC250_400(2.0);
b79e456a
MS
238 dtc1etaphitpc[aniter]->SetNsigmaTPC400_450(2.0);
239 dtc1etaphitpc[aniter]->SetNsigmaTPC450_500(2.0);
e6de4690 240 dtc1etaphitpc[aniter]->SetNsigmaTPCge500(3.0);
b79e456a
MS
241 // new cuts are stronger, better separation of pion in TOF
242 // when momentum is greater then 800 MeV/c
243 dtc1etaphitpc[aniter]->SetNsigmaTOF500_800(2.0);
244 dtc1etaphitpc[aniter]->SetNsigmaTOF800_1000(1.5);
245 dtc1etaphitpc[aniter]->SetNsigmaTOFge1000(1.0);
246 //------------------- November 2013 ----------------------------------->
e6de4690 247
e6de4690 248//// dtc1etaphitpc[aniter]->SetMostProbablePion();
249 // // Track quality cuts
250 if (runtype == 0) {
251 dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCrefit|AliESDtrack::kITSrefit);
252 // dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCrefit);
253 // dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kITSrefit);
254 dtc1etaphitpc[aniter]->SetminTPCncls(80);
255 dtc1etaphitpc[aniter]->SetRemoveKinks(kTRUE);
256 dtc1etaphitpc[aniter]->SetLabel(kFALSE);
257 // dtc1etaphitpc[aniter]->SetMaxITSChiNdof(6.0);
258 dtc1etaphitpc[aniter]->SetMaxTPCChiNdof(4.0);
259 dtc1etaphitpc[aniter]->SetMaxImpactXY(DCAxy);
260 //Poland: dtc1etaphitpc[aniter]->SetMaxImpactXYPtDep(0.0182, 0.0350, -1.01);
261 dtc1etaphitpc[aniter]->SetMaxImpactZ(DCAz);
262 // dtc1etaphitpc[aniter]->SetMaxSigmaToVertex(6.0);
263 }
264 else if (runtype == 1) {
265 // dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCrefit|AliESDtrack::kITSrefit);
266 // dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCrefit);
267 // dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kITSrefit|AliESDtrack::kITSpureSA);
268 // dtc1etaphitpc[aniter]->SetminTPCncls(70);
269 dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kITSrefit);
270 dtc1etaphitpc[aniter]->SetRemoveKinks(kTRUE);
271 dtc1etaphitpc[aniter]->SetLabel(kFALSE);
272 // dtc1etaphitpc[aniter]->SetMaxITSChiNdof(6.0);
273 // dtc1etaphitpc[aniter]->SetMaxTPCChiNdof(6.0);
274 dtc1etaphitpc[aniter]->SetMaxImpactXY(DCAxy);
275 dtc1etaphitpc[aniter]->SetMaxImpactZ(DCAz);
276 // dtc1etaphitpc[aniter]->SetMaxSigmaToVertex(6.0);
277 }
278 else if (runtype == 2) {
279 // dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCrefit|AliESDtrack::kITSrefit);
280 dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCin);
281 // dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCrefit);
282 // dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kITSrefit);
283 dtc1etaphitpc[aniter]->SetminTPCncls(80); //was "0"
284 dtc1etaphitpc[aniter]->SetRemoveKinks(kTRUE);
285 dtc1etaphitpc[aniter]->SetLabel(kFALSE);
286 // dtc1etaphitpc[aniter]->SetMaxITSChiNdof(6.0);
287 dtc1etaphitpc[aniter]->SetMaxTPCChiNdof(4.0);
288 dtc1etaphitpc[aniter]->SetMaxImpactXY(DCAxy);
289 //dtc1etaphitpc[aniter]->SetMaxImpactXYPtDep(0.0182, 0.0350, -1.01);
290 dtc1etaphitpc[aniter]->SetMaxImpactZ(DCAz); //3.0
291 // dtc1etaphitpc[aniter]->SetMaxSigmaToVertex(6.0);
292 }
293
294
24c2a096 295/*
e6de4690 296 cutPass1YPtetaphitpc[aniter] = new AliFemtoCutMonitorParticleYPt(Form("cutPass1%stpcM%i", chrgs[ichg], imult), 0.493677);
297 cutFail1YPtetaphitpc[aniter] = new AliFemtoCutMonitorParticleYPt(Form("cutFail1%stpcM%i", chrgs[ichg], imult), 0.493677);
298 dtc1etaphitpc[aniter]->AddCutMonitor(cutPass1YPtetaphitpc[aniter], cutFail1YPtetaphitpc[aniter]);
299
300 cutPass1PIDetaphitpc[aniter] = new AliFemtoCutMonitorParticlePID(Form("cutPass1%stpcM%i", chrgs[ichg], imult),1);
301 cutFail1PIDetaphitpc[aniter] = new AliFemtoCutMonitorParticlePID(Form("cutFail1%stpcM%i", chrgs[ichg], imult),1);
302 dtc1etaphitpc[aniter]->AddCutMonitor(cutPass1PIDetaphitpc[aniter], cutFail1PIDetaphitpc[aniter]);
24c2a096 303*/
e6de4690 304
305 // sqpcetaphitpc[aniter] = new AliFemtoPairCutAntiGamma();
306 // sqpcetaphitpc[aniter] = new AliFemtoShareQualityTPCEntranceSepPairCut();
307
308 if (ichg < 2) {
b79e456a
MS
309 //sqpcetaphitpc[aniter] = new AliFemtoPairCutRadialDistance();//AliFemto dphi* cut
310 sqpcetaphitpc[aniter] = new AliFemtoPairCutRadialDistanceKK(); //Dhevan's dphi* cut
e6de4690 311 if (runtype == 0) {
312 sqpcetaphitpc[aniter]->SetShareQualityMax(1.0);
313 sqpcetaphitpc[aniter]->SetShareFractionMax(0.05);
314 sqpcetaphitpc[aniter]->SetRemoveSameLabel(kFALSE);
315 // sqpcetaphitpc[aniter]->SetMaxEEMinv(0.0);
316 // sqpcetaphitpc[aniter]->SetMaxThetaDiff(0.0);
317 //ml sqpcetaphitpc[aniter]->SetTPCEntranceSepMinimum(1.5);
318//ml sqpcetaphitpc[aniter]->SetRadialDistanceMinimum(0.12, 0.03);
319//ml sqpcetaphitpc[aniter]->SetEtaDifferenceMinimum(0.02);
320
321
b79e456a
MS
322 //--------- km: eta-phi* Dhevan's custs ----------->>>>
323 sqpcetaphitpc[aniter]->SetPhiStarDifferenceMinimum(PhiStarDifferenceMinimum);
324 sqpcetaphitpc[aniter]->SetEtaDifferenceMinimum(EtaDifferenceMinimum);
325 //sqpcetaphitpc[aniter]->SetMinimumRadius(0.8);//not need for AliFemtoPairCutRadialDistanceKK()
326 //--------- km: eta-phi* Dhevan's custs -----------<<<
e6de4690 327
328 //////////////sqpcetaphitpc[aniter]->SetMagneticFieldSign(1);
329
330
331
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 //ml sqpcetaphitpc[aniter]->SetTPCEntranceSepMinimum(5.0);
340// sqpcetaphitpc[aniter]->SetRadialDistanceMinimum(1.2, 0.03);
341// sqpcetaphitpc[aniter]->SetEtaDifferenceMinimum(0.02);
342
343// void SetPhiStarDifferenceMinimum(double dtpc);
344// void SetEtaDifferenceMinimum(double etpc);
345// void SetMinimumRadius(double minrad);
346// void SetMagneticFieldSign(int magsign);
347
b79e456a
MS
348 //--------- km: eta-phi* Dhevan's custs ----------->>>>
349 sqpcetaphitpc[aniter]->SetPhiStarDifferenceMinimum(PhiStarDifferenceMinimum);
350 sqpcetaphitpc[aniter]->SetEtaDifferenceMinimum(EtaDifferenceMinimum);
351 //sqpcetaphitpc[aniter]->SetMinimumRadius(0.8);//not need for AliFemtoPairCutRadialDistanceKK()
352 //--------- km: eta-phi* Dhevan's custs -----------<<<
e6de4690 353
354 /////////sqpcetaphitpc[aniter]->SetMagneticFieldSign(1);
355 //sqpcetaphitpc[aniter]->SetMagneticFieldSign(1.0);
356
357
358 }
359 else if (runtype == 2) {
360 sqpcetaphitpc[aniter]->SetDataType(AliFemtoPairCut::kAOD);
361 sqpcetaphitpc[aniter]->SetShareQualityMax(1.0);
362 sqpcetaphitpc[aniter]->SetShareFractionMax(0.05);
363 sqpcetaphitpc[aniter]->SetRemoveSameLabel(kFALSE);
364 // sqpcetaphitpc[aniter]->SetMaxEEMinv(0.0);
365 // sqpcetaphitpc[aniter]->SetMaxThetaDiff(0.0);
366 //ml sqpcetaphitpc[aniter]->SetTPCEntranceSepMinimum(0.0);
367//ml sqpcetaphitpc[aniter]->SetRadialDistanceMinimum(1.2, 0.045);
368//ml sqpcetaphitpc[aniter]->SetEtaDifferenceMinimum(0.016);
369
b79e456a
MS
370 //--------- km: eta-phi* Dhevan's custs ----------->>>>
371 sqpcetaphitpc[aniter]->SetPhiStarDifferenceMinimum(PhiStarDifferenceMinimum);
372 sqpcetaphitpc[aniter]->SetEtaDifferenceMinimum(EtaDifferenceMinimum);
373 //sqpcetaphitpc[aniter]->SetMinimumRadius(0.8);//not need for AliFemtoPairCutRadialDistanceKK()
374 //--------- km: eta-phi* Dhevan's custs -----------<<<
e6de4690 375
376 ////////sqpcetaphitpc[aniter]->SetMagneticFieldSign(1);
377
378
379 }
380 }
381
382
383 anetaphitpc[aniter]->SetEventCut(mecetaphitpc[aniter]);
384 anetaphitpc[aniter]->SetFirstParticleCut(dtc1etaphitpc[aniter]);
385 anetaphitpc[aniter]->SetSecondParticleCut(dtc1etaphitpc[aniter]);
386 anetaphitpc[aniter]->SetPairCut(sqpcetaphitpc[aniter]);
387
388 // cylmetaphitpc[aniter] = new AliFemtoCorrFctnDirectYlm(Form("cylm%stpcM%i", chrgs[ichg], imult),3,nbinssh,0.0,shqmaxSH,runshlcms);
389 /// anetaphitpc[aniter]->AddCorrFctn(cylmetaphitpc[aniter]);
390
391 // cqinvnclstpc[aniter] = new AliFemtoCorrFctnTPCNcls(Form("cqinvncls%stpcM%i", chrgs[ichg], imult),nbinssh,0.0,shqmax);
392 // anetaphitpc[aniter]->AddCorrFctn(cqinvnclstpc[aniter]);
393
394 // cqinvchi2tpc[aniter] = new AliFemtoChi2CorrFctn(Form("cqinvchi2%stpcM%i", chrgs[ichg], imult),nbinssh,0.0,shqmax);
395 // anetaphitpc[aniter]->AddCorrFctn(cqinvchi2tpc[aniter]);
396
397 if (runktdep) {
398 int ktm;
399 for (int ikt=0; ikt<cKt/*8*/; ikt++) {
400 ktm = aniter*cKt/*8*/ + ikt;
401 ktpcuts[ktm] = new AliFemtoKTPairCut(ktrng[ikt], ktrng[ikt+1]);
402
403//////// cylmkttpc[ktm] = new AliFemtoCorrFctnDirectYlm(Form("cylm%stpcM%ikT%i", chrgs[ichg], imult, ikt),3,
404/////// nbinssh, 0.0,
405////// (imult>6)?shqmaxSH*2.5:shqmaxSH,
406///// runshlcms);
407////// cylmkttpc[ktm]->SetPairSelectionCut(ktpcuts[ktm]);
408///// anetaphitpc[aniter]->AddCorrFctn(cylmkttpc[ktm]);
409
410 cqinvkttpc[ktm] = new AliFemtoQinvCorrFctn(Form("cqinv%stpcM%ikT%i", chrgs[ichg], imult, ikt),nbinssh,0.0,(imult>6)?shqmax*2.5:shqmax);
411// cqinvkttpc[ktm] = new AliFemtoQinvCorrFctn(Form("cqinv%stpcM%ikT%i", chrgs[ichg], imult, ikt),nbinssh,0.0,0.5);
412 cqinvkttpc[ktm]->SetPairSelectionCut(ktpcuts[ktm]);
413 anetaphitpc[aniter]->AddCorrFctn(cqinvkttpc[ktm]);
414
415 cqinvsqtpc[ktm] = new AliFemtoShareQualityCorrFctn(Form("cqinvsq%stpcM%ikT%i", chrgs[ichg], imult, ikt),nbinssh,0.0,shqmax);
416 cqinvsqtpc[ktm]->SetPairSelectionCut(ktpcuts[ktm]);
417 anetaphitpc[aniter]->AddCorrFctn(cqinvsqtpc[ktm]);
418
8a882d4c 419// cqinvinnertpc[ktm] = new AliFemtoTPCInnerCorrFctn(Form("cqinvinner%stpcM%ikT%i", chrgs[ichg], imult, ikt),nbinssh,0.0,shqmax);
420// cqinvinnertpc[ktm]->SetPairSelectionCut(ktpcuts[ktm]);
421// cqinvinnertpc[ktm]->SetRadius(1.2);
422// anetaphitpc[aniter]->AddCorrFctn(cqinvinnertpc[ktm]);
e6de4690 423
424//---- Correlation Function vs Delta_Eta and Delta_Phi (not Phi*)---->>>
8a882d4c 425// cdedpetaphi[ktm] = new AliFemtoCorrFctnDEtaDPhi(Form("cdedp%stpcM%ikT%i", chrgs[ichg], imult, ikt),100,100);
426// anetaphitpc[aniter]->AddCorrFctn(cdedpetaphi[ktm]);
e6de4690 427//---- Correlation Function vs Delta_Eta and Delta_Phi (not Phi*)----<<<
428
429 if (run3d) {
8a882d4c 430 // 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);
c587a3af 431
432 // AliFemtoBPLCMS3DCorrFctn *cq3dallpiptpc = new AliFemtoBPLCMS3DCorrFctn("cq3dallpiptpc",100,-1.5,1.5);
433
64b748af 434 cq3dlcmskttpc[ktm] = new AliFemtoBPLCMS3DCorrFctn(Form("cq3d%stpcM%ikT%i", chrgs[ichg], imult, ikt),60,-0.3,0.3);
c587a3af 435// cq3dlcmskttpc[ktm] = new AliFemtoCorrFctn3DLCMSSym(Form("cq3d%stpcM%ikT%i", chrgs[ichg], imult, ikt),50,0.5);
e6de4690 436 cq3dlcmskttpc[ktm]->SetPairSelectionCut(ktpcuts[ktm]);
437 anetaphitpc[aniter]->AddCorrFctn(cq3dlcmskttpc[ktm]);
438 }
439 }
440 }
441
442 // cdedpetaphi[aniter] = new AliFemtoCorrFctnDEtaDPhi(Form("cdedp%stpcM%i", chrgs[ichg], imult),24, 24);
443 // anetaphitpc[aniter]->AddCorrFctn(cdedpetaphi[aniter]);
444
445 Manager->AddAnalysis(anetaphitpc[aniter]);
446 }
447 }
448 }
449 }
450 // *** End Kaon-Kaon (positive) analysis
451
452 return Manager;
453}
454