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