source: trunk/MagicSoft/Mars/mtemp/mifae/macros/hillasONOFF.C@ 5138

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