]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGPP/pid/doeffAllSpecies.C
improved the macro to extract PID perf (automaticly through a new macro)
[u/mrichter/AliRoot.git] / PWGPP / pid / doeffAllSpecies.C
CommitLineData
7484404e 1doeffAllSpecies(){
2 performAllPi();
3 performAllKa();
4 performAllPr();
5}
6
7performAllPi(){
8 gSystem->Load("libVMC.so");
9 gSystem->Load("libPhysics.so");
10 gSystem->Load("libTree.so");
11 gSystem->Load("libMinuit.so");
12 gSystem->Load("libSTEERBase.so");
13 gSystem->Load("libANALYSIS.so");
14 gSystem->Load("libAOD.so");
15 gSystem->Load("libESD.so");
16 gSystem->Load("libANALYSIS.so");
17 gSystem->Load("libANALYSISalice.so");
18 gSystem->Load("libCORRFW.so");
19 gSystem->Load("libNetx.so");
20 gSystem->Load("libPWGPPpid.so");
21
22 gSystem->AddIncludePath("-I$ALICE_ROOT/PWGPP/pid");
23
24 gROOT->LoadMacro("$ALICE_ROOT/PWGPP/pid/doeffPi.C++");
25
26 // tune these parameters
27 cmin = 1; // centrality min 1
28 cmax = 10;// centrality max 10
29 Float_t etamin = -0.8;
30 Float_t etamax = -0.8;
31
32 // reset all flags
33 rebinsize = 1; // don't change this, not choice here!!!
34 kGoodMatch=kFALSE;
35 kSigma2vs3 = kFALSE;
36 require5sigma = kFALSE;
37 bayesVsigma = kFALSE;
38 kTOFmatch = kFALSE;
39 kOverAll = kFALSE;
40 kOverAllTOFmatch = kFALSE;
41 kOverAll2Sigma = kFALSE;
42 isMC = kFALSE;
43 selectTrue = kTRUE;
44 keepTrue = kFALSE;
45
46 if(! LoadLib()) return;
47
48 // matching and PID eff.
49 doeffPi(1,0.1,etamin,etamax);
50 doeffPi(0,0.1,etamin,etamax);
51 doeffPi(1,0.2,etamin,etamax);
52 doeffPi(1,0.4,etamin,etamax);
53 doeffPi(1,0.6,etamin,etamax);
54 doeffPi(1,0.8,etamin,etamax);
55 doeffPi(0,0.2,etamin,etamax);
56 doeffPi(0,0.4,etamin,etamax);
57 doeffPi(0,0.6,etamin,etamax);
58 doeffPi(0,0.8,etamin,etamax);
59
60 // Good matching eff (1 - TOF mism)
61 kGoodMatch=kTRUE;
62 doeffPi(1,0.1,etamin,etamax);
63 doeffPi(0,0.1,etamin,etamax);
64 kGoodMatch=kFALSE;
65
66 // eff 2 sigma / eff 3 sigma
67 kSigma2vs3=kTRUE;
68 doeffPi(1,0.1,etamin,etamax);
69 doeffPi(0,0.1,etamin,etamax);
70 kSigma2vs3=kFALSE;
71
72 kOverAll=kTRUE;
73 // TPC|TOF overall eff
74 doeffPi(1,0.2,etamin,etamax);
75 doeffPi(1,0.4,etamin,etamax);
76 doeffPi(1,0.6,etamin,etamax);
77 doeffPi(1,0.8,etamin,etamax);
78 doeffPi(0,0.2,etamin,etamax);
79 doeffPi(0,0.4,etamin,etamax);
80 doeffPi(0,0.6,etamin,etamax);
81 doeffPi(0,0.8,etamin,etamax);
82
83 kOverAllTOFmatch=kTRUE;
84 // TPC&TOF overall eff
85 doeffPi(1,0.2,etamin,etamax);
86 doeffPi(1,0.4,etamin,etamax);
87 doeffPi(1,0.6,etamin,etamax);
88 doeffPi(1,0.8,etamin,etamax);
89 doeffPi(0,0.2,etamin,etamax);
90 doeffPi(0,0.4,etamin,etamax);
91 doeffPi(0,0.6,etamin,etamax);
92 doeffPi(0,0.8,etamin,etamax);
93 kOverAllTOFmatch=kFALSE;
94
95 kOverAll2Sigma=kTRUE;
96 // TPC&TOF 2 TOF sigma cut
97 doeffPi(1,0.1,etamin,etamax);
98 doeffPi(0,0.1,etamin,etamax);
99 kOverAll2Sigma=kFALSE;
100 kOverAll=kFALSE;
101 gSystem->Unload("$ALICE_ROOT/PWGPP/pid/doeffPi_C.so");
102}
103
104performAllPr(){
105 gSystem->Load("libVMC.so");
106 gSystem->Load("libPhysics.so");
107 gSystem->Load("libTree.so");
108 gSystem->Load("libMinuit.so");
109 gSystem->Load("libSTEERBase.so");
110 gSystem->Load("libANALYSIS.so");
111 gSystem->Load("libAOD.so");
112 gSystem->Load("libESD.so");
113 gSystem->Load("libANALYSIS.so");
114 gSystem->Load("libANALYSISalice.so");
115 gSystem->Load("libCORRFW.so");
116 gSystem->Load("libNetx.so");
117 gSystem->Load("libPWGPPpid.so");
118
119 gSystem->AddIncludePath("-I$ALICE_ROOT/PWGPP/pid");
120
121 gROOT->LoadMacro("$ALICE_ROOT/PWGPP/pid/doeffPr.C++");
122
123 // tune these parameters
124 cmin = 1; // centrality min 1
125 cmax = 10;// centrality max 10
126 Float_t etamin = -0.8;
127 Float_t etamax = -0.8;
128
129 // reset all flags
130 rebinsize = 1; // don't change this, not choice here!!!
131 kGoodMatch=kFALSE;
132 kSigma2vs3 = kFALSE;
133 require5sigma = kFALSE;
134 bayesVsigma = kFALSE;
135 kTOFmatch = kFALSE;
136 kOverAll = kFALSE;
137 kOverAllTOFmatch = kFALSE;
138 kOverAll2Sigma = kFALSE;
139 isMC = kFALSE;
140 selectTrue = kTRUE;
141 keepTrue = kFALSE;
142
143 if(! LoadLib()) return;
144
145 // matching and PID eff.
146 doeffPr(1,0.1,etamin,etamax);
147 doeffPr(0,0.1,etamin,etamax);
148 doeffPr(1,0.2,etamin,etamax);
149 doeffPr(1,0.4,etamin,etamax);
150 doeffPr(1,0.6,etamin,etamax);
151 doeffPr(1,0.8,etamin,etamax);
152 doeffPr(0,0.2,etamin,etamax);
153 doeffPr(0,0.4,etamin,etamax);
154 doeffPr(0,0.6,etamin,etamax);
155 doeffPr(0,0.8,etamin,etamax);
156
157 // Good matching eff (1 - TOF mism)
158 kGoodMatch=kTRUE;
159 doeffPr(1,0.1,etamin,etamax);
160 doeffPr(0,0.1,etamin,etamax);
161 kGoodMatch=kFALSE;
162
163 // eff 2 sigma / eff 3 sigma
164 kSigma2vs3=kTRUE;
165 doeffPr(1,0.1,etamin,etamax);
166 doeffPr(0,0.1,etamin,etamax);
167 kSigma2vs3=kFALSE;
168
169 kOverAll=kTRUE;
170 // TPC|TOF overall eff
171 doeffPr(1,0.2,etamin,etamax);
172 doeffPr(1,0.4,etamin,etamax);
173 doeffPr(1,0.6,etamin,etamax);
174 doeffPr(1,0.8,etamin,etamax);
175 doeffPr(0,0.2,etamin,etamax);
176 doeffPr(0,0.4,etamin,etamax);
177 doeffPr(0,0.6,etamin,etamax);
178 doeffPr(0,0.8,etamin,etamax);
179
180 kOverAllTOFmatch=kTRUE;
181 // TPC&TOF overall eff
182 doeffPr(1,0.2,etamin,etamax);
183 doeffPr(1,0.4,etamin,etamax);
184 doeffPr(1,0.6,etamin,etamax);
185 doeffPr(1,0.8,etamin,etamax);
186 doeffPr(0,0.2,etamin,etamax);
187 doeffPr(0,0.4,etamin,etamax);
188 doeffPr(0,0.6,etamin,etamax);
189 doeffPr(0,0.8,etamin,etamax);
190 kOverAllTOFmatch=kFALSE;
191
192 kOverAll2Sigma=kTRUE;
193 // TPC&TOF 2 TOF sigma cut
194 doeffPr(1,0.1,etamin,etamax);
195 doeffPr(0,0.1,etamin,etamax);
196 kOverAll2Sigma=kFALSE;
197 kOverAll=kFALSE;
198 gSystem->Unload("$ALICE_ROOT/PWGPP/pid/doeffPr_C.so");
199}
200
201performAllKa(){
202 gSystem->Load("libVMC.so");
203 gSystem->Load("libPhysics.so");
204 gSystem->Load("libTree.so");
205 gSystem->Load("libMinuit.so");
206 gSystem->Load("libSTEERBase.so");
207 gSystem->Load("libANALYSIS.so");
208 gSystem->Load("libAOD.so");
209 gSystem->Load("libESD.so");
210 gSystem->Load("libANALYSIS.so");
211 gSystem->Load("libANALYSISalice.so");
212 gSystem->Load("libCORRFW.so");
213 gSystem->Load("libNetx.so");
214 gSystem->Load("libPWGPPpid.so");
215
216 gSystem->AddIncludePath("-I$ALICE_ROOT/PWGPP/pid");
217
218 gROOT->LoadMacro("$ALICE_ROOT/PWGPP/pid/doeffKa.C++");
219
220 // tune these parameters
221 cmin = 1; // centrality min 1
222 cmax = 10;// centrality max 10
223 Float_t etamin = -0.8;
224 Float_t etamax = -0.8;
225
226 // reset all flags
227 rebinsize = 1; // don't change this, not choice here!!!
228 kGoodMatch=kFALSE;
229 kSigma2vs3 = kFALSE;
230 require5sigma = kFALSE;
231 bayesVsigma = kFALSE;
232 kTOFmatch = kFALSE;
233 kOverAll = kFALSE;
234 kOverAllTOFmatch = kFALSE;
235 kOverAll2Sigma = kFALSE;
236 isMC = kFALSE;
237 selectTrue = kTRUE;
238 keepTrue = kFALSE;
239
240 if(! LoadLib()) return;
241
242 // matching and PID eff.
243 doeffKa(1,0.1,etamin,etamax);
244 doeffKa(0,0.1,etamin,etamax);
245 doeffKa(1,0.2,etamin,etamax);
246 doeffKa(1,0.4,etamin,etamax);
247 doeffKa(1,0.6,etamin,etamax);
248 doeffKa(1,0.8,etamin,etamax);
249 doeffKa(0,0.2,etamin,etamax);
250 doeffKa(0,0.4,etamin,etamax);
251 doeffKa(0,0.6,etamin,etamax);
252 doeffKa(0,0.8,etamin,etamax);
253
254 // Good matching eff (1 - TOF mism)
255 kGoodMatch=kTRUE;
256 doeffKa(1,0.1,etamin,etamax);
257 doeffKa(0,0.1,etamin,etamax);
258 kGoodMatch=kFALSE;
259
260 // eff 2 sigma / eff 3 sigma
261 kSigma2vs3=kTRUE;
262 doeffKa(1,0.1,etamin,etamax);
263 doeffKa(0,0.1,etamin,etamax);
264 kSigma2vs3=kFALSE;
265
266 kOverAll=kTRUE;
267 // TPC|TOF overall eff
268 doeffKa(1,0.2,etamin,etamax);
269 doeffKa(1,0.4,etamin,etamax);
270 doeffKa(1,0.6,etamin,etamax);
271 doeffKa(1,0.8,etamin,etamax);
272 doeffKa(0,0.2,etamin,etamax);
273 doeffKa(0,0.4,etamin,etamax);
274 doeffKa(0,0.6,etamin,etamax);
275 doeffKa(0,0.8,etamin,etamax);
276
277 kOverAllTOFmatch=kTRUE;
278 // TPC&TOF overall eff
279 doeffKa(1,0.2,etamin,etamax);
280 doeffKa(1,0.4,etamin,etamax);
281 doeffKa(1,0.6,etamin,etamax);
282 doeffKa(1,0.8,etamin,etamax);
283 doeffKa(0,0.2,etamin,etamax);
284 doeffKa(0,0.4,etamin,etamax);
285 doeffKa(0,0.6,etamin,etamax);
286 doeffKa(0,0.8,etamin,etamax);
287 kOverAllTOFmatch=kFALSE;
288
289 kOverAll2Sigma=kTRUE;
290 // TPC&TOF 2 TOF sigma cut
291 doeffKa(1,0.1,etamin,etamax);
292 doeffKa(0,0.1,etamin,etamax);
293 kOverAll2Sigma=kFALSE;
294 kOverAll=kFALSE;
295 gSystem->Unload("$ALICE_ROOT/PWGPP/pid/doeffKa_C.so");
296}