]>
Commit | Line | Data |
---|---|---|
107c9b9e | 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 "AliFemtoCorrFctnDEtaDPhiCorrections.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 "AliFemtoPairCutPt.h" | |
52 | #endif | |
53 | ||
54 | //________________________________________________________________________ | |
55 | AliFemtoManager* ConfigFemtoAnalysis(const char* params="") { | |
56 | ||
57 | double PionMass = 0.13956995; | |
58 | double KaonMass = 0.493677; | |
59 | double ProtonMass = 0.938272013; | |
60 | ||
61 | const int numOfMultBins = 5; | |
62 | const int numOfChTypes = 13; | |
63 | const int numOfkTbins = 6; | |
64 | ||
65 | char *parameter[15]; | |
66 | if(strlen(params)!=0) | |
67 | { | |
68 | parameter[0] = strtok(params, ","); // Splits spaces between words in params | |
69 | cout<<"Parameter [0] (filterbit):"<<parameter[0]<<endl; // Writes first parameter | |
70 | parameter[1] = strtok(NULL, ","); | |
71 | cout<<"Parameter [1] (ktdep):"<<parameter[1]<<" "<<endl; | |
72 | parameter[2] = strtok(NULL, ","); | |
73 | cout<<"Parameter [2] (multdep):"<<parameter[2]<<" "<<endl; | |
74 | parameter[3] = strtok(NULL, ","); | |
75 | cout<<"Parameter [3]: (MinPlpContribSPD)"<<parameter[3]<<" "<<endl; | |
76 | parameter[4] = strtok(NULL, ","); | |
77 | cout<<"Parameter [4]: (multbino)"<<parameter[4]<<" "<<endl; | |
78 | parameter[5] = strtok(NULL, ","); | |
79 | cout<<"Parameter [5]: (zvertbino)"<<parameter[5]<<" "<<endl; | |
80 | parameter[6] = strtok(NULL, ","); | |
81 | cout<<"Parameter [6]: (ifGlobalTracks=true/false)"<<parameter[6]<<" "<<endl; | |
82 | parameter[7] = strtok(NULL, ","); | |
83 | cout<<"Parameter [7]: (shareQuality)"<<parameter[7]<<" "<<endl; | |
84 | parameter[8] = strtok(NULL, ","); | |
85 | cout<<"Parameter [8]: (shareFraction)"<<parameter[8]<<" "<<endl; | |
86 | parameter[9] = strtok(NULL, ","); | |
87 | cout<<"Parameter [9]: (ifElectronRejection)"<<parameter[9]<<" "<<endl; | |
88 | parameter[10] = strtok(NULL, ","); | |
89 | cout<<"Parameter [10]: (nSigma)"<<parameter[10]<<" "<<endl; | |
90 | parameter[11] = strtok(NULL, ","); | |
91 | cout<<"Parameter [12]: (etaMin)"<<parameter[11]<<" "<<endl; | |
92 | parameter[12] = strtok(NULL, ","); | |
93 | cout<<"Parameter [12]: (etaMax)"<<parameter[12]<<" "<<endl; | |
94 | parameter[13] = strtok(NULL, ","); | |
95 | cout<<"Parameter [13]: (ispileup)"<<parameter[13]<<" "<<endl; | |
96 | } | |
97 | int filterbit = atoi(parameter[0]); //96 / 768 / 128 | |
98 | int runktdep = atoi(parameter[1]); //0 | |
99 | int runmultdep = atoi(parameter[2]); //0 | |
100 | int minPlpContribSPD = atoi(parameter[3]); //3 | |
101 | int multbino = atoi(parameter[4]); //30 | |
102 | int zvertbino = atoi(parameter[5]); //10 | |
103 | Bool_t ifGlobalTracks=kFALSE; if(atoi(parameter[6]))ifGlobalTracks=kTRUE;//kTRUE | |
104 | double shareQuality = atof(parameter[7]); //0.00 | |
105 | double shareFraction = atof(parameter[8]); //0.05 | |
106 | bool ifElectronRejection = atoi(parameter[9]); //true | |
107 | double nSigmaVal = atof(parameter[10]); //3.0 | |
108 | double nEtaMin = atof(parameter[11]); //-0.8 | |
109 | double nEtaMax = atof(parameter[12]); //0.8 | |
110 | bool ifIsPileUp = atoi(parameter[13]); //true | |
111 | ||
65d46120 | 112 | |
113 | printf("*** Connect to AliEn ***\n"); | |
114 | TGrid::Connect("alien://"); | |
115 | ||
107c9b9e | 116 | int runmults[numOfMultBins] = {0, 0, 0, 0, 1}; |
117 | if(runmultdep) {runmults[0]=1; runmults[1]=1; runmults[2]=1; } | |
118 | int multbins[numOfMultBins+1] = {2, 20, 50,150,2,150}; | |
119 | ||
120 | int runch[numOfChTypes] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}; | |
121 | const char *chrgs[numOfChTypes] = { "PP", "aPaP", "PaP", "KpKp", "KmKm", "KpKm", "PIpPIp", "PImPIm", "PIpPIm", "all", "plus", "minus", "mixed" }; | |
122 | ||
123 | int runktdep = 1; | |
124 | double ktrng[numOfkTbins+1] = {0.0, 0, 0, 0, 0, 0}; | |
125 | double ktrngAll[numOfkTbins+1] = {0.0, 7.0, 1.2, 2.0, 3.0, 4.0, 100.0}; | |
126 | double ktrngPion[numOfkTbins+1] = {0.0, 0.7, 0.9, 1.1, 1.4, 2.5, 100.0}; | |
127 | double ktrngKaon[numOfkTbins+1] = {0.0, 1.5, 2.5, 3.5, 100.0, 0, 0}; | |
128 | double ktrngProton[numOfkTbins+1] = {0.0, 2.75, 100, 0, 0}; | |
129 | ||
130 | int runqinv = 1; | |
131 | int runshlcms = 1;// 0:PRF(PAP), 1:LCMS(PP,APAP) | |
132 | ||
133 | int runtype = 0; // Types 0 - global, 1 - ITS only, 2 - TPC Inner //global tracks ->mfit ITS+TPC | |
134 | int owncuts = 0; | |
135 | int owndca = 0; | |
136 | ||
137 | int gammacut = 0; // cut na ee z gamma | |
138 | ||
139 | double shqmax = 0.5; | |
140 | int nbinssh = 100; | |
141 | ||
142 | //AliFemtoEventReaderESDChain *Reader = new AliFemtoEventReaderESDChain(); | |
143 | //Reader->SetUseMultiplicity(AliFemtoEventReaderESDChain::kGlobalCount); | |
144 | ||
145 | ||
146 | AliFemtoEventReaderAODChain *Reader = new AliFemtoEventReaderAODChain(); | |
147 | Reader->SetFilterMask(filterbit); | |
148 | Reader->SetDCAglobalTrack(ifGlobalTracks); //false for FB7, true for the rest //we do not use DCA at all | |
149 | Reader->SetUseMultiplicity(AliFemtoEventReaderAOD::kReference); | |
150 | Reader->SetMinPlpContribSPD(minPlpContribSPD); | |
151 | Reader->SetIsPileUpEvent(ifIsPileUp); | |
152 | ||
153 | AliFemtoManager* Manager = new AliFemtoManager(); | |
154 | Manager->SetEventReader(Reader); | |
155 | ||
156 | AliFemtoVertexMultAnalysis *anetaphitpc[numOfMultBins*numOfChTypes]; | |
157 | AliFemtoBasicEventCut *mecetaphitpc[numOfMultBins*numOfChTypes]; | |
158 | AliFemtoCutMonitorEventMult *cutPassEvMetaphitpc[numOfMultBins*numOfChTypes]; | |
159 | AliFemtoCutMonitorEventMult *cutFailEvMetaphitpc[numOfMultBins*numOfChTypes]; | |
160 | AliFemtoCutMonitorEventVertex *cutPassEvVetaphitpc[numOfMultBins*numOfChTypes]; | |
161 | AliFemtoCutMonitorEventVertex *cutFailEvVetaphitpc[numOfMultBins*numOfChTypes]; | |
162 | AliFemtoESDTrackCut *dtc1etaphitpc[numOfMultBins*numOfChTypes]; | |
163 | AliFemtoESDTrackCut *dtc2etaphitpc[numOfMultBins*numOfChTypes]; | |
164 | AliFemtoESDTrackCut *dtc3etaphitpc[numOfMultBins*numOfChTypes]; | |
165 | AliFemtoCutMonitorParticleYPt *cutPass1YPtetaphitpc[numOfMultBins*numOfChTypes]; | |
166 | AliFemtoCutMonitorParticleYPt *cutFail1YPtetaphitpc[numOfMultBins*numOfChTypes]; | |
167 | AliFemtoCutMonitorParticlePID *cutPass1PIDetaphitpc[numOfMultBins*numOfChTypes]; | |
168 | AliFemtoCutMonitorParticlePID *cutFail1PIDetaphitpc[numOfMultBins*numOfChTypes]; | |
169 | AliFemtoCutMonitorParticleYPt *cutPass2YPtetaphitpc[numOfMultBins*numOfChTypes]; | |
170 | AliFemtoCutMonitorParticleYPt *cutFail2YPtetaphitpc[numOfMultBins*numOfChTypes]; | |
171 | AliFemtoCutMonitorParticlePID *cutPass2PIDetaphitpc[numOfMultBins*numOfChTypes]; | |
172 | AliFemtoCutMonitorParticlePID *cutFail2PIDetaphitpc[numOfMultBins*numOfChTypes]; | |
173 | AliFemtoCutMonitorParticleYPt *cutPass3YPtetaphitpc[numOfMultBins*numOfChTypes]; | |
174 | AliFemtoCutMonitorParticleYPt *cutFail3YPtetaphitpc[numOfMultBins*numOfChTypes]; | |
175 | AliFemtoCutMonitorParticlePID *cutPass3PIDetaphitpc[numOfMultBins*numOfChTypes]; | |
176 | AliFemtoCutMonitorParticlePID *cutFail3PIDetaphitpc[numOfMultBins*numOfChTypes]; | |
177 | // AliFemtoShareQualityTPCEntranceSepPairCut *sqpcetaphitpcsame[numOfMultBins*numOfChTypes]; | |
178 | //AliFemtoPairCutAntiGamma *sqpcetaphitpc[numOfMultBins*numOfChTypes]; | |
179 | //AliFemtoPairCutRadialDistance *sqpcetaphitpc[numOfMultBins*numOfChTypes]; | |
180 | AliFemtoShareQualityPairCut *sqpcetaphitpc[numOfMultBins*numOfChTypes]; | |
181 | // AliFemtoChi2CorrFctn *cchiqinvetaphitpc[numOfMultBins*numOfChTypes]; | |
182 | AliFemtoPairCutPt *ktpcuts[numOfMultBins*numOfChTypes*numOfkTbins]; | |
183 | AliFemtoQinvCorrFctn *cqinvkttpc[numOfMultBins*numOfChTypes*numOfkTbins]; | |
184 | AliFemtoQinvCorrFctn *cqinvtpc[numOfMultBins*numOfChTypes]; | |
185 | AliFemtoCorrFctnDEtaDPhiCorrections *cdedpetaphi[numOfMultBins*numOfChTypes]; | |
186 | AliFemtoCorrFctnDEtaDPhiCorrections *cdedpetaphiPt[numOfMultBins*numOfChTypes*numOfkTbins]; | |
187 | ||
188 | ||
189 | ||
190 | // *** Third QA task - HBT analysis with all pair cuts off, TPC only *** | |
191 | // *** Begin pion-pion (positive) analysis *** | |
192 | int aniter = 0; | |
193 | ||
194 | for (int imult = 0; imult < numOfMultBins; imult++) | |
195 | { | |
196 | if (runmults[imult]) | |
197 | { | |
198 | for (int ichg = 0; ichg < numOfChTypes; ichg++) | |
199 | { | |
200 | if (runch[ichg]) | |
201 | { | |
202 | ||
203 | aniter = ichg * numOfMultBins + imult; | |
204 | anetaphitpc[aniter] = new AliFemtoVertexMultAnalysis(zvertbino, -10.0, 10.0, multbino, multbins[imult], multbins[imult+1]); | |
205 | anetaphitpc[aniter]->SetNumEventsToMix(10); | |
206 | anetaphitpc[aniter]->SetMinSizePartCollection(1); | |
207 | anetaphitpc[aniter]->SetVerboseMode(kFALSE);//~~~~~~~~~~~~~~~~ | |
208 | ||
209 | //*** Event cut *** | |
210 | mecetaphitpc[aniter] = new AliFemtoBasicEventCut(); | |
211 | mecetaphitpc[aniter]->SetEventMult(0.001,100000); | |
212 | mecetaphitpc[aniter]->SetVertZPos(-10,10);//cm | |
213 | ||
214 | //****** event monitors ********** | |
215 | cutPassEvMetaphitpc[aniter] = new AliFemtoCutMonitorEventMult(Form("cutPass%stpcM%i", chrgs[ichg], imult)); | |
216 | cutFailEvMetaphitpc[aniter] = new AliFemtoCutMonitorEventMult(Form("cutFail%stpcM%i", chrgs[ichg], imult)); | |
217 | mecetaphitpc[aniter]->AddCutMonitor(cutPassEvMetaphitpc[aniter], cutFailEvMetaphitpc[aniter]); | |
218 | ||
219 | cutPassEvVetaphitpc[aniter] = new AliFemtoCutMonitorEventVertex(Form("cutPass%stpcM%i", chrgs[ichg], imult)); | |
220 | cutFailEvVetaphitpc[aniter] = new AliFemtoCutMonitorEventVertex(Form("cutFail%stpcM%i", chrgs[ichg], imult)); | |
221 | mecetaphitpc[aniter]->AddCutMonitor(cutPassEvVetaphitpc[aniter], cutFailEvVetaphitpc[aniter]); | |
222 | ||
223 | ||
224 | // ***** single particle track cuts ********* | |
225 | dtc1etaphitpc[aniter] = new AliFemtoESDTrackCut(); | |
226 | dtc2etaphitpc[aniter] = new AliFemtoESDTrackCut(); | |
227 | dtc1etaphitpc[aniter]->SetNsigmaTPCTOF(kTRUE); | |
228 | dtc2etaphitpc[aniter]->SetNsigmaTPCTOF(kTRUE); | |
229 | dtc1etaphitpc[aniter]->SetNsigma(nSigmaVal); | |
230 | dtc2etaphitpc[aniter]->SetNsigma(nSigmaVal); | |
231 | //dtc3etaphitpc[aniter]->SetNsigma(3.0); | |
232 | ||
233 | dtc1etaphitpc[aniter]->SetCharge(1.0); | |
234 | dtc2etaphitpc[aniter]->SetCharge(-1.0); | |
235 | ||
236 | dtc1etaphitpc[aniter]->SetEta(nEtaMin,nEtaMax); | |
237 | dtc2etaphitpc[aniter]->SetEta(nEtaMin,nEtaMax); | |
238 | ||
239 | ||
240 | dtc1etaphitpc[aniter]->SetElectronRejection(ifElectronRejection); | |
241 | dtc2etaphitpc[aniter]->SetElectronRejection(ifElectronRejection); | |
242 | ||
243 | ||
244 | ||
245 | if (ichg == 0 ||ichg == 1 ||ichg == 2)//protons 0-2 | |
246 | { | |
247 | dtc1etaphitpc[aniter]->SetPt(0.5,4); | |
248 | dtc2etaphitpc[aniter]->SetPt(0.5,4); | |
249 | ||
250 | dtc1etaphitpc[aniter]->SetMass(ProtonMass); | |
251 | dtc1etaphitpc[aniter]->SetMostProbableProton(); | |
252 | dtc2etaphitpc[aniter]->SetMass(ProtonMass); | |
253 | dtc2etaphitpc[aniter]->SetMostProbableProton(); | |
254 | } | |
255 | ||
256 | if (ichg == 3 ||ichg == 4 ||ichg == 5)//kaons 3-5 | |
257 | { | |
258 | dtc1etaphitpc[aniter]->SetPt(0.3,4); | |
259 | dtc2etaphitpc[aniter]->SetPt(0.3,4); | |
260 | ||
261 | dtc1etaphitpc[aniter]->SetMass(KaonMass); | |
262 | dtc1etaphitpc[aniter]->SetMostProbableKaon(); | |
263 | dtc2etaphitpc[aniter]->SetMass(KaonMass); | |
264 | dtc2etaphitpc[aniter]->SetMostProbableKaon(); | |
265 | ||
266 | } | |
267 | if (ichg == 6 ||ichg == 7 ||ichg == 8)//pions 6-8 | |
268 | { | |
269 | dtc1etaphitpc[aniter]->SetPt(0.2,4); | |
270 | dtc2etaphitpc[aniter]->SetPt(0.2,4); | |
271 | ||
272 | dtc1etaphitpc[aniter]->SetMass(PionMass); | |
273 | dtc1etaphitpc[aniter]->SetMostProbablePion(); | |
274 | dtc2etaphitpc[aniter]->SetMass(PionMass); | |
275 | dtc2etaphitpc[aniter]->SetMostProbablePion(); | |
276 | } | |
277 | if (ichg == 9)//all | |
278 | { | |
279 | ||
280 | dtc3etaphitpc[aniter] = new AliFemtoESDTrackCut(); | |
281 | dtc3etaphitpc[aniter]->SetNsigmaTPCTOF(kTRUE); | |
282 | dtc3etaphitpc[aniter]->SetEta(nEtaMin,nEtaMax); | |
283 | dtc3etaphitpc[aniter]->SetElectronRejection(ifElectronRejection); | |
284 | dtc3etaphitpc[aniter]->SetPt(0.2,4); | |
285 | } | |
286 | if (ichg == 10 ||ichg == 11 ||ichg == 12)//plus,minus,mixed | |
287 | { | |
288 | dtc1etaphitpc[aniter]->SetPt(0.2,4); | |
289 | dtc2etaphitpc[aniter]->SetPt(0.2,4); | |
290 | } | |
291 | ||
292 | //****** DCA ****** | |
293 | ||
294 | if(owndca){ | |
295 | dtc1etaphitpc[aniter]->SetMaxImpactXYPtDep(0.018, 0.035, -1.01); // DCA xy | |
296 | //dtc1etaphitpc[aniter]->SetMaxImpactXYPtDep(0.0182, 0.0350, -1.01); | |
297 | dtc1etaphitpc[aniter]->SetMaxImpactZ(2); //DCA Z | |
298 | dtc2etaphitpc[aniter]->SetMaxImpactXYPtDep(0.018, 0.035, -1.01); // DCA xy | |
299 | dtc2etaphitpc[aniter]->SetMaxImpactZ(2); //DCA Z | |
300 | if (ichg == 9){dtc3etaphitpc[aniter]->SetMaxImpactXYPtDep(0.018, 0.035, -1.01); // DCA xy | |
301 | dtc3etaphitpc[aniter]->SetMaxImpactZ(2);} //DCA Z | |
302 | } | |
303 | //****** Track quality cuts ****** | |
304 | ||
305 | if(owncuts){ | |
306 | ||
307 | dtc1etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCrefit|AliESDtrack::kITSrefit); | |
308 | dtc1etaphitpc[aniter]->SetminTPCncls(70); | |
309 | dtc1etaphitpc[aniter]->SetRemoveKinks(kTRUE); | |
310 | dtc1etaphitpc[aniter]->SetLabel(kFALSE); | |
311 | // dtc1etaphitpc[aniter]->SetMaxITSChiNdof(6.0); | |
312 | dtc1etaphitpc[aniter]->SetMaxTPCChiNdof(4.0); // pisac | |
313 | //dtc1etaphitpc[aniter]->SetMaxSigmaToVertex(6.0); | |
314 | ||
315 | dtc2etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCrefit|AliESDtrack::kITSrefit); | |
316 | dtc2etaphitpc[aniter]->SetminTPCncls(70); | |
317 | dtc2etaphitpc[aniter]->SetRemoveKinks(kTRUE); | |
318 | dtc2etaphitpc[aniter]->SetLabel(kFALSE); | |
319 | // dtc2etaphitpc[aniter]->SetMaxITSChiNdof(6.0); | |
320 | dtc2etaphitpc[aniter]->SetMaxTPCChiNdof(4.0); | |
321 | // dtc2etaphitpc[aniter]->SetMaxSigmaToVertex(6.0); | |
322 | if (ichg == 9){ | |
323 | dtc3etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCrefit|AliESDtrack::kITSrefit); | |
324 | dtc3etaphitpc[aniter]->SetminTPCncls(70); | |
325 | dtc3etaphitpc[aniter]->SetRemoveKinks(kTRUE); | |
326 | dtc3etaphitpc[aniter]->SetLabel(kFALSE); | |
327 | // dtc3etaphitpc[aniter]->SetMaxITSChiNdof(6.0); | |
328 | dtc3etaphitpc[aniter]->SetMaxTPCChiNdof(4.0); | |
329 | // dtc3etaphitpc[aniter]->SetMaxSigmaToVertex(6.0); | |
330 | } | |
331 | ||
332 | } | |
333 | //**************** track Monitors *************** | |
334 | ||
335 | ||
336 | if(1)//ichg>8) | |
337 | { | |
338 | if(ichg<2 || ichg==3||ichg==4 || ichg==6|| ichg==7||ichg==9||ichg==10||ichg==11){ | |
339 | cutPass3YPtetaphitpc[aniter] = new AliFemtoCutMonitorParticleYPt(Form("cutPass%stpcM%i", chrgs[ichg], imult),PionMass); | |
340 | cutFail3YPtetaphitpc[aniter] = new AliFemtoCutMonitorParticleYPt(Form("cutFail%stpcM%i", chrgs[ichg], imult),PionMass); | |
341 | } | |
342 | if(ichg==9) dtc3etaphitpc[aniter]->AddCutMonitor(cutPass3YPtetaphitpc[aniter], cutFail3YPtetaphitpc[aniter]); | |
343 | if(ichg==0||ichg==3||ichg==6||ichg==10) dtc1etaphitpc[aniter]->AddCutMonitor(cutPass3YPtetaphitpc[aniter], cutFail3YPtetaphitpc[aniter]); | |
344 | if(ichg==1||ichg==4||ichg==7||ichg==11) dtc2etaphitpc[aniter]->AddCutMonitor(cutPass3YPtetaphitpc[aniter], cutFail3YPtetaphitpc[aniter]); | |
345 | ||
346 | if(ichg<2){ //PP, PaP | |
347 | cutPass3PIDetaphitpc[aniter] = new AliFemtoCutMonitorParticlePID(Form("cutPass%stpcM%i", chrgs[ichg], imult),2);//0-pion,1-kaon,2-proton | |
348 | cutFail3PIDetaphitpc[aniter] = new AliFemtoCutMonitorParticlePID(Form("cutFail%stpcM%i", chrgs[ichg], imult),2); | |
349 | if(ichg==0) dtc1etaphitpc[aniter]->AddCutMonitor(cutPass3PIDetaphitpc[aniter], cutFail3PIDetaphitpc[aniter]); | |
350 | if(ichg==1) dtc2etaphitpc[aniter]->AddCutMonitor(cutPass3PIDetaphitpc[aniter], cutFail3PIDetaphitpc[aniter]); | |
351 | } | |
352 | else if(ichg>=3 && ichg<=4){//KpKp, KmKm | |
353 | cutPass3PIDetaphitpc[aniter] = new AliFemtoCutMonitorParticlePID(Form("cutPass%stpcM%i", chrgs[ichg], imult),1);//0-pion,1-kaon,2-proton | |
354 | cutFail3PIDetaphitpc[aniter] = new AliFemtoCutMonitorParticlePID(Form("cutFail%stpcM%i", chrgs[ichg], imult),1); | |
355 | if(ichg==3) dtc1etaphitpc[aniter]->AddCutMonitor(cutPass3PIDetaphitpc[aniter], cutFail3PIDetaphitpc[aniter]); | |
356 | if(ichg==4) dtc2etaphitpc[aniter]->AddCutMonitor(cutPass3PIDetaphitpc[aniter], cutFail3PIDetaphitpc[aniter]); | |
357 | } | |
358 | else if(ichg==6||ichg==10||ichg==7||ichg==11||ichg==9){ //pions, all | |
359 | cutPass3PIDetaphitpc[aniter] = new AliFemtoCutMonitorParticlePID(Form("cutPass%stpcM%i", chrgs[ichg], imult),0);//0-pion,1-kaon,2-proton | |
360 | cutFail3PIDetaphitpc[aniter] = new AliFemtoCutMonitorParticlePID(Form("cutFail%stpcM%i", chrgs[ichg], imult),0); | |
361 | if(ichg==6||ichg==10) dtc1etaphitpc[aniter]->AddCutMonitor(cutPass3PIDetaphitpc[aniter], cutFail3PIDetaphitpc[aniter]); | |
362 | if(ichg==7||ichg==11) dtc2etaphitpc[aniter]->AddCutMonitor(cutPass3PIDetaphitpc[aniter], cutFail3PIDetaphitpc[aniter]); | |
363 | if(ichg==9) dtc3etaphitpc[aniter]->AddCutMonitor(cutPass3PIDetaphitpc[aniter], cutFail3PIDetaphitpc[aniter]); | |
364 | } | |
365 | } | |
366 | ||
367 | //******** Two - track cuts ************ | |
368 | //sqpcetaphitpc[aniter] = new AliFemtoPairCutAntiGamma(); | |
369 | sqpcetaphitpc[aniter] = new AliFemtoShareQualityPairCut(); | |
370 | ||
371 | sqpcetaphitpc[aniter]->SetShareQualityMax(shareQuality); // two track cuts on splitting and merging //1- wylaczany 0 -wlaczany | |
372 | sqpcetaphitpc[aniter]->SetShareFractionMax(shareFraction); // ile moga miec wspolnych klastrow //1 - wylaczany, 0.05 - wlaczany | |
373 | sqpcetaphitpc[aniter]->SetRemoveSameLabel(kFALSE); | |
374 | // sqpcetaphitpc[aniter]->SetMaximumRadius(0.82); | |
375 | // sqpcetaphitpc[aniter]->SetMinimumRadius(0.8); | |
376 | // sqpcetaphitpc[aniter]->SetPhiStarDifferenceMinimum(0.02); | |
377 | // sqpcetaphitpc[aniter]->SetEtaDifferenceMinimum(0.02); | |
378 | /* | |
379 | if (gammacut == 0) | |
380 | { | |
381 | sqpcetaphitpc[aniter]->SetMaxEEMinv(0.0); | |
382 | sqpcetaphitpc[aniter]->SetMaxThetaDiff(0.0); | |
383 | } | |
384 | else if (gammacut == 1) | |
385 | { | |
386 | sqpcetaphitpc[aniter]->SetMaxEEMinv(0.002); | |
387 | sqpcetaphitpc[aniter]->SetMaxThetaDiff(0.008); | |
388 | } | |
389 | */ | |
390 | // sqpcetaphitpc[aniter]->SetTPCEntranceSepMinimum(1.5); | |
391 | // sqpcetaphitpc[aniter]->SetRadialDistanceMinimum(0.12, 0.03); | |
392 | // sqpcetaphitpc[aniter]->SetEtaDifferenceMinimum(0.02); | |
393 | ||
394 | ||
395 | ||
396 | ||
397 | //***** Setting cuts *********** | |
398 | ||
399 | ||
400 | // setting event cut | |
401 | anetaphitpc[aniter]->SetEventCut(mecetaphitpc[aniter]); | |
402 | //setting single track cuts | |
403 | if(ichg==0 || ichg==3 || ichg==6 || ichg==10) //positive like-sign | |
404 | { | |
405 | anetaphitpc[aniter]->SetFirstParticleCut(dtc1etaphitpc[aniter]); | |
406 | anetaphitpc[aniter]->SetSecondParticleCut(dtc1etaphitpc[aniter]); | |
407 | } | |
408 | if(ichg==1 || ichg==4 || ichg==7 || ichg==11)//negative like-sign | |
409 | { | |
410 | anetaphitpc[aniter]->SetFirstParticleCut(dtc2etaphitpc[aniter]); | |
411 | anetaphitpc[aniter]->SetSecondParticleCut(dtc2etaphitpc[aniter]); | |
412 | } | |
413 | if(ichg==2 || ichg==5 || ichg==8 || ichg==12)//unlike-sign | |
414 | { | |
415 | anetaphitpc[aniter]->SetFirstParticleCut(dtc1etaphitpc[aniter]); | |
416 | anetaphitpc[aniter]->SetSecondParticleCut(dtc2etaphitpc[aniter]); | |
417 | } | |
418 | if(ichg==9) //all | |
419 | { | |
420 | anetaphitpc[aniter]->SetFirstParticleCut(dtc3etaphitpc[aniter]); | |
421 | anetaphitpc[aniter]->SetSecondParticleCut(dtc3etaphitpc[aniter]); | |
422 | } | |
423 | ||
424 | //setting two-track cuts | |
425 | anetaphitpc[aniter]->SetPairCut(sqpcetaphitpc[aniter]); | |
426 | ||
427 | ||
428 | //**** Correlation functions ******* | |
429 | ||
430 | cdedpetaphi[aniter] = new AliFemtoCorrFctnDEtaDPhiCorrections(Form("cdedp%stpcM%i", chrgs[ichg], imult),35, 35); | |
431 | if(ichg==0 || ichg==1 || ichg==2) | |
432 | cdedpetaphi[aniter]->LoadCorrectionTabFromROOTFile1D("alien:///alice/cern.ch/user/m/majanik/2014/DEtaDPhi/Data/AOD/SystematicStudies/PIDSqrtNsigma/Corrections/4D/4Dmap_DataDCA.root.root", AliFemtoCorrFctnDEtaDPhiCorrections::kProton, AliFemtoCorrFctnDEtaDPhiCorrections::kProton/*,1,1,1,0*/); | |
433 | //cdedpetaphi[aniter]->LoadCorrectionTabFromROOTFile("alien:///alice/cern.ch/user/m/majanik/2014/DEtaDPhi/Data/AOD/SystematicStudies/PIDSqrtNsigma/Corrections/4D/4Dmap_DataDCA.root.root", AliFemtoCorrFctnDEtaDPhiCorrections::kProton, AliFemtoCorrFctnDEtaDPhiCorrections::kProton,1,1,1,1); | |
434 | else if(ichg==3 || ichg==4 || ichg==5) | |
435 | cdedpetaphi[aniter]->LoadCorrectionTabFromROOTFile1D("alien:///alice/cern.ch/user/m/majanik/2014/DEtaDPhi/Data/AOD/SystematicStudies/PIDSqrtNsigma/Corrections/4D/4Dmap_DataDCA.root.root", AliFemtoCorrFctnDEtaDPhiCorrections::kKaon, AliFemtoCorrFctnDEtaDPhiCorrections::kKaon/*,1,1,1,0*/); | |
436 | //cdedpetaphi[aniter]->LoadCorrectionTabFromROOTFile("alien:///alice/cern.ch/user/m/majanik/2014/DEtaDPhi/Data/AOD/SystematicStudies/PIDSqrtNsigma/Corrections/4D/4Dmap_DataDCA.root.root", AliFemtoCorrFctnDEtaDPhiCorrections::kKaon, AliFemtoCorrFctnDEtaDPhiCorrections::kKaon,1,1,1,1); | |
437 | ||
438 | else if(ichg==6 || ichg==7 || ichg==8) | |
439 | cdedpetaphi[aniter]->LoadCorrectionTabFromROOTFile1D("alien:///alice/cern.ch/user/m/majanik/2014/DEtaDPhi/Data/AOD/SystematicStudies/PIDSqrtNsigma/Corrections/4D/4Dmap_DataDCA.root.root", AliFemtoCorrFctnDEtaDPhiCorrections::kPion, AliFemtoCorrFctnDEtaDPhiCorrections::kPion/*,1,1,1,0*/); | |
440 | ||
441 | //cdedpetaphi[aniter]->LoadCorrectionTabFromROOTFile("alien:///alice/cern.ch/user/m/majanik/2014/DEtaDPhi/Data/AOD/SystematicStudies/PIDSqrtNsigma/Corrections/4D/4Dmap_DataDCA.root.root", AliFemtoCorrFctnDEtaDPhiCorrections::kPion, AliFemtoCorrFctnDEtaDPhiCorrections::kPion,1,1,1,1); | |
442 | ||
443 | else | |
444 | cdedpetaphi[aniter]->LoadCorrectionTabFromROOTFile1D("alien:///alice/cern.ch/user/m/majanik/2014/DEtaDPhi/Data/AOD/SystematicStudies/PIDSqrtNsigma/Corrections/4D/4Dmap_DataDCA.root.root", AliFemtoCorrFctnDEtaDPhiCorrections::kAll, AliFemtoCorrFctnDEtaDPhiCorrections::kAll/*,1,1,1,0*/); | |
445 | //cdedpetaphi[aniter]->LoadCorrectionTabFromROOTFile("alien:///alice/cern.ch/user/m/majanik/2014/DEtaDPhi/Data/AOD/SystematicStudies/PIDSqrtNsigma/Corrections/4D/4Dmap_DataDCA.root.root", AliFemtoCorrFctnDEtaDPhiCorrections::kAll, AliFemtoCorrFctnDEtaDPhiCorrections::kAll,1,1,1,1); | |
446 | ||
447 | ||
448 | ||
449 | ||
450 | anetaphitpc[aniter]->AddCorrFctn(cdedpetaphi[aniter]); | |
451 | ||
452 | ||
453 | if (runktdep) | |
454 | { | |
455 | ||
456 | if(ichg<=2){ | |
457 | for(int kit=0;kit<=numOfkTbins;kit++) | |
458 | ktrng[kit]=ktrngProton[kit]; | |
459 | } | |
460 | else if(ichg>2&&ichg<6){ | |
461 | for(int kit=0;kit<=numOfkTbins;kit++) | |
462 | ktrng[kit]=ktrngKaon[kit]; | |
463 | } | |
464 | else if(ichg>=6&&ichg<=8){ | |
465 | for(int kit=0;kit<=numOfkTbins;kit++) | |
466 | ktrng[kit]=ktrngPion[kit]; | |
467 | } | |
468 | else if(ichg>=9){ | |
469 | for(int kit=0;kit<=numOfkTbins;kit++) | |
470 | ktrng[kit]=ktrngAll[kit]; | |
471 | } | |
472 | ||
473 | ||
474 | int ktm; | |
475 | for (int ikt=0; ikt<numOfkTbins; ikt++) | |
476 | { | |
477 | if(ktrng[ikt+1]==0) continue; | |
478 | ktm = aniter * numOfkTbins + ikt; | |
479 | ktpcuts[ktm] = new AliFemtoPairCutPt(ktrng[ikt], ktrng[ikt+1]); | |
480 | ||
481 | //cqinvkttpc[ktm] = new AliFemtoQinvCorrFctn(Form("cqinv%stpcM%ikT%i", chrgs[ichg], imult, ikt),nbinssh,0.0,(imult>6)?shqmax*2.5:shqmax); | |
482 | //cqinvkttpc[ktm]->SetPairSelectionCut(ktpcuts[ktm]); | |
483 | //anetaphitpc[aniter]->AddCorrFctn(cqinvkttpc[ktm]); | |
484 | ||
485 | cdedpetaphiPt[ktm] = new AliFemtoCorrFctnDEtaDPhiCorrections(Form("cdedp%stpcM%ipT%i", chrgs[ichg], imult,ikt),35, 35); | |
486 | cdedpetaphiPt[ktm]->SetPairSelectionCut(ktpcuts[ktm]); | |
487 | ||
488 | if(ichg==0 || ichg==1 || ichg==2) | |
489 | cdedpetaphiPt[ktm]->LoadCorrectionTabFromROOTFile1D("alien:///alice/cern.ch/user/m/majanik/2014/DEtaDPhi/Data/AOD/SystematicStudies/PIDSqrtNsigma/Corrections/4D/4Dmap_DataDCA.root.root", AliFemtoCorrFctnDEtaDPhiCorrections::kPion, AliFemtoCorrFctnDEtaDPhiCorrections::kProton/*,1,1,1,1*/); | |
490 | else if(ichg==3 || ichg==4 || ichg==5) | |
491 | cdedpetaphiPt[ktm]->LoadCorrectionTabFromROOTFile1D("alien:///alice/cern.ch/user/m/majanik/2014/DEtaDPhi/Data/AOD/SystematicStudies/PIDSqrtNsigma/Corrections/4D/4Dmap_DataDCA.root.root", AliFemtoCorrFctnDEtaDPhiCorrections::kKaon, AliFemtoCorrFctnDEtaDPhiCorrections::kKaon); | |
492 | else if(ichg==6 || ichg==7 || ichg==8) | |
493 | cdedpetaphiPt[ktm]->LoadCorrectionTabFromROOTFile1D("alien:///alice/cern.ch/user/m/majanik/2014/DEtaDPhi/Data/AOD/SystematicStudies/PIDSqrtNsigma/Corrections/4D/4Dmap_DataDCA.root.root", AliFemtoCorrFctnDEtaDPhiCorrections::kProton, AliFemtoCorrFctnDEtaDPhiCorrections::kPion); | |
494 | else | |
495 | cdedpetaphiPt[ktm]->LoadCorrectionTabFromROOTFile1D("alien:///alice/cern.ch/user/m/majanik/2014/DEtaDPhi/Data/AOD/SystematicStudies/PIDSqrtNsigma/Corrections/4D/4Dmap_DataDCA.root.root", AliFemtoCorrFctnDEtaDPhiCorrections::kAll, AliFemtoCorrFctnDEtaDPhiCorrections::kAll); | |
496 | ||
497 | ||
498 | /*if(ichg==0 || ichg==1 || ichg==2) | |
499 | cdedpetaphiPt[ktm]->LoadCorrectionTabFromFile("alien:///alice/cern.ch/user/l/lgraczyk/2014/DEtaDPhi/CorrectionTables/pTab.txt","alien:///alice/cern.ch/user/l/lgraczyk/2014/DEtaDPhi/CorrectionTables/protonCorrTab.txt"); | |
500 | else if(ichg==3 || ichg==4 || ichg==5) | |
501 | cdedpetaphiPt[ktm]->LoadCorrectionTabFromFile("alien:///alice/cern.ch/user/l/lgraczyk/2014/DEtaDPhi/CorrectionTables/pTab.txt","alien:///alice/cern.ch/user/l/lgraczyk/2014/DEtaDPhi/CorrectionTables/kaonCorrTab.txt"); | |
502 | else if(ichg==6 || ichg==7 || ichg==8) | |
503 | cdedpetaphiPt[ktm]->LoadCorrectionTabFromFile("alien:///alice/cern.ch/user/l/lgraczyk/2014/DEtaDPhi/CorrectionTables/pTab.txt","alien:///alice/cern.ch/user/l/lgraczyk/2014/DEtaDPhi/CorrectionTables/pionCorrTab.txt"); | |
504 | else | |
505 | cdedpetaphiPt[ktm]->LoadCorrectionTabFromFile("alien:///alice/cern.ch/user/l/lgraczyk/2014/DEtaDPhi/CorrectionTables/pTab.txt","alien:///alice/cern.ch/user/l/lgraczyk/2014/DEtaDPhi/CorrectionTables/allCorrTab.txt"); */ | |
506 | anetaphitpc[aniter]->AddCorrFctn(cdedpetaphiPt[ktm]); | |
507 | ||
508 | } | |
509 | } | |
510 | Manager->AddAnalysis(anetaphitpc[aniter]); | |
511 | } | |
512 | } | |
513 | } | |
514 | } | |
515 | return Manager; | |
516 | } |