5 int pz[10] = {1,2,4,8,12,16,32,40,50,90};
14 sprintf(infile,
"an1out.root");
16 sprintf(hname,
"Ean1d");
17 TH1F *
h1 =
new TH1F(hname,
"Ean1d", 100, 0, 1);
18 TFile *
f = TFile::Open(infile);
20 TNtuple *nt = (TNtuple *)f->Get(
"ed");
21 nt->Project(hname,
"(EA+ES)/(EA+ES+HOA+HOS+HIA+HIS+BH+MAG)");
24 TFile *
fout = TFile::Open(
"anpercent.root",
"UPDATE");
27 cout << h1->Integral() <<
" " << hname << endl;
31 sprintf(infile,
"an2out.root");
33 sprintf(hname,
"Ean2d");
34 TH1F *h1 =
new TH1F(hname,
"Ean2d", 100, 0, 1);
35 TFile *f = TFile::Open(infile);
37 TNtuple *nt = (TNtuple *)f->Get(
"ed");
38 nt->Project(hname,
"(EA+ES)/(EA+ES+HOA+HOS+HIA+HIS+BH+MAG)");
41 TFile *fout = TFile::Open(
"anpercent.root",
"UPDATE");
44 cout << h1->Integral() <<
" " << hname << endl;
48 sprintf(infile,
"an4out.root");
50 sprintf(hname,
"Ean4d");
51 TH1F *h1 =
new TH1F(hname,
"Ean4d", 100, 0, 1);
52 TFile *f = TFile::Open(infile);
54 TNtuple *nt = (TNtuple *)f->Get(
"ed");
55 nt->Project(hname,
"(EA+ES)/(EA+ES+HOA+HOS+HIA+HIS+BH+MAG");
58 TFile *fout = TFile::Open(
"anpercent.root",
"UPDATE");
61 cout << h1->Integral() <<
" " << hname << endl;
65 sprintf(infile,
"an8out.root");
67 sprintf(hname,
"Ean8d");
68 TH1F *h1 =
new TH1F(hname,
"Ean8d", 100, 0, 1);
69 TFile *f = TFile::Open(infile);
71 TNtuple *nt = (TNtuple *)f->Get(
"ed");
72 nt->Project(hname,
"(EA+ES)/(EA+ES+HOA+HOS+HIA+HIS+BH+MAG)");
75 TFile *fout = TFile::Open(
"anpercent.root",
"UPDATE");
78 cout << h1->Integral() <<
" " << hname << endl;
82 sprintf(infile,
"an12out.root");
84 sprintf(hname,
"Ean12d");
85 TH1F *h1 =
new TH1F(hname,
"Ean12d", 100, 0, 1);
86 TFile *f = TFile::Open(infile);
88 TNtuple *nt = (TNtuple *)f->Get(
"ed");
89 nt->Project(hname,
"(EA+ES)/(EA+ES+HOA+HOS+HIA+HIS+BH+MAG)");
92 TFile *fout = TFile::Open(
"anpercent.root",
"UPDATE");
95 cout << h1->Integral() <<
" " << hname << endl;
99 sprintf(infile,
"an16out.root");
101 sprintf(hname,
"Ean16d");
102 TH1F *h1 =
new TH1F(hname,
"Ean16d", 100, 0, 1);
103 TFile *f = TFile::Open(infile);
105 TNtuple *nt = (TNtuple *)f->Get(
"ed");
106 nt->Project(hname,
"(EA+ES)/(EA+ES+HOA+HOS+HIA+HIS+BH+MAG)");
109 TFile *fout = TFile::Open(
"anpercent.root",
"UPDATE");
112 cout << h1->Integral() <<
" " << hname << endl;
116 sprintf(infile,
"an32out.root");
118 sprintf(hname,
"Ean32d");
119 TH1F *h1 =
new TH1F(hname,
"Ean32d", 100, 0, 1);
120 TFile *f = TFile::Open(infile);
122 TNtuple *nt = (TNtuple *)f->Get(
"ed");
123 nt->Project(hname,
"(EA+ES)/(EA+ES+HOA+HOS+HIA+HIS+BH+MAG)");
126 TFile *fout = TFile::Open(
"anpercent.root",
"UPDATE");
129 cout << h1->Integral() <<
" " << hname << endl;
133 sprintf(infile,
"an40out.root");
135 sprintf(hname,
"Ean40d");
136 TH1F *h1 =
new TH1F(hname,
"Ean40d", 100, 0, 1);
137 TFile *f = TFile::Open(infile);
139 TNtuple *nt = (TNtuple *)f->Get(
"ed");
140 nt->Project(hname,
"(EA+ES)/(EA+ES+HOA+HOS+HIA+HIS+BH+MAG)");
143 TFile *fout = TFile::Open(
"anpercent.root",
"UPDATE");
146 cout << h1->Integral() <<
" " << hname << endl;
150 sprintf(infile,
"an0out.root");
152 sprintf(hname,
"an50d");
153 TH1F *h1 =
new TH1F(hname,
"an50d", 100, 0, 1);
154 TFile *f = TFile::Open(infile);
156 TNtuple *nt = (TNtuple *)f->Get(
"ed");
157 nt->Project(hname,
"(EA+ES)/(EA+ES+HOA+HOS+HIA+HIS+BH+MAG)");
160 TFile *fout = TFile::Open(
"anpercent.root",
"UPDATE");
163 cout << h1->Integral() <<
" " << hname << endl;
202 TFile *fin = TFile::Open(
"anpercent.root");
204 TH2 *
h2 =
new TH2F(
"htot",
"EMCAL",1,0,50,1,0,1);
205 gStyle->SetOptStat(0);
206 TMarker *spf =
new TMarker();
207 spf->SetMarkerStyle(20);
208 spf->SetMarkerColor(4);
209 TCanvas *c1 =
new TCanvas();
213 sprintf(hname,
"an1d");
214 TH1 *
h1 = (TH1F *) fin->Get(hname);
215 spf->DrawMarker(1, h1->GetMean(1));
218 sprintf(hname,
"an2d");
219 TH1 *h1 = (TH1F *) fin->Get(hname);
220 spf->DrawMarker(2, h1->GetMean(1));
223 sprintf(hname,
"an4d");
224 TH1 *h1 = (TH1F *) fin->Get(hname);
226 spf->DrawMarker(4, h1->GetMean(1));
229 sprintf(hname,
"an8d");
230 TH1 *h1 = (TH1F *) fin->Get(hname);
232 spf->DrawMarker(8, h1->GetMean(1));
235 sprintf(hname,
"an12d");
236 TH1 *h1 = (TH1F *) fin->Get(hname);
238 spf->DrawMarker(12, h1->GetMean(1));
241 sprintf(hname,
"an16d");
242 TH1 *h1 = (TH1F *) fin->Get(hname);
244 spf->DrawMarker(16, h1->GetMean(1));
247 sprintf(hname,
"an32d");
248 TH1 *h1 = (TH1F *) fin->Get(hname);
250 spf->DrawMarker(32, h1->GetMean(1));
253 sprintf(hname,
"an40d");
254 TH1 *h1 = (TH1F *) fin->Get(hname);
256 spf->DrawMarker(40, h1->GetMean(1));
259 sprintf(hname,
"an50d");
260 TH1 *h1 = (TH1F *) fin->Get(hname);
262 spf->DrawMarker(50, h1->GetMean(1));
331 int pz[10] = {1,2,4,8,12,16,32,40,50,90};
340 sprintf(infile,
"an1out.root");
342 sprintf(hname,
"HIan1d");
343 TH1F *
h1 =
new TH1F(hname,
"HIan1d", 100, 0, 1);
344 TFile *
f = TFile::Open(infile);
346 TNtuple *nt = (TNtuple *)f->Get(
"ed");
347 nt->Project(hname,
"(HIA+HIS)/(EA+ES+HIA+HIS+HOA+HOS+BH+MAG)");
350 TFile *
fout = TFile::Open(
"anpercent.root",
"UPDATE");
353 cout << h1->Integral() <<
" " << hname << endl;
357 sprintf(infile,
"an2out.root");
359 sprintf(hname,
"HIan2d");
360 TH1F *h1 =
new TH1F(hname,
"HIan2d", 100, 0, 1);
361 TFile *f = TFile::Open(infile);
363 TNtuple *nt = (TNtuple *)f->Get(
"ed");
364 nt->Project(hname,
"(HIA+HIS)/(EA+ES+HIA+HIS+HOA+HOS+BH+MAG)");
367 TFile *fout = TFile::Open(
"anpercent.root",
"UPDATE");
370 cout << h1->Integral() <<
" " << hname << endl;
374 sprintf(infile,
"an4out.root");
376 sprintf(hname,
"HIan4d");
377 TH1F *h1 =
new TH1F(hname,
"HIan4d", 100, 0, 1);
378 TFile *f = TFile::Open(infile);
380 TNtuple *nt = (TNtuple *)f->Get(
"ed");
381 nt->Project(hname,
"(HIA+HIS)/(EA+ES+HIA+HIS+HOA+HOS+BH+MAG)");
384 TFile *fout = TFile::Open(
"anpercent.root",
"UPDATE");
387 cout << h1->Integral() <<
" " << hname << endl;
391 sprintf(infile,
"an8out.root");
393 sprintf(hname,
"HIan8d");
394 TH1F *h1 =
new TH1F(hname,
"HIan8d", 100, 0, 1);
395 TFile *f = TFile::Open(infile);
397 TNtuple *nt = (TNtuple *)f->Get(
"ed");
398 nt->Project(hname,
"(HIA+HIS)/(EA+ES+HIA+HIS+HOA+HOS+BH+MAG)");
401 TFile *fout = TFile::Open(
"anpercent.root",
"UPDATE");
404 cout << h1->Integral() <<
" " << hname << endl;
408 sprintf(infile,
"an12out.root");
410 sprintf(hname,
"HIan12d");
411 TH1F *h1 =
new TH1F(hname,
"HIan12d", 100, 0, 1);
412 TFile *f = TFile::Open(infile);
414 TNtuple *nt = (TNtuple *)f->Get(
"ed");
415 nt->Project(hname,
"(HIA+HIS)/(EA+ES+HIA+HIS+HOA+HOS+BH+MAG)");
418 TFile *fout = TFile::Open(
"anpercent.root",
"UPDATE");
421 cout << h1->Integral() <<
" " << hname << endl;
425 sprintf(infile,
"an16out.root");
427 sprintf(hname,
"HIan16d");
428 TH1F *h1 =
new TH1F(hname,
"HIan16d", 100, 0, 1);
429 TFile *f = TFile::Open(infile);
431 TNtuple *nt = (TNtuple *)f->Get(
"ed");
432 nt->Project(hname,
"(HIA+HIS)/(EA+ES+HIA+HIS+HOA+HOS+BH+MAG)");
435 TFile *fout = TFile::Open(
"anpercent.root",
"UPDATE");
438 cout << h1->Integral() <<
" " << hname << endl;
442 sprintf(infile,
"an32out.root");
444 sprintf(hname,
"HIan32d");
445 TH1F *h1 =
new TH1F(hname,
"HIan32d", 100, 0, 1);
446 TFile *f = TFile::Open(infile);
448 TNtuple *nt = (TNtuple *)f->Get(
"ed");
449 nt->Project(hname,
"(HIA+HIS)/(EA+ES+HIA+HIS+HOA+HOS+BH+MAG)");
452 TFile *fout = TFile::Open(
"anpercent.root",
"UPDATE");
455 cout << h1->Integral() <<
" " << hname << endl;
459 sprintf(infile,
"an40out.root");
461 sprintf(hname,
"HIan40d");
462 TH1F *h1 =
new TH1F(hname,
"HIan40d", 100, 0, 1);
463 TFile *f = TFile::Open(infile);
465 TNtuple *nt = (TNtuple *)f->Get(
"ed");
466 nt->Project(hname,
"(HIA+HIS)/(EA+ES+HIA+HIS+HOA+HOS+BH+MAG)");
469 TFile *fout = TFile::Open(
"anpercent.root",
"UPDATE");
472 cout << h1->Integral() <<
" " << hname << endl;
476 sprintf(infile,
"an50out.root");
478 sprintf(hname,
"HIan50d");
479 TH1F *h1 =
new TH1F(hname,
"HIan50d", 100, 0, 1);
480 TFile *f = TFile::Open(infile);
482 TNtuple *nt = (TNtuple *)f->Get(
"ed");
483 nt->Project(hname,
"(HIA+HIS)/(EA+ES+HIA+HIS+HOA+HOS+BH+MAG)");
486 TFile *fout = TFile::Open(
"anpercent.root",
"UPDATE");
489 cout << h1->Integral() <<
" " << hname << endl;
528 TFile *fin = TFile::Open(
"anpercent.root");
530 TH2 *
h2 =
new TH2F(
"htot",
"Inner_HCAL",1,0,50,1,0,.1);
531 gStyle->SetOptStat(0);
532 TMarker *spf =
new TMarker();
533 spf->SetMarkerStyle(20);
534 spf->SetMarkerColor(8);
535 TLine *rlin =
new TLine();
536 rlin->SetLineColor(8);
537 rlin->SetLineStyle(1);
538 rlin->SetLineWidth(1);
539 TCanvas *
c2 =
new TCanvas();
543 sprintf(hname,
"HIan1d");
544 TH1 *
h1 = (TH1F *) fin->Get(hname);
545 spf->DrawMarker(1, h1->GetMean(1));
546 rlin->DrawLine(1,(h1->GetMean(1)-h1->GetRMS(1)),1,(h1->GetMean(1) + h1->GetRMS(1)));
548 sprintf(hname,
"HIan2d");
549 TH1 *h1 = (TH1F *) fin->Get(hname);
550 spf->DrawMarker(2, h1->GetMean(1));
551 rlin->DrawLine(2,(h1->GetMean(1)-h1->GetRMS(1)),2,(h1->GetMean(1) + h1->GetRMS(1)));
553 sprintf(hname,
"HIan4d");
554 TH1 *h1 = (TH1F *) fin->Get(hname);
556 spf->DrawMarker(4, h1->GetMean(1));
557 rlin->DrawLine(4,(h1->GetMean(1)-h1->GetRMS(1)),4,(h1->GetMean(1) + h1->GetRMS(1)));
559 sprintf(hname,
"HIan8d");
560 TH1 *h1 = (TH1F *) fin->Get(hname);
562 spf->DrawMarker(8, h1->GetMean(1));
563 rlin->DrawLine(8,(h1->GetMean(1)-h1->GetRMS(1)),8,(h1->GetMean(1) + h1->GetRMS(1)));
565 sprintf(hname,
"HIan12d");
566 TH1 *h1 = (TH1F *) fin->Get(hname);
568 spf->DrawMarker(12, h1->GetMean(1));
569 rlin->DrawLine(12,(h1->GetMean(1)-h1->GetRMS(1)),12,(h1->GetMean(1) + h1->GetRMS(1)));
571 sprintf(hname,
"HIan16d");
572 TH1 *h1 = (TH1F *) fin->Get(hname);
574 spf->DrawMarker(16, h1->GetMean(1));
575 rlin->DrawLine(16,(h1->GetMean(1)-h1->GetRMS(1)),16,(h1->GetMean(1) + h1->GetRMS(1)));
578 sprintf(hname,
"HIan32d");
579 TH1 *h1 = (TH1F *) fin->Get(hname);
581 spf->DrawMarker(32, h1->GetMean(1));
582 rlin->DrawLine(32,(h1->GetMean(1)-h1->GetRMS(1)),32,(h1->GetMean(1) + h1->GetRMS(1)));
584 sprintf(hname,
"HIan40d");
585 TH1 *h1 = (TH1F *) fin->Get(hname);
587 spf->DrawMarker(40, h1->GetMean(1));
588 rlin->DrawLine(40,(h1->GetMean(1)-h1->GetRMS(1)),40,(h1->GetMean(1) + h1->GetRMS(1)));
591 sprintf(hname,
"HIan50d");
592 TH1 *h1 = (TH1F *) fin->Get(hname);
594 spf->DrawMarker(50, h1->GetMean(1));
595 rlin->DrawLine(50,(h1->GetMean(1)-h1->GetRMS(1)),50,(h1->GetMean(1) + h1->GetRMS(1)));
664 int pz[10] = {1,2,4,8,12,16,32,40,50,90};
673 sprintf(infile,
"an1out.root");
675 sprintf(hname,
"HOan1d");
676 TH1F *
h1 =
new TH1F(hname,
"HOan1d", 100, 0, 1);
677 TFile *
f = TFile::Open(infile);
679 TNtuple *nt = (TNtuple *)f->Get(
"ed");
680 nt->Project(hname,
"(HOA+HOS)/(EA+ES+HIA+HIS+HOA+HOS+BH+MAG)");
683 TFile *
fout = TFile::Open(
"anpercent.root",
"UPDATE");
686 cout << h1->Integral() <<
" " << hname << endl;
690 sprintf(infile,
"an2out.root");
692 sprintf(hname,
"HOan2d");
693 TH1F *h1 =
new TH1F(hname,
"HOan2d", 100, 0, 1);
694 TFile *f = TFile::Open(infile);
696 TNtuple *nt = (TNtuple *)f->Get(
"ed");
697 nt->Project(hname,
"(HOA+HOS)/(EA+ES+HIA+HIS+HOA+HOS+BH+MAG)");
700 TFile *fout = TFile::Open(
"anpercent.root",
"UPDATE");
703 cout << h1->Integral() <<
" " << hname << endl;
707 sprintf(infile,
"an4out.root");
709 sprintf(hname,
"HOan4d");
710 TH1F *h1 =
new TH1F(hname,
"HOan4d", 100, 0, 1);
711 TFile *f = TFile::Open(infile);
713 TNtuple *nt = (TNtuple *)f->Get(
"ed");
714 nt->Project(hname,
"(HOA+HOS)/(EA+ES+HIA+HIS+HOA+HOS+BH+MAG)");
717 TFile *fout = TFile::Open(
"anpercent.root",
"UPDATE");
720 cout << h1->Integral() <<
" " << hname << endl;
724 sprintf(infile,
"an8out.root");
726 sprintf(hname,
"HOan8d");
727 TH1F *h1 =
new TH1F(hname,
"HOan8d", 100, 0, 1);
728 TFile *f = TFile::Open(infile);
730 TNtuple *nt = (TNtuple *)f->Get(
"ed");
731 nt->Project(hname,
"(HOA+HOS)/(EA+ES+HIA+HIS+HOA+HOS+BH+MAG)");
734 TFile *fout = TFile::Open(
"anpercent.root",
"UPDATE");
737 cout << h1->Integral() <<
" " << hname << endl;
741 sprintf(infile,
"an12out.root");
743 sprintf(hname,
"HOan12d");
744 TH1F *h1 =
new TH1F(hname,
"HOan12d", 100, 0, 1);
745 TFile *f = TFile::Open(infile);
747 TNtuple *nt = (TNtuple *)f->Get(
"ed");
748 nt->Project(hname,
"(HOA+HOS)/(EA+ES+HIA+HIS+HOA+HOS+BH+MAG)");
751 TFile *fout = TFile::Open(
"anpercent.root",
"UPDATE");
754 cout << h1->Integral() <<
" " << hname << endl;
758 sprintf(infile,
"an16out.root");
760 sprintf(hname,
"HOan16d");
761 TH1F *h1 =
new TH1F(hname,
"HOan16d", 100, 0, 1);
762 TFile *f = TFile::Open(infile);
764 TNtuple *nt = (TNtuple *)f->Get(
"ed");
765 nt->Project(hname,
"(HOA+HOS)/(EA+ES+HIA+HIS+HOA+HOS+BH+MAG)");
768 TFile *fout = TFile::Open(
"anpercent.root",
"UPDATE");
771 cout << h1->Integral() <<
" " << hname << endl;
775 sprintf(infile,
"an32out.root");
777 sprintf(hname,
"HOan32d");
778 TH1F *h1 =
new TH1F(hname,
"HOan32d", 100, 0, 1);
779 TFile *f = TFile::Open(infile);
781 TNtuple *nt = (TNtuple *)f->Get(
"ed");
782 nt->Project(hname,
"(HOA+HOS)/(EA+ES+HIA+HIS+HOA+HOS+BH+MAG)");
785 TFile *fout = TFile::Open(
"anpercent.root",
"UPDATE");
788 cout << h1->Integral() <<
" " << hname << endl;
792 sprintf(infile,
"an40out.root");
794 sprintf(hname,
"HOan40d");
795 TH1F *h1 =
new TH1F(hname,
"HOan40d", 100, 0, 1);
796 TFile *f = TFile::Open(infile);
798 TNtuple *nt = (TNtuple *)f->Get(
"ed");
799 nt->Project(hname,
"(HOA+HOS)/(EA+ES+HIA+HIS+HOA+HOS+BH+MAG)");
802 TFile *fout = TFile::Open(
"anpercent.root",
"UPDATE");
805 cout << h1->Integral() <<
" " << hname << endl;
809 sprintf(infile,
"an50out.root");
811 sprintf(hname,
"HOan50d");
812 TH1F *h1 =
new TH1F(hname,
"HOan50d", 100, 0, 1);
813 TFile *f = TFile::Open(infile);
815 TNtuple *nt = (TNtuple *)f->Get(
"ed");
816 nt->Project(hname,
"(HOA+HOS)/(EA+ES+HIA+HIS+HOA+HOS+BH+MAG)");
819 TFile *fout = TFile::Open(
"anpercent.root",
"UPDATE");
822 cout << h1->Integral() <<
" " << hname << endl;
857 TFile *fin = TFile::Open(
"anpercent.root");
859 TH2 *
h2 =
new TH2F(
"htot",
"Outer_HCAL",1,0,50,1,0,.1);
860 gStyle->SetOptStat(0);
861 TMarker *spf =
new TMarker();
862 spf->SetMarkerStyle(20);
863 spf->SetMarkerColor(11);
864 TLine *rlin =
new TLine();
865 rlin->SetLineColor(3);
866 rlin->SetLineStyle(1);
867 rlin->SetLineWidth(1);
868 TCanvas *c3 =
new TCanvas();
872 sprintf(hname,
"HOan1d");
873 TH1 *
h1 = (TH1F *) fin->Get(hname);
874 spf->DrawMarker(1, h1->GetMean(1));
875 rlin->DrawLine(1,(h1->GetMean(1)-h1->GetRMS(1)),1,(h1->GetMean(1) + h1->GetRMS(1)));
876 double hom1 = h1->GetMean(1);
877 double hor1 = h1->GetRMS(1);
880 sprintf(hname,
"HOan2d");
881 TH1 *h1 = (TH1F *) fin->Get(hname);
882 spf->DrawMarker(2, h1->GetMean(1));
883 rlin->DrawLine(2,(h1->GetMean(1)-h1->GetRMS(1)),2,(h1->GetMean(1) + h1->GetRMS(1)));
884 double hom2 = h1->GetMean(1);
885 double hor2 = h1->GetRMS(1);
888 sprintf(hname,
"HOan4d");
889 TH1 *h1 = (TH1F *) fin->Get(hname);
891 spf->DrawMarker(4, h1->GetMean(1));
892 rlin->DrawLine(4,(h1->GetMean(1)-h1->GetRMS(1)),4,(h1->GetMean(1) + h1->GetRMS(1)));
893 double hom4 = h1->GetMean(1);
894 double hor4 = h1->GetRMS(1);
898 sprintf(hname,
"HOan8d");
899 TH1 *h1 = (TH1F *) fin->Get(hname);
901 spf->DrawMarker(8, h1->GetMean(1));
902 rlin->DrawLine(8,(h1->GetMean(1)-h1->GetRMS(1)),8,(h1->GetMean(1) + h1->GetRMS(1)));
903 double hom8 = h1->GetMean(1);
904 double hor8 = h1->GetRMS(1);
908 sprintf(hname,
"HOan12d");
909 TH1 *h1 = (TH1F *) fin->Get(hname);
911 spf->DrawMarker(12, h1->GetMean(1));
912 rlin->DrawLine(12,(h1->GetMean(1)-h1->GetRMS(1)),12,(h1->GetMean(1) + h1->GetRMS(1)));
913 double hom12 = h1->GetMean(1);
914 double hor12 = h1->GetRMS(1);
918 sprintf(hname,
"HOan16d");
919 TH1 *h1 = (TH1F *) fin->Get(hname);
921 spf->DrawMarker(16, h1->GetMean(1));
922 rlin->DrawLine(16,(h1->GetMean(1)-h1->GetRMS(1)),16,(h1->GetMean(1) + h1->GetRMS(1)));
923 double hom16 = h1->GetMean(1);
924 double hor16 = h1->GetRMS(1);
928 sprintf(hname,
"HOe32d");
929 TH1 *h1 = (TH1F *) fin->Get(hname);
931 spf->DrawMarker(32, h1->GetMean(1));
932 rlin->DrawLine(32,(h1->GetMean(1)-h1->GetRMS(1)),32,(h1->GetMean(1) + h1->GetRMS(1)));
933 double hom32 = h1->GetMean(1);
934 double hor32 = h1->GetRMS(1);
938 sprintf(hname,
"HOan40d");
939 TH1 *h1 = (TH1F *) fin->Get(hname);
941 spf->DrawMarker(40, h1->GetMean(1));
942 rlin->DrawLine(40,(h1->GetMean(1)-h1->GetRMS(1)),40,(h1->GetMean(1) + h1->GetRMS(1)));
943 double hom40 = h1->GetMean(1);
944 double hor40 = h1->GetRMS(1);
948 sprintf(hname,
"an50d");
949 TH1 *h1 = (TH1F *) fin->Get(hname);
951 spf->DrawMarker(50, h1->GetMean(1));
952 rlin->DrawLine(50,(h1->GetMean(1)-h1->GetRMS(1)),50,(h1->GetMean(1) + h1->GetRMS(1)));
953 double hom50 = h1->GetMean(1);
954 double hor50 = h1->GetRMS(1);
957 double x[9] = {1,2,4,8,12,16,32,40,50};
958 double y[9] = {hom1,hom2,hom4,hom8,hom12,hom16,hom32,hom40,hom50};
960 double yer[9] = {hor1,hor2,hor4,hor8,hor12,hor16,hor32,hor40,hor50};
961 gr =
new TGraphErrors(9,x,y,xer,yer);
963 gr->SetMarkerStyle(20);
964 gr->SetMarkerColor(2);
1041 int pz[9] = {1,2,4,8,12,16,32,40,50};
1044 double xer[9] = {0};
1047 TFile *fin = TFile::Open(
"anpercent.root");
1049 for (
int i=0;
i<9;
i++)
1052 sprintf(hname,
"%s%dd",calo,pz[
i]);
1053 TH1 *
h1 = (TH1F *) fin->Get(hname);
1054 y[
i] = h1->GetMean(1);
1055 yer[
i] = h1->GetRMS(1);
1057 gr =
new TGraphErrors(9,x,y,xer,yer);
1059 gr->SetMarkerStyle(20);
1060 gr->SetMarkerColor(2);