1 | /////////////////////////////////////////////////////////////////////////////
|
---|
2 | //
|
---|
3 | // _____Macro for checking the hillas parameters_____
|
---|
4 | //
|
---|
5 | // Ester Aliu <aliu@ifae.es>
|
---|
6 | ////////////////////////////////////////////////////////////////////////////
|
---|
7 | void hillasONOFF(
|
---|
8 | TString onname,
|
---|
9 | TString offname,
|
---|
10 | TString psname)
|
---|
11 | {
|
---|
12 | // general settings
|
---|
13 | gROOT->Reset();
|
---|
14 | gStyle->SetCanvasColor(0);
|
---|
15 | gStyle->SetCanvasBorderMode(0);
|
---|
16 | gStyle->SetPadBorderMode(0);
|
---|
17 | gStyle->SetFrameBorderMode(0);
|
---|
18 | gStyle->SetOptStat(kFALSE);
|
---|
19 | // gStyle->SetTitleSize(0);
|
---|
20 | gStyle->SetStatColor(0);
|
---|
21 | gStyle->SetStatBorderSize(1);
|
---|
22 | gStyle->SetStatW(0.2);
|
---|
23 | gStyle->SetStatH(0.1);
|
---|
24 | gStyle->SetStatX(0.9);
|
---|
25 | gStyle->SetStatY(0.9);
|
---|
26 |
|
---|
27 |
|
---|
28 | // define file, tree, canvas
|
---|
29 | TFile *fdata = new TFile(onname);
|
---|
30 | TTree *t = Parameters;
|
---|
31 |
|
---|
32 | // define file, tree, canvas
|
---|
33 | TFile *fdata2 = new TFile(offname);
|
---|
34 | TTree *t2 = Parameters;
|
---|
35 |
|
---|
36 | TString title;
|
---|
37 |
|
---|
38 | TH1F* hLength;
|
---|
39 | TH1F* hWidth;
|
---|
40 | TH1F* hDist;
|
---|
41 | TH1F* hConc;
|
---|
42 | TH1F* hConc1;
|
---|
43 | TH1F* hConc6;
|
---|
44 | TH1F* hAlpha;
|
---|
45 | TH1F* hSize;
|
---|
46 |
|
---|
47 | TH2F *hXY;
|
---|
48 |
|
---|
49 | // define aliases
|
---|
50 | t->SetAlias("length","MHillas.fLength*0.6/189");
|
---|
51 | t->SetAlias("width","MHillas.fWidth*0.6/189");
|
---|
52 | t->SetAlias("dist","MHillasSrc.fDist*0.6/189");
|
---|
53 | t->SetAlias("conc","MNewImagePar.fConc");
|
---|
54 | t->SetAlias("conc1","MNewImagePar.fConc1");
|
---|
55 | t->SetAlias("conc6","MConcentration.fConc[6]");
|
---|
56 | t->SetAlias("size","MHillas.fSize");
|
---|
57 | t->SetAlias("alpha","abs(MHillasSrc.fAlpha)");
|
---|
58 | t->SetAlias("meanx","MHillas.fMeanX");
|
---|
59 | t->SetAlias("meany","MHillas.fMeanY");
|
---|
60 |
|
---|
61 | // define aliases
|
---|
62 | t2->SetAlias("length","MHillas.fLength*0.6/189");
|
---|
63 | t2->SetAlias("width","MHillas.fWidth*0.6/189");
|
---|
64 | t2->SetAlias("dist","MHillasSrc.fDist*0.6/189");
|
---|
65 | t2->SetAlias("conc","MNewImagePar.fConc");
|
---|
66 | t2->SetAlias("conc1","MNewImagePar.fConc1");
|
---|
67 | t2->SetAlias("conc6","MConcentration.fConc[6]");
|
---|
68 | t2->SetAlias("size","MHillas.fSize");
|
---|
69 | t2->SetAlias("alpha","abs(MHillasSrc.fAlpha)");
|
---|
70 | t2->SetAlias("meanx","MHillas.fMeanX");
|
---|
71 | t2->SetAlias("meany","MHillas.fMeanY");
|
---|
72 |
|
---|
73 |
|
---|
74 | // define cuts
|
---|
75 | const char* cut1 = "size>500";
|
---|
76 | const char* cut2 = "size>1000";
|
---|
77 | const char* cut3 = "size>2000";
|
---|
78 | const char* cut4 = "size>5000";
|
---|
79 | const char* cut5 = "size>10000";
|
---|
80 |
|
---|
81 | const char* cutDist = "MHillasSrc.fDist*0.6/189.>0.2 && MHillasSrc.fDist*0.6/189.<0.8";
|
---|
82 |
|
---|
83 |
|
---|
84 | /*****************************************************************
|
---|
85 | **** PLOTS ****
|
---|
86 | *****************************************************************/
|
---|
87 |
|
---|
88 | Int_t nbin;
|
---|
89 | Float_t min;
|
---|
90 | Float_t max;
|
---|
91 |
|
---|
92 |
|
---|
93 | TString openpsname;
|
---|
94 | openpsname = psname + "(";
|
---|
95 |
|
---|
96 | TString closepsname;
|
---|
97 | closepsname = psname + ")";
|
---|
98 |
|
---|
99 |
|
---|
100 | //////////////////////////////////////////////////////////////
|
---|
101 | // Cuts in Size
|
---|
102 | //////////////////////////////////////////////////////////////
|
---|
103 | TCanvas *c1 = new TCanvas("c1","c1",500,800);
|
---|
104 | c1->Divide(2,3);
|
---|
105 | /////////////////////////////////////////////////////////////////
|
---|
106 |
|
---|
107 | char* var="length>>hLength";
|
---|
108 |
|
---|
109 | nbin = 40; min = 0.; max = 1.;
|
---|
110 |
|
---|
111 | c1->cd(1);
|
---|
112 | c1->GetPad(1)->SetGrid();
|
---|
113 | title = "length " ;
|
---|
114 | hLength = new TH1F("hLength",title,nbin, min, max);
|
---|
115 | t->Draw(var, "","goff");
|
---|
116 | hLength->SetXTitle("degrees");
|
---|
117 | hLength->SetNormFactor(1.);
|
---|
118 | hLength->Draw("Ehist");
|
---|
119 | c1->GetPad(1)->Update();
|
---|
120 |
|
---|
121 | c1->cd(2);
|
---|
122 | c1->GetPad(2)->SetGrid();
|
---|
123 | title = "length ";
|
---|
124 | title = title + cut1;
|
---|
125 | hLength = new TH1F("hLength",title, nbin, min, max);
|
---|
126 | t->Draw(var,cut1,"goff");
|
---|
127 | hLength->SetXTitle("degrees");
|
---|
128 | hLength->SetNormFactor(1.);
|
---|
129 | hLength->Draw("Ehist");
|
---|
130 | c1->GetPad(2)->Update();
|
---|
131 |
|
---|
132 | c1->cd(3);
|
---|
133 | c1->GetPad(3)->SetGrid();
|
---|
134 | title = "length ";
|
---|
135 | title = title + cut2;
|
---|
136 | hLength = new TH1F("hLength",title,nbin, min, max);
|
---|
137 | t->Draw(var,cut2,"goff");
|
---|
138 | hLength->SetXTitle("degrees");
|
---|
139 | hLength->SetNormFactor(1.);
|
---|
140 | hLength->Draw("Ehist");
|
---|
141 | c1->GetPad(3)->Update();
|
---|
142 |
|
---|
143 | c1->cd(4);
|
---|
144 | c1->GetPad(4)->SetGrid();
|
---|
145 | title = "length ";
|
---|
146 | title = title + cut3;
|
---|
147 | hLength = new TH1F("hLength",title,nbin, min, max);
|
---|
148 | t->Draw(var,cut3, "goff");
|
---|
149 | hLength->SetXTitle("degrees");
|
---|
150 | hLength->SetNormFactor(1.);
|
---|
151 | hLength->Draw("Ehist");
|
---|
152 | c1->GetPad(4)->Update();
|
---|
153 |
|
---|
154 | c1->cd(5);
|
---|
155 | c1->GetPad(5)->SetGrid();
|
---|
156 | title = "length ";
|
---|
157 | title = title + cut4;
|
---|
158 | hLength = new TH1F("hLength",title,nbin, min, max);
|
---|
159 | t->Draw(var,cut4, "goff");
|
---|
160 | hLength->SetXTitle("degrees");
|
---|
161 | hLength->SetNormFactor(1.);
|
---|
162 | hLength->Draw("Ehist");
|
---|
163 | c1->GetPad(5)->Update();
|
---|
164 |
|
---|
165 | c1->cd(6);
|
---|
166 | c1->GetPad(6)->SetGrid();
|
---|
167 | title = "length ";
|
---|
168 | title = title + cut5;
|
---|
169 | hLength = new TH1F("hLength",title,nbin, min, max);
|
---|
170 | t->Draw(var,cut5, "goff");
|
---|
171 | hLength->SetXTitle("degrees");
|
---|
172 | hLength->SetNormFactor(1.);
|
---|
173 | hLength->Draw("Ehist");
|
---|
174 | c1->GetPad(6)->Update();
|
---|
175 |
|
---|
176 | //off data
|
---|
177 |
|
---|
178 | c1->cd(1);
|
---|
179 | title = "length " ;
|
---|
180 | hLength = new TH1F("hLength",title,nbin, min, max);
|
---|
181 | t2->Draw(var, "","goff");
|
---|
182 | hLength->SetXTitle("degrees");
|
---|
183 | //hLength->SetLineStyle(2);
|
---|
184 | hLength->SetMarkerStyle(20);
|
---|
185 | hLength->SetMarkerSize(0.4);
|
---|
186 | hLength->SetNormFactor(1);
|
---|
187 | hLength->Draw("samePE");
|
---|
188 | c1->GetPad(1)->Modified();
|
---|
189 | c1->GetPad(1)->Update();
|
---|
190 |
|
---|
191 | c1->cd(2);
|
---|
192 | title = "length ";
|
---|
193 | title = title + cut1;
|
---|
194 | hLength = new TH1F("hLength",title, nbin, min, max);
|
---|
195 | t2->Draw(var,cut1,"goff");
|
---|
196 | hLength->SetXTitle("degrees");
|
---|
197 | //hLength->SetLineStyle(2);
|
---|
198 | hLength->SetMarkerSize(0.4);
|
---|
199 | hLength->SetMarkerStyle(20);
|
---|
200 | hLength->SetNormFactor(1);
|
---|
201 | hLength->Draw("samePE");
|
---|
202 | c1->GetPad(2)->Modified();
|
---|
203 | c1->GetPad(2)->Update();
|
---|
204 |
|
---|
205 | c1->cd(3);
|
---|
206 | title = "length ";
|
---|
207 | title = title + cut2;
|
---|
208 | hLength = new TH1F("hLength",title,nbin, min, max);
|
---|
209 | t2->Draw(var,cut2,"goff");
|
---|
210 | //hLength->SetXTitle("degrees");
|
---|
211 | hLength->SetMarkerSize(0.4);
|
---|
212 | hLength->SetMarkerStyle(20);
|
---|
213 | //hLength->SetLineStyle(2);
|
---|
214 | hLength->SetNormFactor(1);
|
---|
215 | hLength->Draw("samePE");
|
---|
216 | c1->GetPad(3)->Modified();
|
---|
217 | c1->GetPad(3)->Update();
|
---|
218 |
|
---|
219 | c1->cd(4);
|
---|
220 | title = "length ";
|
---|
221 | title = title + cut3;
|
---|
222 | hLength = new TH1F("hLength",title,nbin, min, max);
|
---|
223 | t2->Draw(var,cut3, "goff");
|
---|
224 | hLength->SetXTitle("degrees");
|
---|
225 | // hLength->SetLineStyle(2);
|
---|
226 | hLength->SetMarkerStyle(20);
|
---|
227 | hLength->SetMarkerSize(0.4);
|
---|
228 | hLength->SetNormFactor(1);
|
---|
229 | hLength->Draw("samePE");
|
---|
230 | c1->GetPad(4)->Modified();
|
---|
231 | c1->GetPad(4)->Update();
|
---|
232 |
|
---|
233 | c1->cd(5);
|
---|
234 | title = "length ";
|
---|
235 | title = title + cut4;
|
---|
236 | hLength = new TH1F("hLength",title,nbin, min, max);
|
---|
237 | t2->Draw(var,cut4, "goff");
|
---|
238 | hLength->SetXTitle("degrees");
|
---|
239 | //hLength->SetLineStyle(2);
|
---|
240 | hLength->SetMarkerStyle(20);
|
---|
241 | hLength->SetMarkerSize(0.4);
|
---|
242 | hLength->SetNormFactor(1);
|
---|
243 | hLength->Draw("samePE");
|
---|
244 | c1->GetPad(5)->Modified();
|
---|
245 | c1->GetPad(5)->Update();
|
---|
246 |
|
---|
247 | c1->cd(6);
|
---|
248 | title = "length ";
|
---|
249 | title = title + cut5;
|
---|
250 | hLength = new TH1F("hLength",title,nbin, min, max);
|
---|
251 | t2->Draw(var,cut5, "goff");
|
---|
252 | hLength->SetXTitle("degrees");
|
---|
253 | // hLength->SetLineStyle(2);
|
---|
254 | hLength->SetMarkerStyle(20);
|
---|
255 | hLength->SetMarkerSize(0.4);
|
---|
256 | hLength->SetNormFactor(1);
|
---|
257 | hLength->Draw("samePE");
|
---|
258 | c1->GetPad(6)->Modified();
|
---|
259 | c1->GetPad(6)->Update();
|
---|
260 |
|
---|
261 | c1->Print(openpsname);
|
---|
262 |
|
---|
263 | /////////////////////////////////////////////////////////////////
|
---|
264 | char* var="width>>hWidth";
|
---|
265 |
|
---|
266 | nbin = 40; min = 0.; max = 0.8;
|
---|
267 |
|
---|
268 | c1->cd(1);
|
---|
269 | title = "width ";
|
---|
270 | hWidth = new TH1F("hWidth",title,nbin, min, max);
|
---|
271 | t->Draw(var, "", "goff");
|
---|
272 | hWidth->SetXTitle("degrees");
|
---|
273 | hWidth->SetNormFactor(1.);
|
---|
274 | hWidth->Draw("Ehist");
|
---|
275 | c1->GetPad(1)->Update();
|
---|
276 |
|
---|
277 | c1->cd(2);
|
---|
278 | title = "width ";
|
---|
279 | title = title + cut1;
|
---|
280 | hWidth = new TH1F("hWidth",title,nbin, min, max);
|
---|
281 | t->Draw(var,cut1, "goff");
|
---|
282 | hWidth->SetXTitle("degrees");
|
---|
283 | hWidth->SetNormFactor(1.);
|
---|
284 | hWidth->Draw("Ehist");
|
---|
285 | c1->GetPad(2)->Update();
|
---|
286 |
|
---|
287 | c1->cd(3);
|
---|
288 | title = "width ";
|
---|
289 | title = title + cut2;
|
---|
290 | hWidth = new TH1F("hWidth",title,nbin, min, max);
|
---|
291 | t->Draw(var,cut2, "goff");
|
---|
292 | hWidth->SetXTitle("degrees");
|
---|
293 | hWidth->SetNormFactor(1.);
|
---|
294 | hWidth->Draw("Ehist");
|
---|
295 | c1->GetPad(3)->Update();
|
---|
296 |
|
---|
297 | c1->cd(4);
|
---|
298 | title = "width ";
|
---|
299 | title = title + cut3;
|
---|
300 | hWidth = new TH1F("hWidth",title,nbin, min, max);
|
---|
301 | t->Draw(var,cut3, "goff");
|
---|
302 | hWidth->SetXTitle("degrees");
|
---|
303 | hWidth->SetNormFactor(1.);
|
---|
304 | hWidth->Draw("Ehist");
|
---|
305 | c1->GetPad(4)->Update();
|
---|
306 |
|
---|
307 | c1->cd(5);
|
---|
308 | title = "width ";
|
---|
309 | title = title + cut4;
|
---|
310 | hWidth = new TH1F("hWidth",title,nbin, min, max);
|
---|
311 | t->Draw(var,cut4, "goff");
|
---|
312 | hWidth->SetXTitle("degrees");
|
---|
313 | hWidth->SetNormFactor(1.);
|
---|
314 | hWidth->Draw("Ehist");
|
---|
315 | c1->GetPad(5)->Update();
|
---|
316 |
|
---|
317 | c1->cd(6);
|
---|
318 | title = "width ";
|
---|
319 | title = title + cut5;
|
---|
320 | hWidth = new TH1F("hWidth",title,nbin, min, max);
|
---|
321 | t->Draw(var,cut5, "goff");
|
---|
322 | hWidth->SetXTitle("degrees");
|
---|
323 | hWidth->SetNormFactor(1.);
|
---|
324 | hWidth->Draw("Ehist");
|
---|
325 | c1->GetPad(6)->Update();
|
---|
326 |
|
---|
327 | // offdata
|
---|
328 |
|
---|
329 | c1->cd(1);
|
---|
330 | title = "width ";
|
---|
331 | hWidth = new TH1F("hWidth",title,nbin, min, max);
|
---|
332 | t2->Draw(var, "", "goff");
|
---|
333 | hWidth->SetXTitle("degrees");
|
---|
334 | //hWidth->SetLineStyle(2);
|
---|
335 | hWidth->SetMarkerStyle(20);
|
---|
336 | hWidth->SetMarkerSize(0.4);
|
---|
337 | hWidth->SetNormFactor(1);
|
---|
338 | hWidth->Draw("samePE");
|
---|
339 | c1->GetPad(1)->Modified();
|
---|
340 | c1->GetPad(1)->Update();
|
---|
341 |
|
---|
342 | c1->cd(2);
|
---|
343 | title = "width ";
|
---|
344 | title = title + cut1;
|
---|
345 | hWidth = new TH1F("hWidth",title,nbin, min, max);
|
---|
346 | t2->Draw(var,cut1, "goff");
|
---|
347 | hWidth->SetXTitle("degrees");
|
---|
348 | //hWidth->SetLineStyle(2);
|
---|
349 | hWidth->SetMarkerStyle(20);
|
---|
350 | hWidth->SetMarkerSize(0.4);
|
---|
351 | hWidth->SetNormFactor(1);
|
---|
352 | hWidth->Draw("samePE");
|
---|
353 | c1->GetPad(2)->Modified();
|
---|
354 | c1->GetPad(2)->Update();
|
---|
355 |
|
---|
356 | c1->cd(3);
|
---|
357 | title = "width ";
|
---|
358 | title = title + cut2;
|
---|
359 | hWidth = new TH1F("hWidth",title,nbin, min, max);
|
---|
360 | t2->Draw(var,cut2, "goff");
|
---|
361 | hWidth->SetXTitle("degrees");
|
---|
362 | //hWidth->SetLineStyle(2);
|
---|
363 | hWidth->SetMarkerStyle(20);
|
---|
364 | hWidth->SetMarkerSize(0.4);
|
---|
365 | hWidth->SetNormFactor(1);
|
---|
366 | hWidth->Draw("samePE");
|
---|
367 | c1->GetPad(3)->Modified();
|
---|
368 | c1->GetPad(3)->Update();
|
---|
369 |
|
---|
370 | c1->cd(4);
|
---|
371 | title = "width ";
|
---|
372 | title = title + cut3;
|
---|
373 | hWidth = new TH1F("hWidth",title,nbin, min, max);
|
---|
374 | t2->Draw(var,cut3, "goff");
|
---|
375 | hWidth->SetXTitle("degrees");
|
---|
376 | //hWidth->SetLineStyle(2);
|
---|
377 | hWidth->SetMarkerStyle(20);
|
---|
378 | hWidth->SetMarkerSize(0.4);
|
---|
379 | hWidth->SetNormFactor(1);
|
---|
380 | hWidth->Draw("samePE");
|
---|
381 | c1->GetPad(4)->Modified();
|
---|
382 | c1->GetPad(4)->Update();
|
---|
383 |
|
---|
384 | c1->cd(5);
|
---|
385 | title = "width ";
|
---|
386 | title = title + cut4;
|
---|
387 | hWidth = new TH1F("hWidth",title,nbin, min, max);
|
---|
388 | t2->Draw(var,cut4, "goff");
|
---|
389 | hWidth->SetXTitle("degrees");
|
---|
390 | // hWidth->SetLineStyle(2);
|
---|
391 | hWidth->SetMarkerStyle(20);
|
---|
392 | hWidth->SetMarkerSize(0.4);
|
---|
393 | hWidth->SetNormFactor(1);
|
---|
394 | hWidth->Draw("samePE");
|
---|
395 | c1->GetPad(5)->Modified();
|
---|
396 | c1->GetPad(5)->Update();
|
---|
397 |
|
---|
398 | c1->cd(6);
|
---|
399 | title = "width ";
|
---|
400 | title = title + cut5;
|
---|
401 | hWidth = new TH1F("hWidth",title,nbin, min, max);
|
---|
402 | t2->Draw(var,cut5, "goff");
|
---|
403 | hWidth->SetXTitle("degrees");
|
---|
404 | //hWidth->SetLineStyle(2);
|
---|
405 | hWidth->SetMarkerStyle(20);
|
---|
406 | hWidth->SetMarkerSize(0.4);
|
---|
407 | hWidth->SetNormFactor(1);
|
---|
408 | hWidth->Draw("samePE");
|
---|
409 | c1->GetPad(6)->Modified();
|
---|
410 | c1->GetPad(6)->Update();
|
---|
411 |
|
---|
412 |
|
---|
413 | c1->Print(psname);
|
---|
414 |
|
---|
415 | /////////////////////////////////////////////////////////////////
|
---|
416 |
|
---|
417 | char* var="dist>>hDist";
|
---|
418 |
|
---|
419 | nbin = 40; min = 0.; max = 1.6;
|
---|
420 |
|
---|
421 | c1->cd(1);
|
---|
422 | title = "dist ";
|
---|
423 | hDist = new TH1F("hDist",title,nbin, min, max);
|
---|
424 | t->Draw(var, "", "goff");
|
---|
425 | hDist->SetXTitle("degrees");
|
---|
426 | hDist->SetNormFactor(1.);
|
---|
427 | hDist->Draw("Ehist");
|
---|
428 | c1->GetPad(1)->Update();
|
---|
429 |
|
---|
430 | c1->cd(2);
|
---|
431 | title = "dist ";
|
---|
432 | title = title + cut1;
|
---|
433 | hDist = new TH1F("hDist",title,nbin, min, max);
|
---|
434 | t->Draw(var,cut1, "goff");
|
---|
435 | hDist->SetXTitle("degrees");
|
---|
436 | hDist->SetNormFactor(1.);
|
---|
437 | hDist->Draw("Ehist");
|
---|
438 | c1->GetPad(2)->Update();
|
---|
439 |
|
---|
440 | c1->cd(3);
|
---|
441 | title = "dist ";
|
---|
442 | title = title + cut2;
|
---|
443 | hDist = new TH1F("hDist",title,nbin, min, max);
|
---|
444 | t->Draw(var,cut2, "goff");
|
---|
445 | hDist->SetXTitle("degrees");
|
---|
446 | hDist->SetNormFactor(1.);
|
---|
447 | hDist->Draw("Ehist");
|
---|
448 | c1->GetPad(3)->Update();
|
---|
449 |
|
---|
450 | c1->cd(4);
|
---|
451 | title = "dist ";
|
---|
452 | title = title + cut3;
|
---|
453 | hDist = new TH1F("hDist",title,nbin, min, max);
|
---|
454 | t->Draw(var,cut3, "goff");
|
---|
455 | hDist->SetXTitle("degrees");
|
---|
456 | hDist->SetNormFactor(1.);
|
---|
457 | hDist->Draw("Ehist");
|
---|
458 | c1->GetPad(4)->Update();
|
---|
459 |
|
---|
460 | c1->cd(5);
|
---|
461 | title = "dist ";
|
---|
462 | title = title + cut4;
|
---|
463 | hDist = new TH1F("hDist",title,nbin, min, max);
|
---|
464 | t->Draw(var,cut4, "goff");
|
---|
465 | hDist->SetXTitle("degrees");
|
---|
466 | hDist->SetNormFactor(1.);
|
---|
467 | hDist->Draw("Ehist");
|
---|
468 | c1->GetPad(5)->Update();
|
---|
469 |
|
---|
470 | c1->cd(6);
|
---|
471 | title = "dist ";
|
---|
472 | title = title + cut5;
|
---|
473 | hDist = new TH1F("hDist",title,nbin, min, max);
|
---|
474 | t->Draw(var,cut5,"goff");
|
---|
475 | hDist->SetXTitle("degrees");
|
---|
476 | hDist->SetNormFactor(1.);
|
---|
477 | hDist->Draw("Ehist");
|
---|
478 | c1->GetPad(6)->Update();
|
---|
479 |
|
---|
480 | //offdata
|
---|
481 |
|
---|
482 | c1->cd(1);
|
---|
483 | title = "dist ";
|
---|
484 | hDist = new TH1F("hDist",title,nbin, min, max);
|
---|
485 | t2->Draw(var, "", "goff");
|
---|
486 | hDist->SetXTitle("degrees");
|
---|
487 | //hDist->SetLineStyle(2);
|
---|
488 | hDist->SetMarkerStyle(20);
|
---|
489 | hDist->SetMarkerSize(0.4);
|
---|
490 | hDist->SetNormFactor(1);
|
---|
491 | hDist->Draw("samePE");
|
---|
492 | c1->GetPad(1)->Modified();
|
---|
493 | c1->GetPad(1)->Update();
|
---|
494 |
|
---|
495 | c1->cd(2);
|
---|
496 | title = "dist ";
|
---|
497 | title = title + cut1;
|
---|
498 | hDist = new TH1F("hDist",title,nbin, min, max);
|
---|
499 | t2->Draw(var,cut1, "goff");
|
---|
500 | hDist->SetXTitle("degrees");
|
---|
501 | //hDist->SetLineStyle(2);
|
---|
502 | hDist->SetMarkerStyle(20);
|
---|
503 | hDist->SetMarkerSize(0.4);
|
---|
504 | hDist->SetNormFactor(1);
|
---|
505 | hDist->Draw("samePE");
|
---|
506 | c1->GetPad(2)->Modified();
|
---|
507 | c1->GetPad(2)->Update();
|
---|
508 |
|
---|
509 | c1->cd(3);
|
---|
510 | title = "dist ";
|
---|
511 | title = title + cut2;
|
---|
512 | hDist = new TH1F("hDist",title,nbin, min, max);
|
---|
513 | t2->Draw(var,cut2, "goff");
|
---|
514 | hDist->SetXTitle("degrees");
|
---|
515 | //hDist->SetLineStyle(2);
|
---|
516 | hDist->SetMarkerStyle(20);
|
---|
517 | hDist->SetMarkerSize(0.4);
|
---|
518 | hDist->SetNormFactor(1);
|
---|
519 | hDist->Draw("samePE");
|
---|
520 | c1->GetPad(3)->Modified();
|
---|
521 | c1->GetPad(3)->Update();
|
---|
522 |
|
---|
523 | c1->cd(4);
|
---|
524 | title = "dist ";
|
---|
525 | title = title + cut3;
|
---|
526 | hDist = new TH1F("hDist",title,nbin, min, max);
|
---|
527 | t2->Draw(var,cut3, "goff");
|
---|
528 | hDist->SetXTitle("degrees");
|
---|
529 | //hDist->SetLineStyle(2);
|
---|
530 | hDist->SetMarkerStyle(20);
|
---|
531 | hDist->SetMarkerSize(0.4);
|
---|
532 | hDist->SetNormFactor(1);
|
---|
533 | hDist->Draw("samePE");
|
---|
534 | c1->GetPad(4)->Modified();
|
---|
535 | c1->GetPad(4)->Update();
|
---|
536 |
|
---|
537 | c1->cd(5);
|
---|
538 | title = "dist ";
|
---|
539 | title = title + cut4;
|
---|
540 | hDist = new TH1F("hDist",title,nbin, min, max);
|
---|
541 | t2->Draw(var,cut4, "goff");
|
---|
542 | hDist->SetXTitle("degrees");
|
---|
543 | //hDist->SetLineStyle(2);
|
---|
544 | hDist->SetMarkerStyle(20);
|
---|
545 | hDist->SetMarkerSize(0.4);
|
---|
546 | hDist->SetNormFactor(1);
|
---|
547 | hDist->Draw("samePE");
|
---|
548 | c1->GetPad(5)->Modified();
|
---|
549 | c1->GetPad(5)->Update();
|
---|
550 |
|
---|
551 | c1->cd(6);
|
---|
552 | title = "dist ";
|
---|
553 | title = title + cut5;
|
---|
554 | hDist = new TH1F("hDist",title,nbin, min, max);
|
---|
555 | t2->Draw(var,cut5,"goff");
|
---|
556 | hDist->SetXTitle("degrees");
|
---|
557 | //hDist->SetLineStyle(2);
|
---|
558 | hDist->SetMarkerStyle(20);
|
---|
559 | hDist->SetMarkerSize(0.4);
|
---|
560 | hDist->SetNormFactor(1);
|
---|
561 | hDist->Draw("samePE");
|
---|
562 | c1->GetPad(6)->Modified();
|
---|
563 | c1->GetPad(6)->Update();
|
---|
564 |
|
---|
565 | c1->Print(psname);
|
---|
566 |
|
---|
567 | /////////////////////////////////////////////////////////////////
|
---|
568 | char* var="conc>>hConc";
|
---|
569 |
|
---|
570 | nbin = 40; min = 0.; max = 1.;
|
---|
571 |
|
---|
572 | c1->cd(1);
|
---|
573 | title = "conc ";
|
---|
574 | hConc = new TH1F("hConc",title,nbin, min, max);
|
---|
575 | t->Draw(var,"","goff");
|
---|
576 | hConc->SetNormFactor(1.);
|
---|
577 | hConc->Draw("Ehist");
|
---|
578 | c1->GetPad(1)->Update();
|
---|
579 |
|
---|
580 | c1->cd(2);
|
---|
581 | title = "conc ";
|
---|
582 | title = title + cut1;
|
---|
583 | hConc = new TH1F("hConc",title,nbin, min, max);
|
---|
584 | t->Draw(var,cut1,"goff");
|
---|
585 | hConc->SetNormFactor(1.);
|
---|
586 | hConc->Draw("Ehist");
|
---|
587 | c1->GetPad(2)->Update();
|
---|
588 |
|
---|
589 | c1->cd(3);
|
---|
590 | title = "conc ";
|
---|
591 | title = title + cut2;
|
---|
592 | hConc = new TH1F("hConc",title,nbin, min, max);
|
---|
593 | t->Draw(var,cut2,"goff");
|
---|
594 | hConc->SetNormFactor(1.);
|
---|
595 | hConc->Draw("Ehist");
|
---|
596 | c1->GetPad(3)->Update();
|
---|
597 |
|
---|
598 | c1->cd(4);
|
---|
599 | title = "conc ";
|
---|
600 | title = title + cut3;
|
---|
601 | hConc = new TH1F("hConc",title,nbin, min, max);
|
---|
602 | t->Draw(var,cut3,"goff");
|
---|
603 | hConc->SetNormFactor(1.);
|
---|
604 | hConc->Draw("Ehist");
|
---|
605 | c1->GetPad(4)->Update();
|
---|
606 |
|
---|
607 | c1->cd(5);
|
---|
608 | title = "conc ";
|
---|
609 | title = title + cut4;
|
---|
610 | hConc = new TH1F("hConc",title,nbin, min, max);
|
---|
611 | t->Draw(var,cut4,"goff");
|
---|
612 | hConc->SetNormFactor(1.);
|
---|
613 | hConc->Draw("Ehist");
|
---|
614 | c1->GetPad(5)->Update();
|
---|
615 |
|
---|
616 | c1->cd(6);
|
---|
617 | title = "conc ";
|
---|
618 | title = title + cut5;
|
---|
619 | hConc = new TH1F("hConc",title,nbin, min, max);
|
---|
620 | t->Draw(var,cut5,"goff");
|
---|
621 | hConc->SetNormFactor(1.);
|
---|
622 | hConc->Draw("Ehist");
|
---|
623 | c1->GetPad(6)->Update();
|
---|
624 |
|
---|
625 | //offdata
|
---|
626 |
|
---|
627 | c1->cd(1);
|
---|
628 | title = "conc ";
|
---|
629 | hConc = new TH1F("hConc",title,nbin, min, max);
|
---|
630 | t2->Draw(var, "","goff");
|
---|
631 | hConc->SetNormFactor(1.);
|
---|
632 | //hConc->SetLineStyle(2);
|
---|
633 | hConc->SetMarkerStyle(20);
|
---|
634 | hConc->SetMarkerSize(0.4);
|
---|
635 | hConc->Draw("samePE");
|
---|
636 | c1->GetPad(1)->Modified();
|
---|
637 | c1->GetPad(1)->Update();
|
---|
638 |
|
---|
639 | c1->cd(2);
|
---|
640 | title = "conc ";
|
---|
641 | title = title + cut1;
|
---|
642 | hConc = new TH1F("hConc",title,nbin, min, max);
|
---|
643 | t2->Draw(var,cut1,"goff");
|
---|
644 | hConc->SetNormFactor(1.);
|
---|
645 | hConc->SetMarkerStyle(20);
|
---|
646 | hConc->SetMarkerSize(0.4);
|
---|
647 | // hConc->SetLineStyle(2);
|
---|
648 | hConc->Draw("samePE");
|
---|
649 | c1->GetPad(2)->Modified();
|
---|
650 | c1->GetPad(2)->Update();
|
---|
651 |
|
---|
652 | c1->cd(3);
|
---|
653 | title = "conc ";
|
---|
654 | title = title + cut2;
|
---|
655 | hConc = new TH1F("hConc",title,nbin, min, max);
|
---|
656 | t2->Draw(var,cut2,"goff");
|
---|
657 | hConc->SetNormFactor(1.);
|
---|
658 | hConc->SetMarkerStyle(20);
|
---|
659 | hConc->SetMarkerSize(0.4);
|
---|
660 | //hConc->SetLineStyle(2);
|
---|
661 | hConc->Draw("samePE");
|
---|
662 | c1->GetPad(3)->Modified();
|
---|
663 | c1->GetPad(3)->Update();
|
---|
664 |
|
---|
665 | c1->cd(4);
|
---|
666 | title = "conc ";
|
---|
667 | title = title + cut3;
|
---|
668 | hConc = new TH1F("hConc",title,nbin, min, max);
|
---|
669 | t2->Draw(var,cut3,"goff");
|
---|
670 | hConc->SetNormFactor(1.);
|
---|
671 | hConc->SetMarkerStyle(20);
|
---|
672 | hConc->SetMarkerSize(0.4);
|
---|
673 | //hConc->SetLineStyle(2);
|
---|
674 | hConc->Draw("samePE");
|
---|
675 | c1->GetPad(4)->Modified();
|
---|
676 | c1->GetPad(4)->Update();
|
---|
677 |
|
---|
678 | c1->cd(5);
|
---|
679 | title = "conc ";
|
---|
680 | title = title + cut4;
|
---|
681 | hConc = new TH1F("hConc",title,nbin, min, max);
|
---|
682 | t2->Draw(var,cut4,"goff");
|
---|
683 | hConc->SetNormFactor(1.);
|
---|
684 | hConc->SetMarkerStyle(20);
|
---|
685 | hConc->SetMarkerSize(0.4);
|
---|
686 | //hConc->SetLineStyle(2);
|
---|
687 | hConc->Draw("samePE");
|
---|
688 | c1->GetPad(5)->Modified();
|
---|
689 | c1->GetPad(5)->Update();
|
---|
690 |
|
---|
691 | c1->cd(6);
|
---|
692 | title = "conc ";
|
---|
693 | title = title + cut5;
|
---|
694 | hConc = new TH1F("hConc",title,nbin, min, max);
|
---|
695 | t2->Draw(var,cut5,"goff");
|
---|
696 | hConc->SetNormFactor(1.);
|
---|
697 | hConc->SetMarkerStyle(20);
|
---|
698 | hConc->SetMarkerSize(0.4);
|
---|
699 | //hConc->SetLineStyle(2);
|
---|
700 | hConc->Draw("samePE");
|
---|
701 | c1->GetPad(6)->Modified();
|
---|
702 | c1->GetPad(6)->Update();
|
---|
703 |
|
---|
704 | c1->Print(psname);
|
---|
705 |
|
---|
706 | /////////////////////////////////////////////////////////////////
|
---|
707 | char* var="conc6>>hConc6";
|
---|
708 |
|
---|
709 | nbin = 40; min = 0.; max = 1.;
|
---|
710 |
|
---|
711 | c1->cd(1);
|
---|
712 | title = "conc6 ";
|
---|
713 | hConc6 = new TH1F("hConc6",title,nbin, min, max);
|
---|
714 | t->Draw(var,"","goff");
|
---|
715 | hConc6->SetNormFactor(1.);
|
---|
716 | hConc6->Draw("Ehist");
|
---|
717 | c1->GetPad(1)->Update();
|
---|
718 |
|
---|
719 | c1->cd(2);
|
---|
720 | title = "conc6 ";
|
---|
721 | title = title + cut1;
|
---|
722 | hConc6 = new TH1F("hConc6",title,nbin, min, max);
|
---|
723 | t->Draw(var,cut1,"goff");
|
---|
724 | hConc6->SetNormFactor(1.);
|
---|
725 | hConc6->Draw("Ehist");
|
---|
726 | c1->GetPad(2)->Update();
|
---|
727 |
|
---|
728 | c1->cd(3);
|
---|
729 | title = "conc6 ";
|
---|
730 | title = title + cut2;
|
---|
731 | hConc6 = new TH1F("hConc6",title,nbin, min, max);
|
---|
732 | t->Draw(var,cut2,"goff");
|
---|
733 | hConc6->SetNormFactor(1.);
|
---|
734 | hConc6->Draw("Ehist");
|
---|
735 | c1->GetPad(3)->Update();
|
---|
736 |
|
---|
737 | c1->cd(4);
|
---|
738 | title = "conc6 ";
|
---|
739 | title = title + cut3;
|
---|
740 | hConc6 = new TH1F("hConc6",title,nbin, min, max);
|
---|
741 | t->Draw(var,cut3,"goff");
|
---|
742 | hConc6->SetNormFactor(1.);
|
---|
743 | hConc6->Draw("Ehist");
|
---|
744 | c1->GetPad(4)->Update();
|
---|
745 |
|
---|
746 | c1->cd(5);
|
---|
747 | title = "conc6 ";
|
---|
748 | title = title + cut4;
|
---|
749 | hConc6 = new TH1F("hConc6",title,nbin, min, max);
|
---|
750 | t->Draw(var,cut4,"goff");
|
---|
751 | hConc6->SetNormFactor(1.);
|
---|
752 | hConc6->Draw("Ehist");
|
---|
753 | c1->GetPad(5)->Update();
|
---|
754 |
|
---|
755 | c1->cd(6);
|
---|
756 | title = "conc6 ";
|
---|
757 | title = title + cut5;
|
---|
758 | hConc6 = new TH1F("hConc6",title,nbin, min, max);
|
---|
759 | t->Draw(var,cut5,"goff");
|
---|
760 | hConc6->SetNormFactor(1.);
|
---|
761 | hConc6->Draw("Ehist");
|
---|
762 | c1->GetPad(6)->Update();
|
---|
763 |
|
---|
764 | //offdata
|
---|
765 |
|
---|
766 | c1->cd(1);
|
---|
767 | title = "conc6 ";
|
---|
768 | hConc6 = new TH1F("hConc6",title,nbin, min, max);
|
---|
769 | t2->Draw(var,"","goff");
|
---|
770 | hConc6->SetNormFactor(1.);
|
---|
771 | hConc6->SetMarkerStyle(20);
|
---|
772 | hConc6->SetMarkerSize(0.4);
|
---|
773 | //hConc6->SetLineStyle(2);
|
---|
774 | hConc6->Draw("samePE");
|
---|
775 | c1->GetPad(1)->Modified();
|
---|
776 | c1->GetPad(1)->Update();
|
---|
777 |
|
---|
778 | c1->cd(2);
|
---|
779 | title = "conc6 ";
|
---|
780 | title = title + cut1;
|
---|
781 | hConc6 = new TH1F("hConc6",title,nbin, min, max);
|
---|
782 | t2->Draw(var,cut1,"goff");
|
---|
783 | hConc6->SetNormFactor(1.);
|
---|
784 | hConc6->SetMarkerStyle(20);
|
---|
785 | hConc6->SetMarkerSize(0.4);
|
---|
786 | //hConc6->SetLineStyle(2);
|
---|
787 | hConc6->Draw("samePE");
|
---|
788 | c1->GetPad(2)->Modified();
|
---|
789 | c1->GetPad(2)->Update();
|
---|
790 |
|
---|
791 | c1->cd(3);
|
---|
792 | title = "conc6 ";
|
---|
793 | title = title + cut2;
|
---|
794 | hConc6 = new TH1F("hConc6",title,nbin, min, max);
|
---|
795 | t2->Draw(var,cut2,"goff");
|
---|
796 | hConc6->SetNormFactor(1.);
|
---|
797 | hConc6->SetMarkerStyle(20);
|
---|
798 | hConc6->SetMarkerSize(0.4);
|
---|
799 | //hConc6->SetLineStyle(2);
|
---|
800 | hConc6->Draw("samePE");
|
---|
801 | c1->GetPad(3)->Modified();
|
---|
802 | c1->GetPad(3)->Update();
|
---|
803 |
|
---|
804 | c1->cd(4);
|
---|
805 | title = "conc6 ";
|
---|
806 | title = title + cut3;
|
---|
807 | hConc6 = new TH1F("hConc6",title,nbin, min, max);
|
---|
808 | t2->Draw(var,cut3,"goff");
|
---|
809 | hConc6->SetNormFactor(1.);
|
---|
810 | hConc6->SetMarkerStyle(20);
|
---|
811 | hConc6->SetMarkerSize(0.4);
|
---|
812 | //hConc6->SetLineStyle(2);
|
---|
813 | hConc6->Draw("samePE");
|
---|
814 | c1->GetPad(4)->Modified();
|
---|
815 | c1->GetPad(4)->Update();
|
---|
816 |
|
---|
817 | c1->cd(5);
|
---|
818 | title = "conc6 ";
|
---|
819 | title = title + cut4;
|
---|
820 | hConc6 = new TH1F("hConc6",title,nbin, min, max);
|
---|
821 | t2->Draw(var,cut4,"goff");
|
---|
822 | hConc6->SetNormFactor(1.);
|
---|
823 | hConc6->SetMarkerStyle(20);
|
---|
824 | hConc6->SetMarkerSize(0.4);
|
---|
825 | // hConc6->SetLineStyle(2);
|
---|
826 | hConc6->Draw("samePE");
|
---|
827 | c1->GetPad(5)->Modified();
|
---|
828 | c1->GetPad(5)->Update();
|
---|
829 |
|
---|
830 | c1->cd(6);
|
---|
831 | title = "conc6 ";
|
---|
832 | title = title + cut5;
|
---|
833 | hConc6 = new TH1F("hConc6",title,nbin, min, max);
|
---|
834 | t2->Draw(var,cut5,"goff");
|
---|
835 | hConc6->SetNormFactor(1.);
|
---|
836 | hConc6->SetMarkerStyle(20);
|
---|
837 | hConc6->SetMarkerSize(0.4);
|
---|
838 | //hConc6->SetLineStyle(2);
|
---|
839 | hConc6->Draw("samePE");
|
---|
840 | c1->GetPad(6)->Modified();
|
---|
841 | c1->GetPad(6)->Update();
|
---|
842 |
|
---|
843 | c1->Print(psname);
|
---|
844 |
|
---|
845 | /////////////////////////////////////////////////////////////////
|
---|
846 | char* var="alpha>>hAlpha";
|
---|
847 |
|
---|
848 | nbin = 18; min = 0.; max = 90.;
|
---|
849 |
|
---|
850 | c1->cd(1);
|
---|
851 | title = "alpha ";
|
---|
852 | hAlpha = new TH1F("hAlpha",title,nbin, min, max);
|
---|
853 | t->Draw(var, "", "goff");
|
---|
854 | hAlpha->SetXTitle("degrees");
|
---|
855 | hAlpha->SetNormFactor(1);
|
---|
856 | hAlpha->Draw("Ehist");
|
---|
857 | c1->GetPad(1)->Update();
|
---|
858 |
|
---|
859 | c1->cd(2);
|
---|
860 | title = "alpha ";
|
---|
861 | title = title + cut1;
|
---|
862 | hAlpha = new TH1F("hAlpha",title,nbin, min, max);
|
---|
863 | t->Draw(var,cut1, "goff");
|
---|
864 | hAlpha->SetXTitle("degrees");
|
---|
865 | hAlpha->SetNormFactor(1);
|
---|
866 | hAlpha->Draw("Ehist");
|
---|
867 | c1->GetPad(2)->Update();
|
---|
868 |
|
---|
869 | c1->cd(3);
|
---|
870 | title = "alpha ";
|
---|
871 | title = title + cut2;
|
---|
872 | hAlpha = new TH1F("hAlpha",title,nbin, min, max);
|
---|
873 | t->Draw(var,cut2, "goff");
|
---|
874 | hAlpha->SetXTitle("degrees");
|
---|
875 | hAlpha->SetNormFactor(1);
|
---|
876 | hAlpha->Draw("Ehist");
|
---|
877 | c1->GetPad(3)->Update();
|
---|
878 |
|
---|
879 | c1->cd(4);
|
---|
880 | title = "alpha ";
|
---|
881 | title = title + cut3;
|
---|
882 | hAlpha = new TH1F("hAlpha",title,nbin, min, max);
|
---|
883 | t->Draw(var,cut3, "goff");
|
---|
884 | hAlpha->SetXTitle("degrees");
|
---|
885 | hAlpha->SetNormFactor(1);
|
---|
886 | hAlpha->Draw("Ehist");
|
---|
887 | c1->GetPad(4)->Update();
|
---|
888 |
|
---|
889 | c1->cd(5);
|
---|
890 | title = "alpha ";
|
---|
891 | title = title + cut4;
|
---|
892 | hAlpha = new TH1F("hAlpha",title,nbin, min, max);
|
---|
893 | t->Draw(var,cut4, "goff");
|
---|
894 | hAlpha->SetXTitle("degrees");
|
---|
895 | hAlpha->SetNormFactor(1);
|
---|
896 | hAlpha->Draw("Ehist");
|
---|
897 | c1->GetPad(5)->Update();
|
---|
898 |
|
---|
899 | c1->cd(6);
|
---|
900 | title = "alpha ";
|
---|
901 | title = title + cut5;
|
---|
902 | hAlpha = new TH1F("hAlpha",title,nbin, min, max);
|
---|
903 | t->Draw(var,cut5, "goff");
|
---|
904 | hAlpha->SetXTitle("degrees");
|
---|
905 | hAlpha->SetNormFactor(1);
|
---|
906 | hAlpha->Draw("Ehist");
|
---|
907 | c1->GetPad(6)->Update();
|
---|
908 |
|
---|
909 | //offdata
|
---|
910 |
|
---|
911 | c1->cd(1);
|
---|
912 | title = "alpha ";
|
---|
913 | hAlpha = new TH1F("hAlpha",title,nbin, min, max);
|
---|
914 | t2->Draw(var, "", "goff");
|
---|
915 | hAlpha->SetXTitle("degrees");
|
---|
916 | //hAlpha->SetLineStyle(2);
|
---|
917 | hAlpha->SetNormFactor(1);
|
---|
918 | hAlpha->SetMarkerStyle(20);
|
---|
919 | hAlpha->SetMarkerSize(0.4);
|
---|
920 | hAlpha->Draw("samePE");
|
---|
921 | c1->GetPad(1)->Modified();
|
---|
922 | c1->GetPad(1)->Update();
|
---|
923 |
|
---|
924 | c1->cd(2);
|
---|
925 | title = "alpha ";
|
---|
926 | title = title + cut1;
|
---|
927 | hAlpha = new TH1F("hAlpha",title,nbin, min, max);
|
---|
928 | t2->Draw(var,cut1, "goff");
|
---|
929 | hAlpha->SetXTitle("degrees");
|
---|
930 | //hAlpha->SetLineStyle(2);
|
---|
931 | hAlpha->SetMarkerStyle(20);
|
---|
932 | hAlpha->SetMarkerSize(0.4);
|
---|
933 | hAlpha->SetNormFactor(1);
|
---|
934 | hAlpha->Draw("samePE");
|
---|
935 | c1->GetPad(2)->Modified();
|
---|
936 | c1->GetPad(2)->Update();
|
---|
937 |
|
---|
938 | c1->cd(3);
|
---|
939 | title = "alpha ";
|
---|
940 | title = title + cut2;
|
---|
941 | hAlpha = new TH1F("hAlpha",title,nbin, min, max);
|
---|
942 | t2->Draw(var,cut2, "goff");
|
---|
943 | hAlpha->SetXTitle("degrees");
|
---|
944 | //hAlpha->SetLineStyle(2);
|
---|
945 | hAlpha->SetNormFactor(1);
|
---|
946 | hAlpha->SetMarkerStyle(20);
|
---|
947 | hAlpha->SetMarkerSize(0.4);
|
---|
948 | hAlpha->Draw("samePE");
|
---|
949 | c1->GetPad(3)->Modified();
|
---|
950 | c1->GetPad(3)->Update();
|
---|
951 |
|
---|
952 | c1->cd(4);
|
---|
953 | title = "alpha ";
|
---|
954 | title = title + cut3;
|
---|
955 | hAlpha = new TH1F("hAlpha",title,nbin, min, max);
|
---|
956 | t2->Draw(var,cut3, "goff");
|
---|
957 | hAlpha->SetXTitle("degrees");
|
---|
958 | //hAlpha->SetLineStyle(2);
|
---|
959 | hAlpha->SetMarkerStyle(20);
|
---|
960 | hAlpha->SetMarkerSize(0.4);
|
---|
961 | hAlpha->SetNormFactor(1);
|
---|
962 | hAlpha->Draw("samePE");
|
---|
963 | c1->GetPad(4)->Modified();
|
---|
964 | c1->GetPad(4)->Update();
|
---|
965 |
|
---|
966 | c1->cd(5);
|
---|
967 | title = "alpha ";
|
---|
968 | title = title + cut4;
|
---|
969 | hAlpha = new TH1F("hAlpha",title,nbin, min, max);
|
---|
970 | t2->Draw(var,cut4, "goff");
|
---|
971 | hAlpha->SetXTitle("degrees");
|
---|
972 | //hAlpha->SetLineStyle(2);
|
---|
973 | hAlpha->SetMarkerStyle(20);
|
---|
974 | hAlpha->SetMarkerSize(0.4);
|
---|
975 | hAlpha->SetNormFactor(1);
|
---|
976 | hAlpha->Draw("samePE");
|
---|
977 | c1->GetPad(5)->Modified();
|
---|
978 | c1->GetPad(5)->Update();
|
---|
979 |
|
---|
980 | c1->cd(6);
|
---|
981 | title = "alpha ";
|
---|
982 | title = title + cut5;
|
---|
983 | hAlpha = new TH1F("hAlpha",title,nbin, min, max);
|
---|
984 | t2->Draw(var,cut5, "goff");
|
---|
985 | hAlpha->SetXTitle("degrees");
|
---|
986 | //hAlpha->SetLineStyle(2);
|
---|
987 | hAlpha->SetMarkerStyle(20);
|
---|
988 | hAlpha->SetMarkerSize(0.4);
|
---|
989 | hAlpha->SetNormFactor(1);
|
---|
990 | hAlpha->Draw("samePE");
|
---|
991 | c1->GetPad(6)->Modified();
|
---|
992 | c1->GetPad(6)->Update();
|
---|
993 |
|
---|
994 | c1->Print(psname);
|
---|
995 |
|
---|
996 | /////////////////////////////////////////////////////////////////
|
---|
997 | // Cuts in Dist
|
---|
998 | /////////////////////////////////////////////////////////////////
|
---|
999 |
|
---|
1000 | TCanvas *c2 = new TCanvas("c2","Cuts in Dist",500,800);
|
---|
1001 | c2->Divide(2,3);
|
---|
1002 | /////////////////////////////////////////////////////////////////
|
---|
1003 | char* var="length>>hLength";
|
---|
1004 |
|
---|
1005 | nbin = 40; min = 0.; max = 1.;
|
---|
1006 |
|
---|
1007 | c2->cd(1);
|
---|
1008 | // c2->GetPad(1)->SetGrid();
|
---|
1009 | title = "length ";
|
---|
1010 | hLength = new TH1F("hLength",title,nbin, min, max);
|
---|
1011 | t->Draw(var, "", "goff");
|
---|
1012 | hLength->SetXTitle("degrees");
|
---|
1013 | hLength->SetNormFactor(1);
|
---|
1014 | hLength->Draw("Ehist");
|
---|
1015 | c2->GetPad(1)->Update();
|
---|
1016 |
|
---|
1017 | c2->cd(2);
|
---|
1018 | //c2->GetPad(2)->SetGrid();
|
---|
1019 | title = "length ";
|
---|
1020 | title = title + cutDist;
|
---|
1021 | hLength = new TH1F("hLength",title,nbin, min, max);
|
---|
1022 | t->Draw(var,cutDist, "goff");
|
---|
1023 | hLength->SetXTitle("degrees");
|
---|
1024 | hLength->SetNormFactor(1);
|
---|
1025 | hLength->Draw("Ehist");
|
---|
1026 | c2->GetPad(2)->Update();
|
---|
1027 |
|
---|
1028 | //offdata
|
---|
1029 |
|
---|
1030 | c2->cd(1);
|
---|
1031 | c2->GetPad(1)->SetGrid();
|
---|
1032 | title = "length ";
|
---|
1033 | hLength = new TH1F("hLength",title,nbin, min, max);
|
---|
1034 | t2->Draw(var, "", "goff");
|
---|
1035 | hLength->SetXTitle("degrees");
|
---|
1036 | // hLength->SetLineStyle(2);
|
---|
1037 | hLength->SetMarkerStyle(20);
|
---|
1038 | hLength->SetMarkerSize(0.4);
|
---|
1039 | hLength->SetNormFactor(1);
|
---|
1040 | hLength->Draw("samePE");
|
---|
1041 | c2->GetPad(1)->Modified();
|
---|
1042 | c2->GetPad(1)->Update();
|
---|
1043 |
|
---|
1044 | c2->cd(2);
|
---|
1045 | c2->GetPad(2)->SetGrid();
|
---|
1046 | title = "length ";
|
---|
1047 | title = title + cutDist;
|
---|
1048 | hLength = new TH1F("hLength",title,nbin, min, max);
|
---|
1049 | t2->Draw(var,cutDist, "goff");
|
---|
1050 | hLength->SetXTitle("degrees");
|
---|
1051 | hLength->SetMarkerStyle(20);
|
---|
1052 | hLength->SetMarkerSize(0.4);
|
---|
1053 | //hLength->SetLineStyle(2);
|
---|
1054 | hLength->SetNormFactor(1);
|
---|
1055 | hLength->Draw("samePE");
|
---|
1056 | c2->GetPad(1)->Modified();
|
---|
1057 | c2->GetPad(2)->Update();
|
---|
1058 |
|
---|
1059 | /////////////////////////////////////////////////////////////////
|
---|
1060 | char* var="width>>hWidth";
|
---|
1061 |
|
---|
1062 | nbin = 40; min = 0.; max = 1.;
|
---|
1063 |
|
---|
1064 | c2->cd(3);
|
---|
1065 | c2->GetPad(3)->SetGrid();
|
---|
1066 | title = "width ";
|
---|
1067 | hWidth = new TH1F("hWidth",title,nbin, min, max);
|
---|
1068 | t->Draw(var, "", "goff");
|
---|
1069 | hWidth->SetXTitle("degrees");
|
---|
1070 | hWidth->SetNormFactor(1);
|
---|
1071 | hWidth->Draw("Ehist");
|
---|
1072 | c2->GetPad(3)->Update();
|
---|
1073 |
|
---|
1074 | c2->cd(4);
|
---|
1075 | c2->GetPad(4)->SetGrid();
|
---|
1076 | title = "width ";
|
---|
1077 | title = title + cutDist;
|
---|
1078 | hWidth = new TH1F("hWidth",title,nbin, min, max);
|
---|
1079 | t->Draw(var,cutDist, "goff");
|
---|
1080 | hWidth->SetXTitle("degrees");
|
---|
1081 | hWidth->SetNormFactor(1);
|
---|
1082 | hWidth->Draw("Ehist");
|
---|
1083 | c2->GetPad(4)->Update();
|
---|
1084 |
|
---|
1085 | //offdata
|
---|
1086 |
|
---|
1087 | c2->cd(3);
|
---|
1088 | c2->GetPad(3)->SetGrid();
|
---|
1089 | title = "width ";
|
---|
1090 | hWidth = new TH1F("hWidth",title,nbin, min, max);
|
---|
1091 | t2->Draw(var, "", "goff");
|
---|
1092 | hWidth->SetXTitle("degrees");
|
---|
1093 | //hWidth->SetLineStyle(2);
|
---|
1094 | hWidth->SetMarkerStyle(20);
|
---|
1095 | hWidth->SetMarkerSize(0.4);
|
---|
1096 | hWidth->SetNormFactor(1);
|
---|
1097 | hWidth->Draw("samePE");
|
---|
1098 | c2->GetPad(3)->Modified();
|
---|
1099 | c2->GetPad(3)->Update();
|
---|
1100 |
|
---|
1101 | c2->cd(4);
|
---|
1102 | c2->GetPad(4)->SetGrid();
|
---|
1103 | title = "width ";
|
---|
1104 | title = title + cutDist;
|
---|
1105 | hWidth = new TH1F("hWidth",title,nbin, min, max);
|
---|
1106 | t2->Draw(var,cutDist, "goff");
|
---|
1107 | hWidth->SetXTitle("degrees");
|
---|
1108 | //hWidth->SetLineStyle(2);
|
---|
1109 | hWidth->SetMarkerStyle(20);
|
---|
1110 | hWidth->SetMarkerSize(0.4);
|
---|
1111 | hWidth->SetNormFactor(1);
|
---|
1112 | hWidth->Draw("samePE");
|
---|
1113 | c2->GetPad(4)->Modified();
|
---|
1114 | c2->GetPad(4)->Update();
|
---|
1115 |
|
---|
1116 | /////////////////////////////////////////////////////////////////
|
---|
1117 | char* var="conc>>hConc";
|
---|
1118 |
|
---|
1119 | nbin = 40; min = 0.; max = 1.;
|
---|
1120 |
|
---|
1121 | c2->cd(5);
|
---|
1122 | c2->GetPad(5)->SetGrid();
|
---|
1123 | title = "conc ";
|
---|
1124 | hConc = new TH1F("hConc",title,nbin, min, max);
|
---|
1125 | t->Draw(var,"","goff");
|
---|
1126 | hConc->SetNormFactor(1.);
|
---|
1127 | hConc->Draw("Ehist");
|
---|
1128 | c2->GetPad(5)->Update();
|
---|
1129 |
|
---|
1130 | c2->cd(6);
|
---|
1131 | c2->GetPad(6)->SetGrid();
|
---|
1132 | title = "conc ";
|
---|
1133 | title = title + cutDist;
|
---|
1134 | hConc = new TH1F("hConc",title,nbin, min, max);
|
---|
1135 | t->Draw(var,cutDist,"goff");
|
---|
1136 | hConc->SetNormFactor(1.);
|
---|
1137 | hConc->Draw("Ehist");
|
---|
1138 | c2->GetPad(6)->Update();
|
---|
1139 |
|
---|
1140 | //offdata
|
---|
1141 |
|
---|
1142 | c2->cd(5);
|
---|
1143 | c2->GetPad(5)->SetGrid();
|
---|
1144 | title = "conc ";
|
---|
1145 | hConc = new TH1F("hConc",title,nbin, min, max);
|
---|
1146 | t2->Draw(var,"", "goff");
|
---|
1147 | // hConc->SetLineStyle(2);
|
---|
1148 | hConc->SetMarkerStyle(20);
|
---|
1149 | hConc->SetMarkerSize(0.4);
|
---|
1150 | hConc->SetNormFactor(1.);
|
---|
1151 | hConc->Draw("samePE");
|
---|
1152 | c2->GetPad(5)->Modified();
|
---|
1153 | c2->GetPad(5)->Update();
|
---|
1154 |
|
---|
1155 | c2->cd(6);
|
---|
1156 | c2->GetPad(6)->SetGrid();
|
---|
1157 | title = "conc ";
|
---|
1158 | title = title + cutDist;
|
---|
1159 | hConc = new TH1F("hConc",title,nbin, min, max);
|
---|
1160 | t2->Draw(var,cutDist,"goff");
|
---|
1161 | //hConc->SetLineStyle(2);
|
---|
1162 | hConc->SetMarkerStyle(20);
|
---|
1163 | hConc->SetMarkerSize(0.4);
|
---|
1164 | hConc->SetNormFactor(1.);
|
---|
1165 | hConc->Draw("samePE");
|
---|
1166 | c2->GetPad(6)->Modified();
|
---|
1167 | c2->GetPad(6)->Update();
|
---|
1168 |
|
---|
1169 | c2->Print(psname);
|
---|
1170 |
|
---|
1171 | /////////////////////////////////////////////////////////////////
|
---|
1172 | char* var="conc6>>hConc6";
|
---|
1173 |
|
---|
1174 | nbin = 40; min = 0.; max = 1.;
|
---|
1175 |
|
---|
1176 | c2->cd(1);
|
---|
1177 | title = "conc6 ";
|
---|
1178 | hConc6 = new TH1F("hConc6",title,nbin, min, max);
|
---|
1179 | t->Draw(var,"","goff");
|
---|
1180 | hConc6->SetNormFactor(1.);
|
---|
1181 | hConc6->Draw("Ehist");
|
---|
1182 | c2->GetPad(1)->Update();
|
---|
1183 |
|
---|
1184 | c2->cd(2);
|
---|
1185 | title = "conc6 ";
|
---|
1186 | title = title + cutDist;
|
---|
1187 | hConc6 = new TH1F("hConc6",title,nbin, min, max);
|
---|
1188 | t->Draw(var,cutDist,"goff");
|
---|
1189 | hConc6->SetNormFactor(1.);
|
---|
1190 | hConc6->Draw("Ehist");
|
---|
1191 | c2->GetPad(2)->Update();
|
---|
1192 |
|
---|
1193 | //offdata
|
---|
1194 |
|
---|
1195 | c2->cd(1);
|
---|
1196 | title = "conc6 ";
|
---|
1197 | hConc6 = new TH1F("hConc6",title,nbin, min, max);
|
---|
1198 | t2->Draw(var,"","goff");
|
---|
1199 | //hConc6->SetLineStyle(2);
|
---|
1200 | hConc6->SetMarkerStyle(20);
|
---|
1201 | hConc6->SetMarkerSize(0.4);
|
---|
1202 | hConc6->SetNormFactor(1.);
|
---|
1203 | hConc6->Draw("samePE");
|
---|
1204 | c2->GetPad(1)->Modified();
|
---|
1205 | c2->GetPad(1)->Update();
|
---|
1206 |
|
---|
1207 | c2->cd(2);
|
---|
1208 | title = "conc6 ";
|
---|
1209 | title = title + cutDist;
|
---|
1210 | hConc6 = new TH1F("hConc6",title,nbin, min, max);
|
---|
1211 | t2->Draw(var,cutDist,"goff");
|
---|
1212 | // hConc6->SetLineStyle(2);
|
---|
1213 | hConc6->SetMarkerStyle(20);
|
---|
1214 | hConc6->SetMarkerSize(0.4);
|
---|
1215 | hConc6->SetNormFactor(1.);
|
---|
1216 | hConc6->Draw("samePE");
|
---|
1217 | c2->GetPad(2)->Modified();
|
---|
1218 | c2->GetPad(2)->Update();
|
---|
1219 |
|
---|
1220 | /////////////////////////////////////////////////////////////////
|
---|
1221 | char* var="alpha>>hAlpha";
|
---|
1222 |
|
---|
1223 | nbin = 18; min = 0.; max = 90.;
|
---|
1224 |
|
---|
1225 | c2->cd(3);
|
---|
1226 | title = "alpha ";
|
---|
1227 | hAlpha = new TH1F("hAlpha",title,nbin, min, max);
|
---|
1228 | t->Draw(var, "", "goff");
|
---|
1229 | hAlpha->SetXTitle("degrees");
|
---|
1230 | hAlpha->SetNormFactor(1);
|
---|
1231 | hAlpha->Draw("Ehist");
|
---|
1232 | c2->GetPad(3)->Update();
|
---|
1233 |
|
---|
1234 | c2->cd(4);
|
---|
1235 | title = "alpha ";
|
---|
1236 | title = title + cutDist;
|
---|
1237 | hAlpha = new TH1F("hAlpha",title,nbin, min, max);
|
---|
1238 | t->Draw(var,cutDist, "goff");
|
---|
1239 | hAlpha->SetXTitle("degrees");
|
---|
1240 | hAlpha->SetNormFactor(1);
|
---|
1241 | hAlpha->Draw("Ehist");
|
---|
1242 | c2->GetPad(4)->Update();
|
---|
1243 |
|
---|
1244 | //offdata
|
---|
1245 |
|
---|
1246 | c2->cd(3);
|
---|
1247 | title = "alpha ";
|
---|
1248 | hAlpha = new TH1F("hAlpha",title,nbin, min, max);
|
---|
1249 | t2->Draw(var, "", "goff");
|
---|
1250 | hAlpha->SetXTitle("degrees");
|
---|
1251 | //hAlpha->SetLineStyle(2);
|
---|
1252 | hAlpha->SetMarkerStyle(20);
|
---|
1253 | hAlpha->SetMarkerSize(0.4);
|
---|
1254 | hAlpha->SetNormFactor(1);
|
---|
1255 | hAlpha->Draw("samePE");
|
---|
1256 | c2->GetPad(3)->Modified();
|
---|
1257 | c2->GetPad(3)->Update();
|
---|
1258 |
|
---|
1259 | c2->cd(4);
|
---|
1260 | title = "alpha ";
|
---|
1261 | title = title + cutDist;
|
---|
1262 | hAlpha = new TH1F("hAlpha",title,nbin, min, max);
|
---|
1263 | t2->Draw(var,cutDist, "goff");
|
---|
1264 | hAlpha->SetXTitle("degrees");
|
---|
1265 | //hAlpha->SetLineStyle(2);
|
---|
1266 | hAlpha->SetMarkerStyle(20);
|
---|
1267 | hAlpha->SetMarkerSize(0.4);
|
---|
1268 | hAlpha->SetNormFactor(1);
|
---|
1269 | hAlpha->Draw("samePE");
|
---|
1270 | c2->GetPad(4)->Modified();
|
---|
1271 | c2->GetPad(4)->Update();
|
---|
1272 |
|
---|
1273 |
|
---|
1274 | /////////////////////////////////////////////////////////////////
|
---|
1275 | char* var="log10(size)>>hSize";
|
---|
1276 |
|
---|
1277 | nbin = 40; min = 0.5; max = 4.5;
|
---|
1278 |
|
---|
1279 | c2->cd(5);
|
---|
1280 | c2->GetPad(5)->SetLogy();
|
---|
1281 | title = "size ";
|
---|
1282 | hSize = new TH1F("hSize",title,nbin, min, max);
|
---|
1283 | t->Draw(var, "1/MHillas.fSize", "goff");
|
---|
1284 | hSize->SetNormFactor(1.);
|
---|
1285 | hSize->SetXTitle("log10(ADC counts)");
|
---|
1286 | hSize->Draw("Ehist");
|
---|
1287 | c2->GetPad(5)->Update();
|
---|
1288 |
|
---|
1289 | c2->cd(6);
|
---|
1290 | c2->GetPad(6)->SetLogy();
|
---|
1291 | title = "size ";
|
---|
1292 | title = title + cutDist;
|
---|
1293 | hSize = new TH1F("hSize",title,nbin, min, max);
|
---|
1294 | t->Draw(var,"1/MHillas.fSize*(MHillasSrc.fDist*0.6/189.>0.2 && MHillasSrc.fDist*0.6/189<0.8)", "goff");
|
---|
1295 | hSize->SetXTitle("log10(ADC counts)");
|
---|
1296 | hSize->SetNormFactor(1.);
|
---|
1297 | hSize->Draw("Ehist");
|
---|
1298 | c2->GetPad(6)->Update();
|
---|
1299 |
|
---|
1300 | //offdata
|
---|
1301 | c2->cd(5);
|
---|
1302 | c2->GetPad(5)->SetLogy();
|
---|
1303 | title = "size ";
|
---|
1304 | hSize = new TH1F("hSize",title,nbin, min, max);
|
---|
1305 | t2->Draw(var, "1/MHillas.fSize", "goff");
|
---|
1306 | hSize->SetXTitle("log10(ADC counts)");
|
---|
1307 | hSize->SetNormFactor(1.);
|
---|
1308 | hSize->SetMarkerStyle(20);
|
---|
1309 | hSize->SetMarkerSize(0.4);
|
---|
1310 | //hSize->SetLineStyle(2);
|
---|
1311 | hSize->Draw("samePE");
|
---|
1312 | c2->GetPad(5)->Modified();
|
---|
1313 | c2->GetPad(5)->Update();
|
---|
1314 |
|
---|
1315 | c2->cd(6);
|
---|
1316 | c2->GetPad(6)->SetLogy();
|
---|
1317 | title = "size ";
|
---|
1318 | title = title + cutDist;
|
---|
1319 | hSize = new TH1F("hSize",title,nbin, min, max);
|
---|
1320 | t2->Draw(var,"1/MHillas.fSize*(MHillasSrc.fDist*0.6/189.>0.2 && MHillasSrc.fDist*0.6/189<0.8)", "goff");
|
---|
1321 | hSize->SetXTitle("log10(ADC counts)");
|
---|
1322 | //hSize->SetLineStyle(2);
|
---|
1323 | hSize->SetNormFactor(1.);
|
---|
1324 | hSize->SetMarkerStyle(20);
|
---|
1325 | hSize->SetMarkerSize(0.4);
|
---|
1326 | hSize->Draw("samePE");
|
---|
1327 | c2->GetPad(6)->Modified();
|
---|
1328 | c2->GetPad(6)->Update();
|
---|
1329 |
|
---|
1330 | c2->Print(closepsname);
|
---|
1331 |
|
---|
1332 | }
|
---|
1333 |
|
---|
1334 |
|
---|
1335 |
|
---|