]>
Commit | Line | Data |
---|---|---|
4e80512f | 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 "AliFemtoSimpleAnalysis.h" | |
15 | #include "AliFemtoBasicEventCut.h" | |
16 | #include "AliFemtoESDTrackCut.h" | |
17 | #include "AliFemtoCorrFctn.h" | |
18 | #include "AliFemtoCutMonitorParticleYPt.h" | |
19 | #include "AliFemtoCutMonitorParticleVertPos.h" | |
20 | #include "AliFemtoCutMonitorParticleMomRes.h" | |
21 | #include "AliFemtoCutMonitorParticlePID.h" | |
22 | #include "AliFemtoCutMonitorEventMult.h" | |
23 | #include "AliFemtoCutMonitorEventVertex.h" | |
24 | #include "AliFemtoShareQualityTPCEntranceSepPairCut.h" | |
25 | #include "AliFemtoPairCutAntiGamma.h" | |
26 | #include "AliFemtoQinvCorrFctn.h" | |
27 | #include "AliFemtoShareQualityCorrFctn.h" | |
28 | #include "AliFemtoTPCInnerCorrFctn.h" | |
29 | #include "AliFemtoVertexMultAnalysis.h" | |
30 | #include "AliFemtoCorrFctn3DSpherical.h" | |
31 | #include "AliFemtoChi2CorrFctn.h" | |
32 | #include "AliFemtoCorrFctnTPCNcls.h" | |
33 | #include "AliFemtoModelBPLCMSCorrFctn.h" | |
34 | #include "AliFemtoModelCorrFctn3DSpherical.h" | |
35 | #include "AliFemtoModelGausLCMSFreezeOutGenerator.h" | |
36 | #include "AliFemtoModelGausRinvFreezeOutGenerator.h" | |
37 | #include "AliFemtoModelManager.h" | |
38 | #include "AliFemtoModelWeightGeneratorBasic.h" | |
39 | #include "AliFemtoModelWeightGeneratorLednicky.h" | |
40 | #include "AliFemtoCorrFctnDirectYlm.h" | |
41 | #include "AliFemtoModelCorrFctnDirectYlm.h" | |
42 | #include "AliFemtoModelCorrFctnSource.h" | |
43 | #include "AliFemtoCutMonitorParticlePtPDG.h" | |
44 | #include "AliFemtoKTPairCut.h" | |
45 | #include "AliFemtoEnumeration.h" | |
46 | #include "AliFemtoV0PairCut.h" | |
47 | #include "AliFemtoV0TrackPairCut.h" | |
48 | #include "AliFemtoV0TrackCut.h" | |
49 | #include "AliFemtoEventReaderAODChain.h" | |
50 | #include "AliFemtoCorrFctnNonIdDR.h" | |
51 | #include "AliFemtoCutMonitorCollections.h" | |
52 | #include "AliFemtoPairCutRadialDistance.h" | |
53 | #include "AliFemtoAvgSepCorrFctn.h" | |
54 | #endif | |
55 | ||
56 | //________________________________________________________________________ | |
57 | AliFemtoManager* ConfigFemtoAnalysis() { | |
58 | ||
59 | double PionMass = 0.13956995; | |
60 | double KaonMass = 0.493677; | |
61 | double ProtonMass = 0.938272013; | |
62 | double LambdaMass = 1.115683; | |
63 | ||
64 | double psi = TMath::Pi()/2.; | |
65 | double psid = TMath::Pi()/6.; | |
66 | ||
67 | // Switches for QA analyses | |
68 | int runmults[10] = {0, 0, 1, 1, 1, 1, 0, 0, 0, 0}; | |
69 | int multbins[11] = {0.00001, 50, 100, 200, 300, 400, 500, 600, 700, 800, 900}; | |
70 | int runch[10] = {1, 1, 1, 1, 1, 1, 1, 0, 0, 0}; | |
71 | //int runch[10] = {1, 1, 1, 0, 0, 0, 0, 0, 0, 0}; | |
72 | const char *chrgs[10] = { "V0LL", "V0ALAL", "V0LAL", "V0PL", "V0APL", "V0PAL", "V0APAL","PP","PAP","APAP" }; | |
73 | ||
74 | int runktdep = 0; | |
75 | double ktrng[3] = {0.01, 0.7, 100}; | |
76 | ||
77 | int numOfMultBins = 10; | |
78 | int numOfChTypes = 10; | |
79 | int numOfkTBins = 2; | |
80 | ||
81 | int runshlcms = 0; | |
82 | ||
83 | int runtype = 2; // Types 0 - global, 1 - ITS only, 2 - TPC Inner | |
84 | ||
85 | double shqmax; | |
86 | int nbinssh = 100; | |
87 | ||
88 | shqmax = 1.0; | |
89 | ||
90 | AliFemtoEventReaderAODChain* Reader = new AliFemtoEventReaderAODChain(); | |
91 | Reader->SetFilterBit(7); | |
92 | Reader->SetCentralityPreSelection(0.00001, 710); | |
93 | Reader->SetReadV0(1); //Read V0 | |
94 | Reader->SetEPVZERO(kTRUE); | |
95 | Reader->SetCentralityFlattening(kTRUE); | |
96 | Reader->SetReadMC(kTRUE); | |
97 | ||
98 | // Reader->SetMagneticFieldSign(-1.0); //-1->field1, 1->field3 | |
99 | ||
100 | AliFemtoManager* Manager=new AliFemtoManager(); | |
101 | Manager->SetEventReader(Reader); | |
102 | ||
103 | ||
104 | AliFemtoVertexMultAnalysis *anetaphitpc[320]; | |
105 | AliFemtoBasicEventCut *mecetaphitpc[320]; | |
106 | AliFemtoCutMonitorEventMult *cutPassEvMetaphitpc[320]; | |
107 | AliFemtoCutMonitorEventMult *cutFailEvMetaphitpc[320]; | |
108 | AliFemtoCutMonitorEventVertex *cutPassEvVetaphitpc[320]; | |
109 | AliFemtoCutMonitorEventVertex *cutFailEvVetaphitpc[320]; | |
110 | AliFemtoCutMonitorCollections *cutPassColletaphitpc[320]; | |
111 | AliFemtoCutMonitorCollections *cutFailColletaphitpc[320]; | |
112 | AliFemtoV0TrackCut *dtc1etaphitpc[320]; | |
113 | AliFemtoV0TrackCut *dtc2etaphitpc[320]; | |
114 | AliFemtoESDTrackCut *dtc3etaphitpc[320]; | |
115 | AliFemtoESDTrackCut *dtc4etaphitpc[320]; | |
116 | AliFemtoCutMonitorParticleYPt *cutPass1YPtetaphitpc[320]; | |
117 | AliFemtoCutMonitorParticleYPt *cutFail1YPtetaphitpc[320]; | |
118 | AliFemtoCutMonitorParticlePID *cutPass1PIDetaphitpc[320]; | |
119 | AliFemtoCutMonitorParticlePID *cutFail1PIDetaphitpc[320]; | |
120 | AliFemtoCutMonitorParticleYPt *cutPass2YPtetaphitpc[320]; | |
121 | AliFemtoCutMonitorParticleYPt *cutFail2YPtetaphitpc[320]; | |
122 | AliFemtoCutMonitorParticlePID *cutPass2PIDetaphitpc[320]; | |
123 | AliFemtoCutMonitorParticlePID *cutFail2PIDetaphitpc[320]; | |
124 | AliFemtoCutMonitorV0 *cutPass1V0[320]; | |
125 | AliFemtoCutMonitorV0 *cutFail1V0[320]; | |
126 | AliFemtoCutMonitorV0 *cutPass2V0[320]; | |
127 | AliFemtoCutMonitorV0 *cutFail2V0[320]; | |
128 | AliFemtoV0PairCut *sqp1cetaphitpc[320]; | |
129 | AliFemtoV0TrackPairCut *sqp2cetaphitpc[320]; | |
130 | AliFemtoV0TrackPairCut *sqp3cetaphitpc[320]; | |
131 | AliFemtoV0TrackPairCut *sqp4cetaphitpc[320]; | |
132 | //AliFemtoPairCutAntiGamma *sqp3cetaphitpc[320]; | |
133 | AliFemtoPairCutRadialDistance *sqp5cetaphitpc[320]; | |
134 | AliFemtoCorrFctnDirectYlm *cylmetaphitpc[320]; | |
135 | AliFemtoCorrFctnDEtaDPhi *cdedpetaphi[320*6]; | |
136 | AliFemtoChi2CorrFctn *cchiqinvetaphitpc[320]; | |
137 | AliFemtoKTPairCut *ktpcuts[320*6]; | |
138 | AliFemtoCorrFctnDirectYlm *cylmkttpc[320*6]; | |
139 | AliFemtoQinvCorrFctn *cqinvkttpc[320*6]; | |
140 | AliFemtoAvgSepCorrFctn *avgsepcorr[320*6]; | |
141 | //AliFemtoBPLCMS3DCorrFctn *cq3dlcmskttpc[320*6]; | |
142 | AliFemtoCorrFctnNonIdDR *cnonidtpc[320*6]; | |
143 | AliFemtoCorrFctnTPCNcls *cqinvnclstpc[320]; | |
144 | AliFemtoShareQualityCorrFctn *cqinvsqtpc[320]; | |
145 | AliFemtoTPCInnerCorrFctn *cqinvtitpc[320]; | |
146 | //AliFemtoChi2CorrFctn *cqinvchi2tpc[320]; | |
147 | AliFemtoQinvCorrFctn *cqinvtpc[100*3]; | |
148 | ||
149 | ||
150 | // *** Third QA task - HBT analysis with all pair cuts off, TPC only *** | |
151 | // *** Begin pion-pion (positive) analysis *** | |
152 | int aniter = 0; | |
153 | ||
154 | for (int imult=0; imult<numOfMultBins; imult++) { | |
155 | if (runmults[imult]) { | |
156 | for (int ichg=0; ichg<numOfChTypes; ichg++) { | |
157 | if (runch[ichg]) { | |
158 | aniter = imult * numOfChTypes + ichg; | |
159 | ||
160 | if(ichg==3 || ichg==4 || ichg==5 || ichg==6) | |
161 | runshlcms = 0; | |
162 | else | |
163 | runshlcms = 1; | |
164 | ||
165 | anetaphitpc[aniter] = new AliFemtoVertexMultAnalysis(8, -8.0, 8.0, 4, multbins[imult], multbins[imult+1]); | |
166 | anetaphitpc[aniter]->SetNumEventsToMix(5); | |
167 | anetaphitpc[aniter]->SetMinSizePartCollection(1); | |
168 | anetaphitpc[aniter]->SetVerboseMode(kFALSE); | |
169 | ||
170 | mecetaphitpc[aniter] = new AliFemtoBasicEventCut(); | |
171 | mecetaphitpc[aniter]->SetEventMult(0,100000); | |
172 | mecetaphitpc[aniter]->SetVertZPos(-8,8); | |
173 | ||
174 | // cutPassEvMetaphitpc[aniter] = new AliFemtoCutMonitorEventMult(Form("cutPass%stpcM%i", chrgs[ichg], imult)); | |
175 | // cutFailEvMetaphitpc[aniter] = new AliFemtoCutMonitorEventMult(Form("cutFail%stpcM%i", chrgs[ichg], imult)); | |
176 | // mecetaphitpc[aniter]->AddCutMonitor(cutPassEvMetaphitpc[aniter], cutFailEvMetaphitpc[aniter]); | |
177 | ||
178 | // cutPassEvVetaphitpc[aniter] = new AliFemtoCutMonitorEventVertex(Form("cutPass%stpcM%i", chrgs[ichg], imult)); | |
179 | // cutFailEvVetaphitpc[aniter] = new AliFemtoCutMonitorEventVertex(Form("cutFail%stpcM%i", chrgs[ichg], imult)); | |
180 | // mecetaphitpc[aniter]->AddCutMonitor(cutPassEvVetaphitpc[aniter], cutFailEvVetaphitpc[aniter]); | |
181 | ||
182 | // cutPassColletaphitpc[aniter] = new AliFemtoCutMonitorCollections(Form("cutPass%stpcM%i", chrgs[ichg], imult)); | |
183 | // cutFailColletaphitpc[aniter] = new AliFemtoCutMonitorCollections(Form("cutFail%stpcM%i", chrgs[ichg], imult)); | |
184 | // mecetaphitpc[aniter]->AddCutMonitor(cutPassColletaphitpc[aniter], cutFailColletaphitpc[aniter]); | |
185 | ||
186 | //V0 first particle cut -> Lambda ichg 0, 2, 6 | |
187 | dtc1etaphitpc[aniter] = new AliFemtoV0TrackCut(); | |
188 | dtc1etaphitpc[aniter]->SetMass(LambdaMass); | |
189 | dtc1etaphitpc[aniter]->SetEta(0.8); //0.8 | |
190 | dtc1etaphitpc[aniter]->SetPt(0.5,5.0); //0.4,100 | |
191 | dtc1etaphitpc[aniter]->SetEtaDaughters(0.8); //0.8 | |
192 | dtc1etaphitpc[aniter]->SetPtPosDaughter(0.5,4.0); //0.5 | |
193 | dtc1etaphitpc[aniter]->SetPtNegDaughter(0.16,4.0); //0.16 | |
194 | dtc1etaphitpc[aniter]->SetTPCnclsDaughters(80); //80 | |
195 | dtc1etaphitpc[aniter]->SetNdofDaughters(4.0); //4.0 | |
196 | dtc1etaphitpc[aniter]->SetStatusDaughters(AliESDtrack::kTPCrefit/* | AliESDtrack::kITSrefit*/); | |
197 | dtc1etaphitpc[aniter]->SetOnFlyStatus(kFALSE); | |
198 | dtc1etaphitpc[aniter]->SetParticleType(0); //0-Lambda | |
199 | dtc1etaphitpc[aniter]->SetMinDaughtersToPrimVertex(0.1, 0.3); | |
200 | dtc1etaphitpc[aniter]->SetMaxDcaV0Daughters(0.4); //1.5 Jai, 0.6 //0.4 | |
201 | dtc1etaphitpc[aniter]->SetMaxDcaV0(0.5); //5.0 | |
202 | dtc1etaphitpc[aniter]->SetMaxV0DecayLength(60.0); | |
203 | dtc1etaphitpc[aniter]->SetMaxCosPointingAngle(0.9993); //0.99 - Jai //0.998 | |
204 | dtc1etaphitpc[aniter]->SetInvariantMassLambda(LambdaMass-0.0034,LambdaMass+0.0034); | |
205 | ||
206 | //V0 second particle cut -> AntiLambda ichg 1, 3, 4, 5 | |
207 | dtc2etaphitpc[aniter] = new AliFemtoV0TrackCut(); | |
208 | dtc2etaphitpc[aniter]->SetMass(LambdaMass); | |
209 | dtc2etaphitpc[aniter]->SetEta(0.8); | |
210 | dtc2etaphitpc[aniter]->SetPt(0.5,5.0); | |
211 | dtc2etaphitpc[aniter]->SetEtaDaughters(0.8); | |
212 | dtc2etaphitpc[aniter]->SetPtPosDaughter(0.16,4.0); | |
213 | dtc2etaphitpc[aniter]->SetPtNegDaughter(0.3,4.0); | |
214 | dtc2etaphitpc[aniter]->SetTPCnclsDaughters(80); | |
215 | dtc2etaphitpc[aniter]->SetNdofDaughters(4.0); //4.0 | |
216 | dtc2etaphitpc[aniter]->SetStatusDaughters(AliESDtrack::kTPCrefit/* | AliESDtrack::kITSrefit*/); | |
217 | dtc2etaphitpc[aniter]->SetOnFlyStatus(kFALSE); //kTRUE | |
218 | dtc2etaphitpc[aniter]->SetParticleType(1); | |
219 | dtc2etaphitpc[aniter]->SetMaxDcaV0Daughters(0.4); //1.5 Jai, 0.6 | |
220 | dtc2etaphitpc[aniter]->SetMaxDcaV0(0.5); | |
221 | dtc2etaphitpc[aniter]->SetMinDaughtersToPrimVertex(0.3, 0.1); | |
222 | dtc2etaphitpc[aniter]->SetMaxCosPointingAngle(0.9993); //0.99 - Jai | |
223 | dtc2etaphitpc[aniter]->SetMaxV0DecayLength(60.0); | |
224 | dtc2etaphitpc[aniter]->SetInvariantMassLambda(LambdaMass-0.0034,LambdaMass+0.0034); | |
225 | ||
226 | ||
227 | //ESD first particle cut -> Proton 3, 5; AntiProton 4, 6, 7, 8 | |
228 | dtc3etaphitpc[aniter] = new AliFemtoESDTrackCut(); | |
229 | dtc3etaphitpc[aniter]->SetMostProbableProton(); | |
230 | dtc3etaphitpc[aniter]->SetMass(ProtonMass); | |
231 | dtc3etaphitpc[aniter]->SetCharge(1.0); | |
232 | dtc3etaphitpc[aniter]->SetPt(0.7,4.0); | |
233 | dtc3etaphitpc[aniter]->SetEta(-0.8,0.8); | |
234 | ||
235 | // Track quality cuts | |
236 | dtc3etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCin); | |
237 | dtc3etaphitpc[aniter]->SetminTPCncls(80); | |
238 | dtc3etaphitpc[aniter]->SetRemoveKinks(kTRUE); | |
239 | dtc3etaphitpc[aniter]->SetLabel(kFALSE); | |
240 | dtc3etaphitpc[aniter]->SetMaxTPCChiNdof(4.0); | |
241 | dtc3etaphitpc[aniter]->SetMaxImpactXY(0.1); | |
242 | dtc3etaphitpc[aniter]->SetMaxImpactZ(3.2); | |
243 | dtc3etaphitpc[aniter]->SetNsigma(3.0); | |
244 | dtc3etaphitpc[aniter]->SetNsigmaTPCTOF(kTRUE); | |
245 | ||
246 | //ESD first particle cut -> Proton 3, 5; AntiProton 4, 6, 8, 9 | |
247 | dtc4etaphitpc[aniter] = new AliFemtoESDTrackCut(); | |
248 | dtc4etaphitpc[aniter]->SetMostProbableProton(); | |
249 | dtc4etaphitpc[aniter]->SetMass(ProtonMass); | |
250 | dtc4etaphitpc[aniter]->SetCharge(-1.0); | |
251 | dtc4etaphitpc[aniter]->SetPt(0.7,5.0); | |
252 | dtc4etaphitpc[aniter]->SetEta(-0.8,0.8); | |
253 | ||
254 | // Track quality cuts | |
255 | dtc4etaphitpc[aniter]->SetStatus(AliESDtrack::kTPCin); | |
256 | dtc4etaphitpc[aniter]->SetminTPCncls(80); | |
257 | dtc4etaphitpc[aniter]->SetRemoveKinks(kTRUE); | |
258 | dtc4etaphitpc[aniter]->SetLabel(kFALSE); | |
259 | dtc4etaphitpc[aniter]->SetMaxTPCChiNdof(4.0); | |
260 | dtc4etaphitpc[aniter]->SetMaxImpactXY(0.1); | |
261 | dtc4etaphitpc[aniter]->SetMaxImpactZ(3.2); | |
262 | dtc4etaphitpc[aniter]->SetNsigma(3.0); | |
263 | dtc4etaphitpc[aniter]->SetNsigmaTPCTOF(kTRUE); | |
264 | ||
265 | // // //V0 monitor | |
266 | // cutPass1V0[aniter] = new AliFemtoCutMonitorV0(Form("cutPass1%stpcM%i", chrgs[ichg], imult)); | |
267 | // cutFail1V0[aniter] = new AliFemtoCutMonitorV0(Form("cutFail1%stpcM%i", chrgs[ichg], imult)); | |
268 | // dtc1etaphitpc[aniter]->AddCutMonitor(cutPass1V0[aniter], cutFail1V0[aniter]); | |
269 | ||
270 | // cutPass2V0[aniter] = new AliFemtoCutMonitorV0(Form("cutPass2%stpcM%i", chrgs[ichg], imult)); | |
271 | // cutFail2V0[aniter] = new AliFemtoCutMonitorV0(Form("cutFail2%stpcM%i", chrgs[ichg], imult)); | |
272 | // dtc2etaphitpc[aniter]->AddCutMonitor(cutPass2V0[aniter], cutFail2V0[aniter]); | |
273 | ||
274 | // cutPass1YPtetaphitpc[aniter] = new AliFemtoCutMonitorParticleYPt(Form("cutPass1%stpcM%i", chrgs[ichg], imult), ProtonMass); | |
275 | // cutFail1YPtetaphitpc[aniter] = new AliFemtoCutMonitorParticleYPt(Form("cutFail1%stpcM%i", chrgs[ichg], imult), ProtonMass); | |
276 | // //if(ichg==7 || ichg==8 || ichg==9) | |
277 | // //dtc3etaphitpc[aniter]->AddCutMonitor(cutPass1YPtetaphitpc[aniter], cutFail1YPtetaphitpc[aniter]); | |
278 | ||
279 | // cutPass2YPtetaphitpc[aniter] = new AliFemtoCutMonitorParticleYPt(Form("cutPass2%stpcM%i", chrgs[ichg], imult), ProtonMass); | |
280 | // cutFail2YPtetaphitpc[aniter] = new AliFemtoCutMonitorParticleYPt(Form("cutFail2%stpcM%i", chrgs[ichg], imult), ProtonMass); | |
281 | // //if(ichg==7 || ichg==8 || ichg==9) | |
282 | // //dtc4etaphitpc[aniter]->AddCutMonitor(cutPass2YPtetaphitpc[aniter], cutFail2YPtetaphitpc[aniter]); | |
283 | ||
284 | // cutPass1PIDetaphitpc[aniter] = new AliFemtoCutMonitorParticlePID(Form("trackCutPass1%stpcM%i", chrgs[ichg], imult),2); | |
285 | // cutFail1PIDetaphitpc[aniter] = new AliFemtoCutMonitorParticlePID(Form("trackCutFail1%stpcM%i", chrgs[ichg], imult),2); | |
286 | // dtc3etaphitpc[aniter]->AddCutMonitor(cutPass1PIDetaphitpc[aniter], cutFail1PIDetaphitpc[aniter]); | |
287 | ||
288 | // cutPass2PIDetaphitpc[aniter] = new AliFemtoCutMonitorParticlePID(Form("trackCutPass2%stpcM%i", chrgs[ichg], imult),2); | |
289 | // cutFail2PIDetaphitpc[aniter] = new AliFemtoCutMonitorParticlePID(Form("trackCutFail2%stpcM%i", chrgs[ichg], imult),2); | |
290 | // // //if(ichg == 4 || ichg == 5 || ichg == 6 || ichg == 7 || ichg == 8 || ichg == 9) | |
291 | // dtc4etaphitpc[aniter]->AddCutMonitor(cutPass2PIDetaphitpc[aniter], cutFail2PIDetaphitpc[aniter]); | |
292 | ||
293 | ||
294 | sqp1cetaphitpc[aniter] = new AliFemtoV0PairCut(); | |
295 | sqp1cetaphitpc[aniter]->SetDataType(AliFemtoPairCut::kAOD); | |
296 | sqp1cetaphitpc[aniter]->SetTPCEntranceSepMinimum(0.00001); | |
297 | sqp1cetaphitpc[aniter]->SetTPCExitSepMinimum(-1.); | |
298 | sqp1cetaphitpc[aniter]->SetMinAvgSeparation(0,3); | |
299 | sqp1cetaphitpc[aniter]->SetMinAvgSeparation(1,0); | |
300 | sqp1cetaphitpc[aniter]->SetMinAvgSeparation(2,0); | |
301 | sqp1cetaphitpc[aniter]->SetMinAvgSeparation(3,3); | |
302 | ||
303 | sqp2cetaphitpc[aniter] = new AliFemtoV0TrackPairCut(); //lambda-proton | |
304 | sqp2cetaphitpc[aniter]->SetShareQualityMax(1.0); //between V0 daughter and track | |
305 | sqp2cetaphitpc[aniter]->SetShareFractionMax(0.05); | |
306 | sqp2cetaphitpc[aniter]->SetTPCOnly(kTRUE); | |
307 | sqp2cetaphitpc[aniter]->SetDataType(AliFemtoPairCut::kAOD); | |
308 | sqp2cetaphitpc[aniter]->SetTPCEntranceSepMinimum(0.00001); | |
309 | sqp2cetaphitpc[aniter]->SetTPCExitSepMinimum(-1.); | |
310 | sqp2cetaphitpc[aniter]->SetKstarCut(0.04,AliFemtoV0TrackPairCut::kLambda,AliFemtoV0TrackPairCut::kProton); //0 - lambda, 2 - proton | |
311 | sqp2cetaphitpc[aniter]->SetMinAvgSeparation(0,11); //0 - track-pos, 1 - track-neg | |
312 | sqp2cetaphitpc[aniter]->SetMinAvgSeparation(1,0); | |
313 | ||
314 | sqp3cetaphitpc[aniter] = new AliFemtoV0TrackPairCut(); //antilambda-antiproton | |
315 | sqp3cetaphitpc[aniter]->SetShareQualityMax(1.0); //between V0 daughter and track | |
316 | sqp3cetaphitpc[aniter]->SetShareFractionMax(0.05); | |
317 | sqp3cetaphitpc[aniter]->SetTPCOnly(kTRUE); | |
318 | sqp3cetaphitpc[aniter]->SetDataType(AliFemtoPairCut::kAOD); | |
319 | sqp3cetaphitpc[aniter]->SetTPCEntranceSepMinimum(0.00001); | |
320 | sqp3cetaphitpc[aniter]->SetTPCExitSepMinimum(-1.); | |
321 | sqp3cetaphitpc[aniter]->SetKstarCut(0.04,AliFemtoV0TrackPairCut::kAntiLambda,AliFemtoV0TrackPairCut::kAntiProton); //1 - antilambda, 3 - antiproton | |
322 | sqp3cetaphitpc[aniter]->SetMinAvgSeparation(0,0); //0 - track-pos, 1 - track-neg | |
323 | sqp3cetaphitpc[aniter]->SetMinAvgSeparation(1,11); | |
324 | ||
325 | sqp4cetaphitpc[aniter] = new AliFemtoV0TrackPairCut(); //lambda-antiproton, antilambda-proton | |
326 | sqp4cetaphitpc[aniter]->SetShareQualityMax(1.0); //between V0 daughter and track | |
327 | sqp4cetaphitpc[aniter]->SetShareFractionMax(0.05); | |
328 | sqp4cetaphitpc[aniter]->SetTPCOnly(kTRUE); | |
329 | sqp4cetaphitpc[aniter]->SetDataType(AliFemtoPairCut::kAOD); | |
330 | sqp4cetaphitpc[aniter]->SetTPCEntranceSepMinimum(0.00001); | |
331 | sqp4cetaphitpc[aniter]->SetTPCExitSepMinimum(-1.); | |
332 | //SetMinAvgSeparation w if'ach ponizej | |
333 | ||
334 | //sqp3cetaphitpc[aniter] = new AliFemtoPairCutAntiGamma(); | |
335 | sqp5cetaphitpc[aniter] = new AliFemtoPairCutRadialDistance(); | |
336 | sqp5cetaphitpc[aniter]->SetMagneticFieldSign(-1.0); //-1->field1, 1->field3 | |
337 | sqp5cetaphitpc[aniter]->SetPhiStarDifferenceMinimum(0.012); | |
338 | sqp5cetaphitpc[aniter]->SetEtaDifferenceMinimum(0.017); | |
339 | sqp5cetaphitpc[aniter]->SetShareQualityMax(1.0); | |
340 | sqp5cetaphitpc[aniter]->SetShareFractionMax(0.05); | |
341 | sqp5cetaphitpc[aniter]->SetRemoveSameLabel(kFALSE); | |
342 | sqp5cetaphitpc[aniter]->SetMaxEEMinv(0.002); | |
343 | sqp5cetaphitpc[aniter]->SetMaxThetaDiff(0.008); | |
344 | sqp5cetaphitpc[aniter]->SetDataType(AliFemtoPairCut::kAOD); | |
345 | sqp5cetaphitpc[aniter]->SetTPCEntranceSepMinimum(0.0001); | |
346 | ||
347 | avgsepcorr[aniter] = new AliFemtoAvgSepCorrFctn(Form("Avgsep%stpcM%i", chrgs[ichg], imult),5000,0,500); | |
348 | ||
349 | ||
350 | if(ichg == 0) //V0LL | |
351 | { | |
352 | anetaphitpc[aniter]->SetEventCut(mecetaphitpc[aniter]); | |
353 | anetaphitpc[aniter]->SetFirstParticleCut(dtc1etaphitpc[aniter]); | |
354 | anetaphitpc[aniter]->SetSecondParticleCut(dtc1etaphitpc[aniter]); | |
355 | anetaphitpc[aniter]->SetPairCut(sqp1cetaphitpc[aniter]); | |
356 | avgsepcorr[aniter]->SetPairType(AliFemtoAvgSepCorrFctn::kV0s); | |
357 | } | |
358 | else if(ichg == 1) //V0ALAL | |
359 | { | |
360 | anetaphitpc[aniter]->SetEventCut(mecetaphitpc[aniter]); | |
361 | anetaphitpc[aniter]->SetFirstParticleCut(dtc2etaphitpc[aniter]); | |
362 | anetaphitpc[aniter]->SetSecondParticleCut(dtc2etaphitpc[aniter]); | |
363 | anetaphitpc[aniter]->SetPairCut(sqp1cetaphitpc[aniter]); | |
364 | avgsepcorr[aniter]->SetPairType(AliFemtoAvgSepCorrFctn::kV0s); | |
365 | } | |
366 | else if(ichg == 2) //VOLAL | |
367 | { | |
368 | anetaphitpc[aniter]->SetEventCut(mecetaphitpc[aniter]); | |
369 | anetaphitpc[aniter]->SetFirstParticleCut(dtc1etaphitpc[aniter]); | |
370 | anetaphitpc[aniter]->SetSecondParticleCut(dtc2etaphitpc[aniter]); | |
371 | anetaphitpc[aniter]->SetPairCut(sqp1cetaphitpc[aniter]); | |
372 | avgsepcorr[aniter]->SetPairType(AliFemtoAvgSepCorrFctn::kV0s); | |
373 | } | |
374 | else if(ichg == 3) //V0PL | |
375 | { | |
376 | anetaphitpc[aniter]->SetEventCut(mecetaphitpc[aniter]); | |
377 | anetaphitpc[aniter]->SetFirstParticleCut(dtc1etaphitpc[aniter]); | |
378 | anetaphitpc[aniter]->SetSecondParticleCut(dtc3etaphitpc[aniter]); | |
379 | anetaphitpc[aniter]->SetPairCut(sqp2cetaphitpc[aniter]); | |
380 | avgsepcorr[aniter]->SetPairType(AliFemtoAvgSepCorrFctn::kTrackV0); | |
381 | } | |
382 | else if(ichg == 4) //V0APL | |
383 | { | |
384 | sqp4cetaphitpc[aniter]->SetMinAvgSeparation(0,0); //0 - track-pos, 1 - track-neg | |
385 | sqp4cetaphitpc[aniter]->SetMinAvgSeparation(1,11); | |
386 | anetaphitpc[aniter]->SetEventCut(mecetaphitpc[aniter]); | |
387 | anetaphitpc[aniter]->SetFirstParticleCut(dtc1etaphitpc[aniter]); | |
388 | anetaphitpc[aniter]->SetSecondParticleCut(dtc4etaphitpc[aniter]); | |
389 | anetaphitpc[aniter]->SetPairCut(sqp4cetaphitpc[aniter]); | |
390 | avgsepcorr[aniter]->SetPairType(AliFemtoAvgSepCorrFctn::kTrackV0); | |
391 | } | |
392 | else if(ichg == 5) //V0PAL | |
393 | { | |
394 | sqp4cetaphitpc[aniter]->SetMinAvgSeparation(0,11); //0 - track-pos, 1 - track-neg | |
395 | sqp4cetaphitpc[aniter]->SetMinAvgSeparation(1,0); | |
396 | anetaphitpc[aniter]->SetEventCut(mecetaphitpc[aniter]); | |
397 | anetaphitpc[aniter]->SetFirstParticleCut(dtc2etaphitpc[aniter]); | |
398 | anetaphitpc[aniter]->SetSecondParticleCut(dtc3etaphitpc[aniter]); | |
399 | anetaphitpc[aniter]->SetPairCut(sqp4cetaphitpc[aniter]); | |
400 | avgsepcorr[aniter]->SetPairType(AliFemtoAvgSepCorrFctn::kTrackV0); | |
401 | } | |
402 | else if(ichg == 6) //V0APAL | |
403 | { | |
404 | anetaphitpc[aniter]->SetEventCut(mecetaphitpc[aniter]); | |
405 | anetaphitpc[aniter]->SetFirstParticleCut(dtc2etaphitpc[aniter]); | |
406 | anetaphitpc[aniter]->SetSecondParticleCut(dtc4etaphitpc[aniter]); | |
407 | anetaphitpc[aniter]->SetPairCut(sqp3cetaphitpc[aniter]); | |
408 | avgsepcorr[aniter]->SetPairType(AliFemtoAvgSepCorrFctn::kTrackV0); | |
409 | } | |
410 | else if(ichg ==7) //PP | |
411 | { | |
412 | anetaphitpc[aniter]->SetEventCut(mecetaphitpc[aniter]); | |
413 | anetaphitpc[aniter]->SetFirstParticleCut(dtc3etaphitpc[aniter]); | |
414 | anetaphitpc[aniter]->SetSecondParticleCut(dtc3etaphitpc[aniter]); | |
415 | anetaphitpc[aniter]->SetPairCut(sqp5cetaphitpc[aniter]); | |
416 | avgsepcorr[aniter]->SetPairType(AliFemtoAvgSepCorrFctn::kTracks); | |
417 | } | |
418 | else if(ichg ==8) //PAP | |
419 | { | |
420 | anetaphitpc[aniter]->SetEventCut(mecetaphitpc[aniter]); | |
421 | anetaphitpc[aniter]->SetFirstParticleCut(dtc3etaphitpc[aniter]); | |
422 | anetaphitpc[aniter]->SetSecondParticleCut(dtc4etaphitpc[aniter]); | |
423 | anetaphitpc[aniter]->SetPairCut(sqp5cetaphitpc[aniter]); | |
424 | avgsepcorr[aniter]->SetPairType(AliFemtoAvgSepCorrFctn::kTracks); | |
425 | } | |
426 | else if(ichg ==9) //APAP | |
427 | { | |
428 | anetaphitpc[aniter]->SetEventCut(mecetaphitpc[aniter]); | |
429 | anetaphitpc[aniter]->SetFirstParticleCut(dtc4etaphitpc[aniter]); | |
430 | anetaphitpc[aniter]->SetSecondParticleCut(dtc4etaphitpc[aniter]); | |
431 | anetaphitpc[aniter]->SetPairCut(sqp5cetaphitpc[aniter]); | |
432 | avgsepcorr[aniter]->SetPairType(AliFemtoAvgSepCorrFctn::kTracks); | |
433 | } | |
434 | ||
435 | anetaphitpc[aniter]->AddCorrFctn(avgsepcorr[aniter]); | |
436 | ||
437 | //cylmetaphitpc[aniter] = new AliFemtoCorrFctnDirectYlm(Form("cylm%stpcM%i", chrgs[ichg], imult),3,nbinssh,0.0,shqmax,runshlcms); | |
438 | //anetaphitpc[aniter]->AddCorrFctn(cylmetaphitpc[aniter]); | |
439 | ||
440 | // cqinvnclstpc[aniter] = new AliFemtoCorrFctnTPCNcls(Form("cqinvncls%stpcM%i", chrgs[ichg], imult),nbinssh,0.0,shqmax); | |
441 | // anetaphitpc[aniter]->AddCorrFctn(cqinvnclstpc[aniter]); | |
442 | ||
443 | //cdedpetaphi[aniter] = new AliFemtoCorrFctnDEtaDPhi(Form("cdedp%stpcM%i", chrgs[ichg], imult),45, 45); | |
444 | //anetaphitpc[aniter]->AddCorrFctn(cdedpetaphi[aniter]); | |
445 | ||
446 | ||
447 | // cqinvtitpc[aniter] = new AliFemtoTPCInnerCorrFctn(Form("cqinvti%stpcM%i", chrgs[ichg], imult),nbinssh,0.0,shqmax); | |
448 | // anetaphitpc[aniter]->AddCorrFctn(cqinvtitpc[aniter]); | |
449 | ||
450 | if(ichg==3 || ichg==4 || ichg==5 || ichg==6 || ichg==8) { //PL, APL, PAL, APAL, PAP | |
451 | cnonidtpc[aniter] = new AliFemtoCorrFctnNonIdDR(Form("cnonid%stpcM%i", chrgs[ichg], imult), nbinssh, 0.0,shqmax); | |
452 | anetaphitpc[aniter]->AddCorrFctn(cnonidtpc[aniter]); | |
453 | } | |
454 | else { | |
455 | cqinvtpc[aniter] = new AliFemtoQinvCorrFctn(Form("cqinv%stpcM%i", chrgs[ichg], imult),nbinssh,0.0,shqmax); | |
456 | anetaphitpc[aniter]->AddCorrFctn(cqinvtpc[aniter]); | |
457 | } | |
458 | ||
459 | // cylmkttpc[aniter] = new AliFemtoCorrFctnDirectYlm(Form("cylm%stpcM%i", chrgs[ichg], imult),3, nbinssh, 0.0,shqmax, runshlcms); | |
460 | // anetaphitpc[aniter]->AddCorrFctn(cylmkttpc[aniter]); | |
461 | ||
462 | if (runktdep) | |
463 | { | |
464 | int ktm; | |
465 | for (int ikt=0; ikt<numOfkTBins; ikt++) { | |
466 | ktm = aniter*numOfkTBins + ikt; | |
467 | ktpcuts[ktm] = new AliFemtoKTPairCut(ktrng[ikt], ktrng[ikt+1]); | |
468 | ||
469 | cylmkttpc[ktm] = new AliFemtoCorrFctnDirectYlm(Form("cylm%stpcM%ikT%i", chrgs[ichg], imult, ikt),3,nbinssh, 0.0,shqmax,runshlcms); | |
470 | cylmkttpc[ktm]->SetPairSelectionCut(ktpcuts[ktm]); | |
471 | anetaphitpc[aniter]->AddCorrFctn(cylmkttpc[ktm]); | |
472 | ||
473 | //cdedpetaphi[ktm] = new AliFemtoCorrFctnDEtaDPhi(Form("cdedp%stpcM%ikT%i", chrgs[ichg], imult,ikt),45, 45); | |
474 | // cdedpetaphi[ktm]->SetPairSelectionCut(ktpcuts[ktm]); | |
475 | //anetaphitpc[aniter]->AddCorrFctn(cdedpetaphi[ktm]); | |
476 | ||
477 | //if(ichg==3 || ichg==4 || ichg==5 || ichg==6 || ichg==8) { //PL, APL, PAL, APAL, PAP | |
478 | //cnonidtpc[ktm] = new AliFemtoCorrFctnNonIdDR(Form("cnonid%stpcM%ikT%i", chrgs[ichg], imult,ikt),nbinssh, 0.0,shqmax); | |
479 | //cnonidtpc[ktm]->SetPairSelectionCut(ktpcuts[ktm]); | |
480 | //anetaphitpc[aniter]->AddCorrFctn(cnonidtpc[ktm]); | |
481 | //} | |
482 | ||
483 | //else{ | |
484 | //cqinvkttpc[ktm] = new AliFemtoQinvCorrFctn(Form("cqinv%stpcM%ikT%i", chrgs[ichg], imult, ikt),nbinssh,0.0,shqmax); | |
485 | //cqinvkttpc[ktm]->SetPairSelectionCut(ktpcuts[ktm]); | |
486 | //anetaphitpc[aniter]->AddCorrFctn(cqinvkttpc[ktm]); | |
487 | ||
488 | //} | |
489 | ||
490 | } | |
491 | } | |
492 | ||
493 | Manager->AddAnalysis(anetaphitpc[aniter]); | |
494 | } | |
495 | } | |
496 | } | |
497 | } | |
498 | // *** End of analysis | |
499 | ||
500 | return Manager; | |
501 | } |