13 #include <TPaveText.h>
14 #include <TPostScript.h>
29 printf(
"reco: gROOT Reset \n");
31 gROOT->SetStyle(
"Plain");
32 gStyle->SetOptStat(0);
52 gStyle->SetStatX(0.91);
53 gStyle->SetStatY(0.75);
54 gStyle->SetStatW(0.20);
55 gStyle->SetStatH(0.10);
61 Float_t LeftOffset = 0.12;
62 Float_t TopOffset = 0.22;
64 gStyle->SetLineWidth(1);
68 gStyle->SetOptTitle(0);
70 gStyle->SetTitleColor(1);
72 gStyle->SetTitleX(0.15);
73 gStyle->SetTitleH(0.15);
75 gStyle->SetTitleW(0.60);
76 gStyle->SetTitleFont(42);
77 gStyle->SetTitleFontSize(0.07);
79 gStyle->SetPalette(1);
92 gStyle->SetPadTopMargin(TopOffset);
93 gStyle->SetPadBottomMargin(LeftOffset);
94 gStyle->SetPadRightMargin(TopOffset);
95 gStyle->SetPadLeftMargin(LeftOffset);
129 TFile* hfile1 =
new TFile(
"Global_RBX_325001.root",
"READ");
140 TPostScript psfile(
"zlsgainstabilityCMT.ps", 111);
142 TCanvas*
c1 =
new TCanvas(
"c1",
"Hcal4test", 200, 10, 700, 900);
152 TH1F* Rate1 = (TH1F*)hfile1->Get(
"h_nevents_per_eachRealLS");
159 int nx = Rate1->GetXaxis()->GetNbins();
160 for (
int i = 1;
i <= nx;
i++) {
161 double ccc1 = Rate1->GetBinContent(
i);
169 cout <<
"111 maxbins= " << maxbins << endl;
171 TH1F* ADCAmplperLS =
new TH1F(
"ADCAmplperLS",
"", maxbins, 1., maxbins + 1.);
173 nx = Rate1->GetXaxis()->GetNbins();
174 for (
int i = 1;
i <= maxbins;
i++) {
175 double ccc1 = Rate1->GetBinContent(
i);
179 ADCAmplperLS->Fill(
float(
i), ccc1);
182 ADCAmplperLS->SetMarkerStyle(20);
183 ADCAmplperLS->SetMarkerSize(0.4);
184 ADCAmplperLS->GetYaxis()->SetLabelSize(0.04);
185 ADCAmplperLS->SetXTitle(
"nevents_per_eachRealLS \b");
186 ADCAmplperLS->SetMarkerColor(2);
187 ADCAmplperLS->SetLineColor(0);
190 ADCAmplperLS->Draw(
"Error");
194 TH1F* Rate2 = (TH1F*)hfile1->Get(
"h_sumADCAmplEtaPhiLs_lscounterM1");
199 TH1F* Rate2redone =
new TH1F(
"Rate2redone",
"", maxbins, 1., maxbins + 1.);
201 for (
int i = 1;
i <= maxbins;
i++) {
202 double ccc1 = Rate2->GetBinContent(
i);
205 Rate2redone->Fill(
float(
i), ccc1);
208 Rate2redone->SetMarkerStyle(20);
209 Rate2redone->SetMarkerSize(0.4);
210 Rate2redone->GetYaxis()->SetLabelSize(0.04);
211 Rate2redone->SetXTitle(
"sumADCAmplEtaPhiLsS \b");
212 Rate2redone->SetMarkerColor(2);
213 Rate2redone->SetLineColor(0);
215 Rate2redone->Draw(
"Error");
228 TH1F* Rate3 = (TH1F*)hfile1->Get(
"h_sumADCAmplEtaPhiLs_bbbc");
232 Rate3->SetXTitle(
"bbbc sumADCAmplEtaPhiLs \b");
236 TH1F* Rate4 = (TH1F*)hfile1->Get(
"h_sumADCAmplEtaPhiLs_bbb1");
240 Rate4->SetXTitle(
"bbb1 sumADCAmplEtaPhiLs \b");
244 TH1F* Rate5 = (TH1F*)hfile1->Get(
"h_sumADCAmplEtaPhiLs");
248 Rate5->SetXTitle(
"bbb3 sumADCAmplEtaPhiLs \b");
252 TH1F* Rate6 = (TH1F*)hfile1->Get(
"h_sumADCAmplEtaPhiLs_ietaphi");
256 Rate6->SetXTitle(
"ietaphi sumADCAmplEtaPhiLs \b");
270 TH2F* Cefz2 = (TH2F*)hfile1->Get(
"h_2DsumADCAmplEtaPhiLs0");
276 Cefz2->SetMarkerStyle(20);
277 Cefz2->SetMarkerSize(0.4);
279 Cefz2->GetZaxis()->SetLabelSize(0.08);
280 Cefz2->SetXTitle(
"nv0-overAllLSs test with HB1 #eta \b");
281 Cefz2->SetYTitle(
"#phi \b");
283 Cefz2->SetMarkerColor(2);
284 Cefz2->SetLineColor(2);
303 nx = Cefz2->GetXaxis()->GetNbins();
305 int ny = Cefz2->GetYaxis()->GetNbins();
306 cout <<
"444 HB1 nx= " << nx <<
" ny= " << ny << endl;
309 TH2F* ADCAmplLSHB1 =
new TH2F(
"ADCAmplLSHB1",
"", 610, 0., 610., 160, 120., 280.);
310 for (
int i = 1;
i <= nx;
i++) {
311 for (
int j = 1;
j <= ny;
j++) {
312 double ccc1 = Cefz2->GetBinContent(
i,
j);
314 if (
j > 130 &&
j < 270) {
323 ADCAmplLSHB1->Fill(
float(
i),
float(
j), ccc1);
327 ADCAmplLSHB1->SetMarkerStyle(20);
328 ADCAmplLSHB1->SetMarkerSize(0.4);
329 ADCAmplLSHB1->GetYaxis()->SetLabelSize(0.04);
330 ADCAmplLSHB1->SetXTitle(
"nev0-overAllLSs test with ADCAmplLSHB1 \b");
331 ADCAmplLSHB1->SetMarkerColor(2);
332 ADCAmplLSHB1->SetLineColor(0);
336 ADCAmplLSHB1->Draw(
"COLZ");
339 cout <<
"444 HB1 for h_2D0sumADCAmplLS1 maxbinx = " << maxbinx <<
" maxbiny= " << maxbiny << endl;
351 TH1F* ATIT1 = (TH1F*)hfile1->Get(
"h_bcnvsamplitude_HB");
352 TH1F* ATIT2 = (TH1F*)hfile1->Get(
"h_bcnvsamplitude0_HB");
355 nx = ATIT2->GetXaxis()->GetNbins();
356 for (
int i = 0;
i <= nx;
i++) {
358 double ccc1 = ATIT2->GetBinContent(
i);
364 if (
i >= 3440 &&
i <= 3570)
365 cout <<
"Page5: i = = " <<
i - 1 <<
" Ni= " << ccc1 << endl;
368 cout <<
"Page5: minbx= " << minbx - 1 <<
" maxbx= " << maxbx - 1 << endl;
371 TH1F* ITIT1 =
new TH1F(
"ITIT1",
"", maxbx - minbx + 1,
float(minbx), maxbx + 1.);
372 for (
int i = 1;
i <= nx;
i++) {
373 double ccc1 = ATIT1->GetBinContent(
i);
376 ITIT1->Fill(
float(
i), ccc1);
381 ITIT1->SetXTitle(
"bcnvsamplitude_HB \b");
382 ITIT1->SetMarkerStyle(20);
383 ITIT1->SetMarkerSize(0.4);
384 ITIT1->GetYaxis()->SetLabelSize(0.04);
385 ITIT1->SetMarkerColor(2);
386 ITIT1->SetLineColor(0);
387 ITIT1->Draw(
"Error");
390 TH1F* ITIT2 =
new TH1F(
"ITIT2",
"", maxbx - minbx + 1,
float(minbx), maxbx + 1.);
391 for (
int i = 1;
i <= nx;
i++) {
392 double ccc1 = ATIT2->GetBinContent(
i);
395 ITIT2->Fill(
float(
i), ccc1);
400 ITIT2->SetXTitle(
"bcnvsamplitude0 HBs \b");
401 ITIT2->SetMarkerStyle(20);
402 ITIT2->SetMarkerSize(0.4);
403 ITIT2->GetYaxis()->SetLabelSize(0.04);
404 ITIT2->SetMarkerColor(2);
405 ITIT2->SetLineColor(0);
406 ITIT2->Draw(
"Error");
420 TH1F* twrd3 = (TH1F*)hfile1->Get(
"h_bcnvsamplitude_HB");
421 TH1F* twrd2 = (TH1F*)hfile1->Get(
"h_bcnvsamplitude0_HB");
425 TH1F* Rase1 = (TH1F*)twrd3->Clone(
"Rase1");
426 Rase1->Divide(twrd3, twrd2, 1, 1,
"B");
428 TH1F* Rase1NNN =
new TH1F(
"Rase1NNN",
"", maxbx - minbx + 1,
float(minbx), maxbx + 1.);
429 nx = Rase1->GetXaxis()->GetNbins();
430 for (
int i = 1;
i <= nx;
i++) {
431 double ccc1 = Rase1->GetBinContent(
i);
434 Rase1NNN->Fill(
float(
i), ccc1);
437 Rase1NNN->SetMarkerStyle(20);
438 Rase1NNN->SetMarkerSize(0.4);
439 Rase1NNN->GetYaxis()->SetLabelSize(0.04);
440 Rase1NNN->SetXTitle(
"<ADCAmpl> per bx HB \b");
441 Rase1NNN->SetMarkerColor(2);
442 Rase1NNN->SetLineColor(0);
443 Rase1NNN->Draw(
"Error");
446 TH1F* twed3 = (TH1F*)hfile1->Get(
"h_bcnvsamplitude_HE");
447 TH1F* twed2 = (TH1F*)hfile1->Get(
"h_bcnvsamplitude0_HE");
451 TH1F* Rase2 = (TH1F*)twed3->Clone(
"Rase2");
452 Rase2->Divide(twed3, twed2, 1, 1,
"B");
454 TH1F* Rase2NNN =
new TH1F(
"Rase2NNN",
"", maxbx - minbx + 1,
float(minbx), maxbx + 1.);
455 nx = Rase2->GetXaxis()->GetNbins();
456 for (
int i = 1;
i <= nx;
i++) {
457 double ccc1 = Rase2->GetBinContent(
i);
460 Rase2NNN->Fill(
float(
i), ccc1);
463 Rase2NNN->SetMarkerStyle(20);
464 Rase2NNN->SetMarkerSize(0.4);
465 Rase2NNN->GetYaxis()->SetLabelSize(0.04);
466 Rase2NNN->SetXTitle(
"<ADCAmpl> per bx HE \b");
467 Rase2NNN->SetMarkerColor(2);
468 Rase2NNN->SetLineColor(0);
469 Rase2NNN->Draw(
"Error");
472 TH1F* twwd3 = (TH1F*)hfile1->Get(
"h_bcnvsamplitude_HF");
473 TH1F* twwd2 = (TH1F*)hfile1->Get(
"h_bcnvsamplitude0_HF");
477 TH1F* Rase3 = (TH1F*)twwd3->Clone(
"Rase3");
478 Rase3->Divide(twwd3, twwd2, 1, 1,
"B");
480 TH1F* Rase3NNN =
new TH1F(
"Rase3NNN",
"", maxbx - minbx + 1,
float(minbx), maxbx + 1.);
481 nx = Rase3->GetXaxis()->GetNbins();
482 for (
int i = 1;
i <= nx;
i++) {
483 double ccc1 = Rase3->GetBinContent(
i);
486 Rase3NNN->Fill(
float(
i), ccc1);
489 Rase3NNN->SetMarkerStyle(20);
490 Rase3NNN->SetMarkerSize(0.4);
491 Rase3NNN->GetYaxis()->SetLabelSize(0.04);
492 Rase3NNN->SetXTitle(
"<ADCAmpl> per bx HF \b");
493 Rase3NNN->SetMarkerColor(2);
494 Rase3NNN->SetLineColor(0);
495 Rase3NNN->Draw(
"Error");
498 TH1F* twqd3 = (TH1F*)hfile1->Get(
"h_bcnvsamplitude_HO");
499 TH1F* twqd2 = (TH1F*)hfile1->Get(
"h_bcnvsamplitude0_HO");
503 TH1F* Rase4 = (TH1F*)twqd3->Clone(
"Rase4");
504 Rase4->Divide(twqd3, twqd2, 1, 1,
"B");
506 TH1F* Rase4NNN =
new TH1F(
"Rase4NNN",
"", maxbx - minbx + 1,
float(minbx), maxbx + 1.);
507 nx = Rase4->GetXaxis()->GetNbins();
508 for (
int i = 1;
i <= nx;
i++) {
509 double ccc1 = Rase4->GetBinContent(
i);
512 Rase4NNN->Fill(
float(
i), ccc1);
515 Rase4NNN->SetMarkerStyle(20);
516 Rase4NNN->SetMarkerSize(0.4);
517 Rase4NNN->GetYaxis()->SetLabelSize(0.04);
518 Rase4NNN->SetXTitle(
"<ADCAmpl> per bx HO \b");
519 Rase4NNN->SetMarkerColor(2);
520 Rase4NNN->SetLineColor(0);
521 Rase4NNN->Draw(
"Error");
533 TH1F* Rate7 = (TH1F*)hfile1->Get(
"h_sumADCAmplEtaPhiLs_orbitNum");
537 Rate7->SetXTitle(
"h_sumADCAmplEtaPhiLs_orbitNum \b");
541 TH1F* Rate8 = (TH1F*)hfile1->Get(
"h_sumADCAmplEtaPhiLs_lscounterM1");
545 Rate8->SetXTitle(
"h_sumADCAmplEtaPhiLs_lscounterM1 \b");
549 TH1F* Rate9 = (TH1F*)hfile1->Get(
"h_sumADCAmplEtaPhiLs_lscounterM1orbitNum");
553 Rate9->SetXTitle(
"h_sumADCAmplEtaPhiLs_lscounterM1orbitNum \b");
565 TH1F* ASSS1 = (TH1F*)hfile1->Get(
"h_sumADCAmplEtaPhiLs_lscounterM1orbitNum");
566 TH1F* ASSS2 = (TH1F*)hfile1->Get(
"h_sumADCAmplEtaPhiLs_lscounterM1");
569 nx = ASSS2->GetXaxis()->GetNbins();
570 for (
int i = 1;
i <= nx;
i++) {
571 double ccc1 = ASSS2->GetBinContent(
i);
581 cout <<
"Page8: minls= " << minls <<
" maxls= " << maxls << endl;
584 TH1F* ISSS1 =
new TH1F(
"ISSS1",
"", maxls - minls + 1,
float(minls), maxls + 1.);
585 for (
int i = 0;
i <= nx;
i++) {
586 double ccc1 = ASSS1->GetBinContent(
i);
589 ISSS1->Fill(
float(
i), ccc1);
594 ISSS1->SetXTitle(
"lscounterM1 w = orbitNum*Nentries \b");
595 ISSS1->SetMarkerStyle(20);
596 ISSS1->SetMarkerSize(0.4);
597 ISSS1->GetYaxis()->SetLabelSize(0.04);
598 ISSS1->SetMarkerColor(2);
599 ISSS1->SetLineColor(0);
600 ISSS1->Draw(
"Error");
603 TH1F* ISSS2 =
new TH1F(
"ISSS2",
"", maxls - minls + 1,
float(minls), maxls + 1.);
604 for (
int i = 0;
i <= nx;
i++) {
605 double ccc1 = ASSS2->GetBinContent(
i);
608 ISSS2->Fill(
float(
i), ccc1);
613 ISSS2->SetXTitle(
"lscounterM1 w = Nentries \b");
614 ISSS2->SetMarkerStyle(20);
615 ISSS2->SetMarkerSize(0.4);
616 ISSS2->GetYaxis()->SetLabelSize(0.04);
617 ISSS2->SetMarkerColor(2);
618 ISSS2->SetLineColor(0);
619 ISSS2->Draw(
"Error");
622 TH1F* Roze1 = (TH1F*)ASSS2->Clone(
"Roze1");
623 Roze1->Divide(ASSS1, ASSS2, 1, 1,
"B");
625 TH1F* Roze1NNN =
new TH1F(
"Roze1NNN",
"", maxls - minls + 1,
float(minls), maxls + 1.);
626 nx = Roze1->GetXaxis()->GetNbins();
627 for (
int i = 1;
i <= nx;
i++) {
628 double ccc1 = Roze1->GetBinContent(
i);
631 Roze1NNN->Fill(
float(
i), ccc1);
634 Roze1NNN->SetMarkerStyle(20);
635 Roze1NNN->SetMarkerSize(0.4);
636 Roze1NNN->GetYaxis()->SetLabelSize(0.04);
637 Roze1NNN->SetXTitle(
"lscounterM1 w = <orbitNum> \b");
638 Roze1NNN->SetMarkerColor(2);
639 Roze1NNN->SetLineColor(0);
640 Roze1NNN->Draw(
"Error");
654 TH1F* TEST7 = (TH1F*)hfile1->Get(
"h_orbitNumvsamplitude_HB");
658 TEST7->SetXTitle(
"h_orbitNumvsamplitude_HB \b");
662 TH1F* TEST8 = (TH1F*)hfile1->Get(
"h_orbitNumvsamplitude0_HB");
666 TEST8->SetXTitle(
"h_orbitNumvsamplitude0_HB \b");
670 TH1F* TEST9 = (TH1F*)TEST8->Clone(
"TEST9");
671 TEST9->Divide(TEST7, TEST8, 1, 1,
"B");
683 TEST9->SetMarkerStyle(20);
684 TEST9->SetMarkerSize(0.4);
685 TEST9->GetYaxis()->SetLabelSize(0.04);
686 TEST9->SetXTitle(
"<ADCAmpl> per orbitNum HB \b");
687 TEST9->SetMarkerColor(2);
688 TEST9->SetLineColor(0);
689 TEST9->Draw(
"Error");
701 TH1F* kqrd3 = (TH1F*)hfile1->Get(
"h_orbitNumvsamplitude_HB");
702 TH1F* kqrd2 = (TH1F*)hfile1->Get(
"h_orbitNumvsamplitude0_HB");
706 TH1F* Posw1 = (TH1F*)kqrd3->Clone(
"Posw1");
707 Posw1->Divide(kqrd3, kqrd2, 1, 1,
"B");
711 nx = Posw1->GetXaxis()->GetNbins();
712 for (
int i = 1;
i <= nx;
i++) {
713 double ccc1 = Posw1->GetBinContent(
i);
716 Posw1->Fill(
float(
i), ccc1);
719 Posw1->SetMarkerStyle(20);
720 Posw1->SetMarkerSize(0.4);
721 Posw1->GetYaxis()->SetLabelSize(0.04);
722 Posw1->SetXTitle(
"<ADCAmpl> per orbitNum HB \b");
723 Posw1->SetMarkerColor(2);
724 Posw1->SetLineColor(0);
725 Posw1->Draw(
"Error");
728 TH1F* kqed3 = (TH1F*)hfile1->Get(
"h_orbitNumvsamplitude_HE");
729 TH1F* kqed2 = (TH1F*)hfile1->Get(
"h_orbitNumvsamplitude0_HE");
733 TH1F* Posw2 = (TH1F*)kqed3->Clone(
"Posw2");
734 Posw2->Divide(kqed3, kqed2, 1, 1,
"B");
738 nx = Posw2->GetXaxis()->GetNbins();
739 for (
int i = 1;
i <= nx;
i++) {
740 double ccc1 = Posw2->GetBinContent(
i);
743 Posw2->Fill(
float(
i), ccc1);
746 Posw2->SetMarkerStyle(20);
747 Posw2->SetMarkerSize(0.4);
748 Posw2->GetYaxis()->SetLabelSize(0.04);
749 Posw2->SetXTitle(
"<ADCAmpl> per orbitNum HE \b");
750 Posw2->SetMarkerColor(2);
751 Posw2->SetLineColor(0);
752 Posw2->Draw(
"Error");
755 TH1F* kqwd3 = (TH1F*)hfile1->Get(
"h_orbitNumvsamplitude_HF");
756 TH1F* kqwd2 = (TH1F*)hfile1->Get(
"h_orbitNumvsamplitude0_HF");
760 TH1F* Posw3 = (TH1F*)kqwd3->Clone(
"Posw3");
761 Posw3->Divide(kqwd3, kqwd2, 1, 1,
"B");
765 nx = Posw3->GetXaxis()->GetNbins();
766 for (
int i = 1;
i <= nx;
i++) {
767 double ccc1 = Posw3->GetBinContent(
i);
770 Posw3->Fill(
float(
i), ccc1);
773 Posw3->SetMarkerStyle(20);
774 Posw3->SetMarkerSize(0.4);
775 Posw3->GetYaxis()->SetLabelSize(0.04);
776 Posw3->SetXTitle(
"<ADCAmpl> per orbitNum HF \b");
777 Posw3->SetMarkerColor(2);
778 Posw3->SetLineColor(0);
779 Posw3->Draw(
"Error");
782 TH1F* kqqd3 = (TH1F*)hfile1->Get(
"h_orbitNumvsamplitude_HO");
783 TH1F* kqqd2 = (TH1F*)hfile1->Get(
"h_orbitNumvsamplitude0_HO");
787 TH1F* Posw4 = (TH1F*)kqqd3->Clone(
"Posw4");
788 Posw4->Divide(kqqd3, kqqd2, 1, 1,
"B");
792 nx = Posw4->GetXaxis()->GetNbins();
793 for (
int i = 1;
i <= nx;
i++) {
794 double ccc1 = Posw4->GetBinContent(
i);
797 Posw4->Fill(
float(
i), ccc1);
800 Posw4->SetMarkerStyle(20);
801 Posw4->SetMarkerSize(0.4);
802 Posw4->GetYaxis()->SetLabelSize(0.04);
803 Posw4->SetXTitle(
"<ADCAmpl> per orbitNum HO \b");
804 Posw4->SetMarkerColor(2);
805 Posw4->SetLineColor(0);
806 Posw4->Draw(
"Error");
819 TH2F* Cefz1KKK = (TH2F*)hfile1->Get(
"h_2DsumADCAmplEtaPhiLs0");
820 TH2F* Cefz1LLL = (TH2F*)hfile1->Get(
"h_2DsumADCAmplEtaPhiLs00");
821 TH2F* Cefz1 = (TH2F*)Cefz1LLL->Clone(
"Cefz1");
822 Cefz1->Divide(Cefz1KKK, Cefz1LLL, 1, 1,
"B");
829 nx = Cefz1->GetXaxis()->GetNbins();
830 ny = Cefz1->GetYaxis()->GetNbins();
832 cout <<
"Page11: HB h_2DsumADCAmplEtaPhiLs0 nx= " << nx <<
" ny= " << ny << endl;
833 TH1F* ADCAmplLS0 =
new TH1F(
"ADCAmplLS0",
"", 100, 0., 50.);
835 for (
int i = 1;
i <= nx;
i++) {
837 for (
int j = 1;
j <= ny;
j++) {
838 double ccc1 = Cefz1->GetBinContent(
i,
j);
848 ADCAmplLS0->Fill(ccc1);
852 cout <<
"Page11: HB maxbinx= " << maxbinx <<
" maxbiny= " << maxbiny <<
" sumijhb= " << sumijhb << endl;
853 ADCAmplLS0->SetMarkerStyle(20);
854 ADCAmplLS0->SetMarkerSize(0.4);
855 ADCAmplLS0->GetYaxis()->SetLabelSize(0.04);
856 ADCAmplLS0->SetXTitle(
"<A>ijk = <A> averaged per events in k-th LS \b");
857 ADCAmplLS0->SetYTitle(
" HB \b");
858 ADCAmplLS0->SetMarkerColor(2);
859 ADCAmplLS0->SetLineColor(0);
864 ADCAmplLS0->Draw(
"Error");
867 TH1F* ADCAmplLS =
new TH1F(
"ADCAmplLS",
"", maxbins, 1., maxbins + 1.);
869 for (
int i = 1;
i <= nx;
i++) {
871 for (
int j = 1;
j <= ny;
j++) {
872 double ccc1 = Cefz1->GetBinContent(
i,
j);
876 ADCAmplLS->Fill(
float(
i), ccc1* maxbinx / sumijhb);
880 ADCAmplLS->SetMarkerStyle(20);
881 ADCAmplLS->SetMarkerSize(0.4);
882 ADCAmplLS->GetYaxis()->SetLabelSize(0.04);
883 ADCAmplLS->SetMarkerColor(2);
884 ADCAmplLS->SetLineColor(0);
885 ADCAmplLS->SetXTitle(
" iLS \b");
886 ADCAmplLS->SetYTitle(
" <A>k \b");
891 ADCAmplLS->Draw(
"Error");
895 TH1F* ADCAmplLS1 =
new TH1F(
"ADCAmplLS1",
"", 200, 0., 100.);
896 for (
int i = 1;
i <= nx;
i++) {
898 for (
int j = 1;
j <= ny;
j++) {
899 double ccc1 = Cefz1->GetBinContent(
i,
j);
908 ADCAmplLS1->Fill(ccc1);
912 cout <<
"Page11: HB maxbinx= " << maxbinx <<
" maxbiny= " << maxbiny << endl;
913 ADCAmplLS1->SetMarkerStyle(20);
914 ADCAmplLS1->SetMarkerSize(0.4);
915 ADCAmplLS1->GetYaxis()->SetLabelSize(0.04);
916 ADCAmplLS1->SetXTitle(
"<A>ijk = <A> averaged per events in k-th LS \b");
917 ADCAmplLS1->SetMarkerColor(2);
918 ADCAmplLS1->SetLineColor(0);
919 ADCAmplLS1->SetMinimum(0.8);
924 ADCAmplLS1->Draw(
"Error");
931 TH2F* Cefz4 =
new TH2F(
"Cefz4",
"", 22, -11., 11., 18, 0., 18.);
933 for (
int i = 1;
i <= nx;
i++) {
935 for (
int j = 1;
j <= ny;
j++) {
936 double ccc1 = Cefz1->GetBinContent(
i,
j);
940 int jeta = (
j - 1) / 18;
941 int jphi = (
j - 1) - 18 * jeta + 1;
946 Cefz4->Fill(jeta - 11, jphi - 1, ccc1 * maxbiny / sumijhb);
952 Cefz4->SetMarkerStyle(20);
953 Cefz4->SetMarkerSize(0.4);
954 Cefz4->GetZaxis()->SetLabelSize(0.04);
955 Cefz4->SetXTitle(
"<A>ij #eta \b");
956 Cefz4->SetYTitle(
" #phi \b");
957 Cefz4->SetZTitle(
"<A>ij - All \b");
958 Cefz4->SetMarkerColor(2);
959 Cefz4->SetLineColor(2);
973 gStyle->SetOptStat(1110000);
977 nx = Cefz1->GetXaxis()->GetNbins();
978 ny = Cefz1->GetYaxis()->GetNbins();
980 cout <<
"HB GainStability nx= " << nx <<
" ny= " << ny << endl;
981 TH1F* GainStability0 =
new TH1F(
"GainStability0",
"", maxbins, 1., maxbins + 1.);
982 TH1F* GainStability1 =
new TH1F(
"GainStability1",
"", maxbins, 1., maxbins + 1.);
983 TH1F* GainStability2 =
new TH1F(
"GainStability2",
"", maxbins, 1., maxbins + 1.);
985 for (
int i = 1;
i <= nx;
i++) {
987 for (
int j = 1;
j <= ny;
j++) {
988 double ccc1 = Cefz1->GetBinContent(
i,
j);
990 int jeta = (
j - 1) / 18;
991 int jphi = (
j - 1) - 18 * jeta + 1;
994 if (jeta == 8 && jphi == 11)
995 GainStability0->Fill(
i, ccc1);
996 if (jeta == 10 && jphi == 11)
997 GainStability1->Fill(
i, ccc1);
998 if (jeta == 12 && jphi == 11)
999 GainStability2->Fill(
i, ccc1);
1003 GainStability0->SetMarkerStyle(20);
1004 GainStability0->SetMarkerSize(0.4);
1005 GainStability0->GetYaxis()->SetLabelSize(0.04);
1006 GainStability0->SetXTitle(
"GainStability0 \b");
1007 GainStability0->SetMarkerColor(2);
1008 GainStability0->SetLineColor(
1010 GainStability0->Draw(
"Error");
1014 GainStability1->SetMarkerStyle(20);
1015 GainStability1->SetMarkerSize(0.4);
1016 GainStability1->GetYaxis()->SetLabelSize(0.04);
1017 GainStability1->SetXTitle(
"GainStability1 \b");
1018 GainStability1->SetMarkerColor(2);
1019 GainStability1->SetLineColor(
1021 GainStability1->Draw(
"Error");
1025 GainStability2->SetMarkerStyle(20);
1026 GainStability2->SetMarkerSize(0.4);
1027 GainStability2->GetYaxis()->SetLabelSize(0.04);
1028 GainStability2->SetXTitle(
"GainStability2 \b");
1029 GainStability2->SetMarkerColor(2);
1030 GainStability2->SetLineColor(
1032 GainStability2->Draw(
"Error");
1037 TH1F* Ghb5 =
new TH1F(
"Ghb5",
"", nx, 1., nx + 1.);
1042 for (
int j = 1;
j <= ny;
j++) {
1043 ccc0HB = Cefz1->GetBinContent(1,
j);
1046 for (
int i = 1;
i <= nx;
i++) {
1047 double ccc2 = Cefz1->GetBinContent(
i,
j);
1055 for (
int i = 1;
i <= nx;
i++) {
1056 double ccc1 = Cefz1->GetBinContent(
i,
j);
1058 double Rij = ccc1 / ccc0HB;
1059 Ghb5->Fill(
float(
i), Rij);
1067 for (
int i = 1;
i <= nx;
i++) {
1068 Ghb5->SetBinError(
i, 0.0001);
1070 Ghb5->SetMarkerStyle(20);
1071 Ghb5->SetMarkerSize(0.4);
1072 Ghb5->GetYaxis()->SetLabelSize(0.04);
1073 Ghb5->SetMarkerColor(2);
1074 Ghb5->SetLineColor(0);
1075 Ghb5->SetXTitle(
" iLS \b");
1076 Ghb5->SetYTitle(
" <R> \b");
1077 Ghb5->SetTitle(
"<Ri> vs iLS \b");
1078 Ghb5->SetMinimum(0.);
1083 Ghb5->GetYaxis()->SetLabelSize(0.025);
1084 Ghb5->Draw(
"Error");
1087 TH2F* Ghb60 =
new TH2F(
"Ghb60",
"", 22, -11., 11., 18, 0., 18.);
1088 TH2F* Ghb61 =
new TH2F(
"Ghb61",
"", 22, -11., 11., 18, 0., 18.);
1089 TH2F* Ghb6 =
new TH2F(
"Ghb6",
"", 22, -11., 11., 18, 0., 18.);
1095 double meanjHB = 0.;
1096 for (
int j = 1;
j <= ny;
j++) {
1097 ccc0HB = Cefz1->GetBinContent(1,
j);
1099 for (
int i = 1;
i <= nx;
i++) {
1100 double ccc2 = Cefz1->GetBinContent(
i,
j);
1107 for (
int i = 1;
i <= nx;
i++) {
1108 double ccc1 = Cefz1->GetBinContent(
i,
j) / ccc0HB;
1114 meanjHB = sumjHB / njHB;
1118 double ssumjHB = 0.;
1120 double sigmajHB = 0.;
1121 for (
int j = 1;
j <= ny;
j++) {
1122 ccc0HB = Cefz1->GetBinContent(1,
j);
1124 for (
int i = 1;
i <= nx;
i++) {
1125 double ccc2 = Cefz1->GetBinContent(
i,
j);
1132 for (
int i = 1;
i <= nx;
i++) {
1133 double ccc1 = Cefz1->GetBinContent(
i,
j) / ccc0HB;
1135 ssumjHB += (ccc1 - meanjHB) * (ccc1 - meanjHB);
1139 sigmajHB =
sqrt(ssumjHB / njHB);
1143 double dif3rmsHBMIN = meanjHB - 3 * sigmajHB;
1144 if (dif3rmsHBMIN < 0.)
1146 double dif3rmsHBMAX = meanjHB + 3 * sigmajHB;
1147 cout <<
"22HB-2 meanjHB= " << meanjHB <<
" sigmajHB= " << sigmajHB <<
" dif3rmsHBMIN= " << dif3rmsHBMIN
1148 <<
" dif3rmsHBMAX= " << dif3rmsHBMAX << endl;
1150 double MAXdif3rmsHBMIN = dif3rmsHBMIN;
1151 double MINdif3rmsHBMAX = dif3rmsHBMAX;
1152 if (MAXdif3rmsHBMIN < 0.95)
1153 MAXdif3rmsHBMIN = 0.95;
1154 if (MINdif3rmsHBMAX > 1.05)
1155 MINdif3rmsHBMAX = 1.05;
1156 cout <<
"22HB-2 MAXdif3rmsHBMIN= " << MAXdif3rmsHBMIN <<
" MINdif3rmsHBMAX= " << MINdif3rmsHBMAX << endl;
1158 for (
int j = 1;
j <= ny;
j++) {
1159 ccc0HB = Cefz1->GetBinContent(1,
j);
1161 for (
int i = 1;
i <= nx;
i++) {
1162 double ccc2 = Cefz1->GetBinContent(
i,
j);
1169 int jeta = (
j - 1) / 18;
1170 int jphi = (
j - 1) - 18 * jeta;
1172 for (
int i = 1;
i <= nx;
i++) {
1173 double ccc1 = Cefz1->GetBinContent(
i,
j);
1175 double Rij = ccc1 / ccc0HB;
1176 if (Rij < MAXdif3rmsHBMIN || Rij > MINdif3rmsHBMAX) {
1177 Ghb61->Fill(jeta - 11, jphi, Rij);
1178 Ghb60->Fill(jeta - 11, jphi, 1.);
1184 Ghb6->Divide(Ghb61, Ghb60, 1, 1,
"B");
1187 Ghb6->GetZaxis()->SetLabelSize(0.025);
1189 Ghb6->SetXTitle(
" #eta \b");
1190 Ghb6->SetYTitle(
" #phi \b");
1192 "<Rj> for |1-<R>| > 0.05 \b");
1198 TH1F* Ghb7 =
new TH1F(
"Ghb7",
"", 120, 0.4, 1.6);
1200 for (
int j = 1;
j <= ny;
j++) {
1201 ccc0HB = Cefz1->GetBinContent(1,
j);
1203 for (
int i = 1;
i <= nx;
i++) {
1204 double ccc2 = Cefz1->GetBinContent(
i,
j);
1212 for (
int i = 1;
i <= nx;
i++) {
1213 double ccc1 = Cefz1->GetBinContent(
i,
j);
1215 double Rij = ccc1 / ccc0HB;
1221 Ghb7->SetMarkerStyle(20);
1222 Ghb7->SetMarkerSize(0.4);
1223 Ghb7->GetYaxis()->SetLabelSize(0.04);
1224 Ghb7->SetMarkerColor(2);
1225 Ghb7->SetLineColor(0);
1226 Ghb7->SetYTitle(
" N \b");
1227 Ghb7->SetXTitle(
" Rij \b");
1228 Ghb7->SetTitle(
" Rij \b");
1233 Ghb7->GetYaxis()->SetLabelSize(0.025);
1234 Ghb7->Draw(
"Error");
1235 Float_t ymaxHB = Ghb7->GetMaximum();
1236 cout <<
"22HB-3 ymaxHB= " << ymaxHB <<
" MAXdif3rmsHBMIN= " << MAXdif3rmsHBMIN
1237 <<
" MINdif3rmsHBMAX= " << MINdif3rmsHBMAX << endl;
1238 TLine* lineHB =
new TLine(MAXdif3rmsHBMIN, 0., MAXdif3rmsHBMIN, ymaxHB);
1239 lineHB->SetLineColor(kBlue);
1241 TLine* line1HB =
new TLine(MINdif3rmsHBMAX, 0., MINdif3rmsHBMAX, ymaxHB);
1242 line1HB->SetLineColor(kBlue);
1342 gStyle->SetOptStat(0);
1351 nx = Cefz1->GetXaxis()->GetNbins();
1352 ny = Cefz1->GetYaxis()->GetNbins();
1358 cout <<
"HB Gforhbjeta0k ********************************************************************* jeta == 7 "
1361 TH1F* h2CeffGforhbjeta0k0 =
new TH1F(
"h2CeffGforhbjeta0k0",
"", maxbins, 1., maxbins + 1.);
1362 for (
int j = 1;
j <= ny;
j++) {
1363 int jeta = (
j - 1) / 18;
1365 int jphi = (
j - 1) - 18 * jeta + 1;
1368 TH1F* Gforhbjeta0k0 = (TH1F*)h2CeffGforhbjeta0k0->Clone(
"twod1");
1370 for (
int i = 1;
i <= nx;
i++) {
1371 double ccc1 = Cefz1->GetBinContent(
i,
j);
1374 Gforhbjeta0k0->Fill(
i, ccc1);
1379 Gforhbjeta0k0->SetMarkerStyle(20);
1380 Gforhbjeta0k0->SetMarkerSize(0.4);
1381 Gforhbjeta0k0->GetYaxis()->SetLabelSize(0.04);
1382 Gforhbjeta0k0->SetXTitle(
"Gforhbjeta0k0 \b");
1383 Gforhbjeta0k0->SetMarkerColor(2);
1384 Gforhbjeta0k0->SetLineColor(0);
1386 Gforhbjeta0k0->Draw(
"Error");
1405 nx = Cefz1->GetXaxis()->GetNbins();
1406 ny = Cefz1->GetYaxis()->GetNbins();
1412 cout <<
"HB Gforhbjeta1k ********************************************************************* jeta == 8 "
1415 TH1F* h2CeffGforhbjeta1k0 =
new TH1F(
"h2CeffGforhbjeta1k0",
"", maxbins, 1., maxbins + 1.);
1416 for (
int j = 1;
j <= ny;
j++) {
1417 int jeta = (
j - 1) / 18;
1419 int jphi = (
j - 1) - 18 * jeta + 1;
1422 TH1F* Gforhbjeta1k0 = (TH1F*)h2CeffGforhbjeta1k0->Clone(
"twod1");
1424 for (
int i = 1;
i <= nx;
i++) {
1425 double ccc1 = Cefz1->GetBinContent(
i,
j);
1428 Gforhbjeta1k0->Fill(
i, ccc1);
1433 Gforhbjeta1k0->SetMarkerStyle(20);
1434 Gforhbjeta1k0->SetMarkerSize(0.4);
1435 Gforhbjeta1k0->GetYaxis()->SetLabelSize(0.04);
1436 Gforhbjeta1k0->SetXTitle(
"Gforhbjeta1k0 \b");
1437 Gforhbjeta1k0->SetMarkerColor(2);
1438 Gforhbjeta1k0->SetLineColor(0);
1440 Gforhbjeta1k0->Draw(
"Error");
1459 nx = Cefz1->GetXaxis()->GetNbins();
1460 ny = Cefz1->GetYaxis()->GetNbins();
1466 cout <<
"HB Gforhbjeta2k ********************************************************************* jeta == 9 "
1469 TH1F* h2CeffGforhbjeta2k0 =
new TH1F(
"h2CeffGforhbjeta2k0",
"", maxbins, 1., maxbins + 1.);
1470 for (
int j = 1;
j <= ny;
j++) {
1471 int jeta = (
j - 1) / 18;
1473 int jphi = (
j - 1) - 18 * jeta + 1;
1476 TH1F* Gforhbjeta2k0 = (TH1F*)h2CeffGforhbjeta2k0->Clone(
"twod1");
1478 for (
int i = 1;
i <= nx;
i++) {
1479 double ccc1 = Cefz1->GetBinContent(
i,
j);
1482 Gforhbjeta2k0->Fill(
i, ccc1);
1487 Gforhbjeta2k0->SetMarkerStyle(20);
1488 Gforhbjeta2k0->SetMarkerSize(0.4);
1489 Gforhbjeta2k0->GetYaxis()->SetLabelSize(0.04);
1490 Gforhbjeta2k0->SetXTitle(
"Gforhbjeta2k0 \b");
1491 Gforhbjeta2k0->SetMarkerColor(2);
1492 Gforhbjeta2k0->SetLineColor(0);
1494 Gforhbjeta2k0->Draw(
"Error");
1513 nx = Cefz1->GetXaxis()->GetNbins();
1514 ny = Cefz1->GetYaxis()->GetNbins();
1520 cout <<
"HB Gforhbjeta3k ********************************************************************* jeta == 10 "
1523 TH1F* h2CeffGforhbjeta3k0 =
new TH1F(
"h2CeffGforhbjeta3k0",
"", maxbins, 1., maxbins + 1.);
1524 for (
int j = 1;
j <= ny;
j++) {
1525 int jeta = (
j - 1) / 18;
1527 int jphi = (
j - 1) - 18 * jeta + 1;
1530 TH1F* Gforhbjeta3k0 = (TH1F*)h2CeffGforhbjeta3k0->Clone(
"twod1");
1532 for (
int i = 1;
i <= nx;
i++) {
1533 double ccc1 = Cefz1->GetBinContent(
i,
j);
1536 Gforhbjeta3k0->Fill(
i, ccc1);
1541 Gforhbjeta3k0->SetMarkerStyle(20);
1542 Gforhbjeta3k0->SetMarkerSize(0.4);
1543 Gforhbjeta3k0->GetYaxis()->SetLabelSize(0.04);
1544 Gforhbjeta3k0->SetXTitle(
"Gforhbjeta3k0 \b");
1545 Gforhbjeta3k0->SetMarkerColor(2);
1546 Gforhbjeta3k0->SetLineColor(0);
1548 Gforhbjeta3k0->Draw(
"Error");
1567 nx = Cefz1->GetXaxis()->GetNbins();
1568 ny = Cefz1->GetYaxis()->GetNbins();
1574 cout <<
"HB Gforhbjeta18k ********************************************************************* jeta == 11 "
1577 TH1F* h2CeffGforhbjeta18k0 =
new TH1F(
"h2CeffGforhbjeta18k0",
"", maxbins, 1., maxbins + 1.);
1578 for (
int j = 1;
j <= ny;
j++) {
1579 int jeta = (
j - 1) / 18;
1581 int jphi = (
j - 1) - 18 * jeta + 1;
1584 TH1F* Gforhbjeta18k0 = (TH1F*)h2CeffGforhbjeta18k0->Clone(
"twod1");
1586 for (
int i = 1;
i <= nx;
i++) {
1587 double ccc1 = Cefz1->GetBinContent(
i,
j);
1590 Gforhbjeta18k0->Fill(
i, ccc1);
1595 Gforhbjeta18k0->SetMarkerStyle(20);
1596 Gforhbjeta18k0->SetMarkerSize(0.4);
1597 Gforhbjeta18k0->GetYaxis()->SetLabelSize(0.04);
1598 Gforhbjeta18k0->SetXTitle(
"Gforhbjeta18k0 \b");
1599 Gforhbjeta18k0->SetMarkerColor(2);
1600 Gforhbjeta18k0->SetLineColor(0);
1602 Gforhbjeta18k0->Draw(
"Error");
1621 nx = Cefz1->GetXaxis()->GetNbins();
1622 ny = Cefz1->GetYaxis()->GetNbins();
1628 cout <<
"HB Gforhbjeta19k ********************************************************************* jeta == 12 "
1631 TH1F* h2CeffGforhbjeta19k0 =
new TH1F(
"h2CeffGforhbjeta19k0",
"", maxbins, 1., maxbins + 1.);
1632 for (
int j = 1;
j <= ny;
j++) {
1633 int jeta = (
j - 1) / 18;
1635 int jphi = (
j - 1) - 18 * jeta + 1;
1638 TH1F* Gforhbjeta19k0 = (TH1F*)h2CeffGforhbjeta19k0->Clone(
"twod1");
1640 for (
int i = 1;
i <= nx;
i++) {
1641 double ccc1 = Cefz1->GetBinContent(
i,
j);
1644 Gforhbjeta19k0->Fill(
i, ccc1);
1649 Gforhbjeta19k0->SetMarkerStyle(20);
1650 Gforhbjeta19k0->SetMarkerSize(0.4);
1651 Gforhbjeta19k0->GetYaxis()->SetLabelSize(0.04);
1652 Gforhbjeta19k0->SetXTitle(
"Gforhbjeta19k0 \b");
1653 Gforhbjeta19k0->SetMarkerColor(2);
1654 Gforhbjeta19k0->SetLineColor(0);
1656 Gforhbjeta19k0->Draw(
"Error");
1675 nx = Cefz1->GetXaxis()->GetNbins();
1676 ny = Cefz1->GetYaxis()->GetNbins();
1682 cout <<
"HB Gforhbjeta20k ********************************************************************* jeta == 13 "
1685 TH1F* h2CeffGforhbjeta20k0 =
new TH1F(
"h2CeffGforhbjeta20k0",
"", maxbins, 1., maxbins + 1.);
1686 for (
int j = 1;
j <= ny;
j++) {
1687 int jeta = (
j - 1) / 18;
1689 int jphi = (
j - 1) - 18 * jeta + 1;
1692 TH1F* Gforhbjeta20k0 = (TH1F*)h2CeffGforhbjeta20k0->Clone(
"twod1");
1694 for (
int i = 1;
i <= nx;
i++) {
1695 double ccc1 = Cefz1->GetBinContent(
i,
j);
1698 Gforhbjeta20k0->Fill(
i, ccc1);
1703 Gforhbjeta20k0->SetMarkerStyle(20);
1704 Gforhbjeta20k0->SetMarkerSize(0.4);
1705 Gforhbjeta20k0->GetYaxis()->SetLabelSize(0.04);
1706 Gforhbjeta20k0->SetXTitle(
"Gforhbjeta20k0 \b");
1707 Gforhbjeta20k0->SetMarkerColor(2);
1708 Gforhbjeta20k0->SetLineColor(0);
1710 Gforhbjeta20k0->Draw(
"Error");
1729 nx = Cefz1->GetXaxis()->GetNbins();
1730 ny = Cefz1->GetYaxis()->GetNbins();
1736 cout <<
"HB Gforhbjeta21k ********************************************************************* jeta == 14 "
1739 TH1F* h2CeffGforhbjeta21k0 =
new TH1F(
"h2CeffGforhbjeta21k0",
"", maxbins, 1., maxbins + 1.);
1740 for (
int j = 1;
j <= ny;
j++) {
1741 int jeta = (
j - 1) / 18;
1743 int jphi = (
j - 1) - 18 * jeta + 1;
1746 TH1F* Gforhbjeta21k0 = (TH1F*)h2CeffGforhbjeta21k0->Clone(
"twod1");
1748 for (
int i = 1;
i <= nx;
i++) {
1749 double ccc1 = Cefz1->GetBinContent(
i,
j);
1752 Gforhbjeta21k0->Fill(
i, ccc1);
1757 Gforhbjeta21k0->SetMarkerStyle(20);
1758 Gforhbjeta21k0->SetMarkerSize(0.4);
1759 Gforhbjeta21k0->GetYaxis()->SetLabelSize(0.04);
1760 Gforhbjeta21k0->SetXTitle(
"Gforhbjeta21k0 \b");
1761 Gforhbjeta21k0->SetMarkerColor(2);
1762 Gforhbjeta21k0->SetLineColor(0);
1764 Gforhbjeta21k0->Draw(
"Error");
1785 TH2F* Sefz1KKK = (TH2F*)hfile1->Get(
"h_2DsumADCAmplEtaPhiLs1");
1786 TH2F* Sefz1LLL = (TH2F*)hfile1->Get(
"h_2DsumADCAmplEtaPhiLs10");
1787 TH2F* Sefz1 = (TH2F*)Sefz1LLL->Clone(
"Sefz1");
1788 Sefz1->Divide(Sefz1KKK, Sefz1LLL, 1, 1,
"B");
1795 nx = Sefz1->GetXaxis()->GetNbins();
1796 ny = Sefz1->GetYaxis()->GetNbins();
1798 cout <<
"HE h_2DsumADCAmplEtaPhiLs0 nx= " << nx <<
" ny= " << ny << endl;
1800 TH1F* Sefw0 =
new TH1F(
"Sefw0",
"", 200, 0., 15000.);
1801 for (
int i = 1;
i <= nx;
i++) {
1803 for (
int j = 1;
j <= ny;
j++) {
1804 double ccc1 = Sefz1->GetBinContent(
i,
j);
1818 cout <<
"HE maxbinx= " << maxbinx <<
" maxbiny= " << maxbiny <<
" sumijhe= " << sumijhe << endl;
1819 Sefw0->SetMarkerStyle(20);
1820 Sefw0->SetMarkerSize(0.4);
1821 Sefw0->GetYaxis()->SetLabelSize(0.04);
1822 Sefw0->SetXTitle(
"<A>ijk = <A> averaged per events in k-th LS \b");
1823 Sefw0->SetYTitle(
" HE \b");
1824 Sefw0->SetMarkerColor(2);
1825 Sefw0->SetLineColor(0);
1826 Sefw0->SetMinimum(10.);
1831 Sefw0->Draw(
"Error");
1834 TH1F* Sefw =
new TH1F(
"Sefw",
"", maxbins, 1., maxbins + 1.);
1836 for (
int i = 1;
i <= nx;
i++) {
1838 for (
int j = 1;
j <= ny;
j++) {
1839 double ccc1 = Sefz1->GetBinContent(
i,
j);
1843 Sefw->Fill(
float(
i), ccc1* maxbinx / sumijhe);
1847 Sefw->SetMarkerStyle(20);
1848 Sefw->SetMarkerSize(0.4);
1849 Sefw->GetYaxis()->SetLabelSize(0.04);
1850 Sefw->SetMarkerColor(2);
1851 Sefw->SetLineColor(0);
1852 Sefw->SetXTitle(
" iLS \b");
1853 Sefw->SetYTitle(
" <A>k \b");
1858 Sefw->Draw(
"Error");
1862 TH1F* Sefw1 =
new TH1F(
"Sefw1",
"", 100, 0., 9000.);
1863 for (
int i = 1;
i <= nx;
i++) {
1865 for (
int j = 1;
j <= ny;
j++) {
1866 double ccc1 = Sefz1->GetBinContent(
i,
j);
1879 cout <<
"HE maxbinx= " << maxbinx <<
" maxbiny= " << maxbiny << endl;
1880 Sefw1->SetMarkerStyle(20);
1881 Sefw1->SetMarkerSize(0.4);
1882 Sefw1->GetYaxis()->SetLabelSize(0.04);
1883 Sefw1->SetXTitle(
"<A>ijk = <A> averaged per events in k-th LS \b");
1884 Sefw1->SetMarkerColor(2);
1885 Sefw1->SetLineColor(0);
1891 Sefw1->Draw(
"Error");
1896 TH2F* Sefz4 =
new TH2F(
"Sefz4",
"", 22, -11., 11., 18, 0., 18.);
1898 for (
int i = 1;
i <= nx;
i++) {
1900 for (
int j = 1;
j <= ny;
j++) {
1901 double ccc1 = Sefz1->GetBinContent(
i,
j);
1905 int jeta = (
j - 1) / 18;
1906 int jphi = (
j - 1) - 18 * jeta + 1;
1910 Sefz4->Fill(jeta - 11, jphi - 1, ccc1 * maxbiny / sumijhe);
1916 Sefz4->SetMarkerStyle(20);
1917 Sefz4->SetMarkerSize(0.4);
1918 Sefz4->GetZaxis()->SetLabelSize(0.08);
1919 Sefz4->SetXTitle(
"<A>ij #eta \b");
1920 Sefz4->SetYTitle(
" #phi \b");
1921 Sefz4->SetZTitle(
"<A>ij - All \b");
1922 Sefz4->SetMarkerColor(2);
1923 Sefz4->SetLineColor(2);
1924 Sefz4->Draw(
"COLZ");
1938 nx = Sefz1->GetXaxis()->GetNbins();
1939 ny = Sefz1->GetYaxis()->GetNbins();
1941 cout <<
"HE Sefk nx= " << nx <<
" ny= " << ny << endl;
1942 TH1F* Sefk0 =
new TH1F(
"Sefk0",
"", maxbins, 1., maxbins + 1.);
1943 TH1F* Sefk1 =
new TH1F(
"Sefk1",
"", maxbins, 1., maxbins + 1.);
1944 TH1F* Sefk2 =
new TH1F(
"Sefk2",
"", maxbins, 1., maxbins + 1.);
1946 for (
int i = 1;
i <= nx;
i++) {
1948 for (
int j = 1;
j <= ny;
j++) {
1949 double ccc1 = Sefz1->GetBinContent(
i,
j);
1951 int jeta = (
j - 1) / 18;
1952 int jphi = (
j - 1) - 18 * jeta + 1;
1955 if (jeta == 4 && jphi == 11)
1956 Sefk0->Fill(
i, ccc1);
1957 if (jeta == 5 && jphi == 11)
1958 Sefk1->Fill(
i, ccc1);
1959 if (jeta == 16 && jphi == 11)
1960 Sefk2->Fill(
i, ccc1);
1964 Sefk0->SetMarkerStyle(20);
1965 Sefk0->SetMarkerSize(0.4);
1966 Sefk0->GetYaxis()->SetLabelSize(0.04);
1967 Sefk0->SetXTitle(
"Sefk0 \b");
1968 Sefk0->SetMarkerColor(2);
1969 Sefk0->SetLineColor(
1971 Sefk0->Draw(
"Error");
1975 Sefk1->SetMarkerStyle(20);
1976 Sefk1->SetMarkerSize(0.4);
1977 Sefk1->GetYaxis()->SetLabelSize(0.04);
1978 Sefk1->SetXTitle(
"Sefk1 \b");
1979 Sefk1->SetMarkerColor(2);
1980 Sefk1->SetLineColor(
1982 Sefk1->Draw(
"Error");
1986 Sefk2->SetMarkerStyle(20);
1987 Sefk2->SetMarkerSize(0.4);
1988 Sefk2->GetYaxis()->SetLabelSize(0.04);
1989 Sefk2->SetXTitle(
"Sefk2 \b");
1990 Sefk2->SetMarkerColor(2);
1991 Sefk2->SetLineColor(
1993 Sefk2->Draw(
"Error");
2046 TH1F* Sefz51 =
new TH1F(
"Sefz51",
"", maxbins, 1., maxbins + 1.);
2047 TH1F* Sefz50 =
new TH1F(
"Sefz50",
"", maxbins, 1., maxbins + 1.);
2048 TH1F* Sefz5 = (TH1F*)Sefz50->Clone(
"Sefz5");
2050 for (
int j = 1;
j <= ny;
j++) {
2051 ccc0E = Sefz1->GetBinContent(1,
j);
2054 for (
int i = 1;
i <= nx;
i++) {
2055 double ccc2 = Sefz1->GetBinContent(
i,
j);
2062 cout <<
"!!! ccc0E= " << ccc0E << endl;
2066 for (
int i = 1;
i <= nx;
i++) {
2067 double ccc1 = Sefz1->GetBinContent(
i,
j);
2069 double Rij = ccc1 / ccc0E;
2071 Sefz51->Fill(
float(
i), Rij);
2072 Sefz50->Fill(
float(
i), 1.);
2077 Sefz5->Divide(Sefz51, Sefz50, 1, 1,
"B");
2078 for (
int jeta = 1; jeta <= maxbins; jeta++) {
2079 Sefz5->SetBinError(jeta, 0.0001);
2081 Sefz5->SetMarkerStyle(20);
2082 Sefz5->SetMarkerSize(0.4);
2083 Sefz5->GetYaxis()->SetLabelSize(0.04);
2084 Sefz5->SetMarkerColor(2);
2085 Sefz5->SetLineColor(0);
2086 Sefz5->SetXTitle(
" iLS \b");
2087 Sefz5->SetYTitle(
" <R> \b");
2088 Sefz5->SetMinimum(0.);
2092 Sefz5->Draw(
"Error");
2096 TH2F* Sefz60 =
new TH2F(
"Sefz60",
"", 22, -11., 11., 18, 0., 18.);
2097 TH2F* Sefz61 =
new TH2F(
"Sefz61",
"", 22, -11., 11., 18, 0., 18.);
2098 TH2F* Sefz6 =
new TH2F(
"Sefz6",
"", 22, -11., 11., 18, 0., 18.);
2105 for (
int j = 1;
j <= ny;
j++) {
2106 ccc0E = Sefz1->GetBinContent(1,
j);
2108 for (
int i = 1;
i <= nx;
i++) {
2109 double ccc2 = Sefz1->GetBinContent(
i,
j);
2116 for (
int i = 1;
i <= nx;
i++) {
2117 double ccc1 = Sefz1->GetBinContent(
i,
j) / ccc0E;
2130 for (
int j = 1;
j <= ny;
j++) {
2131 ccc0E = Sefz1->GetBinContent(1,
j);
2133 for (
int i = 1;
i <= nx;
i++) {
2134 double ccc2 = Sefz1->GetBinContent(
i,
j);
2141 for (
int i = 1;
i <= nx;
i++) {
2142 double ccc1 = Sefz1->GetBinContent(
i,
j) / ccc0E;
2144 ssumj += (ccc1 - meanj) * (ccc1 - meanj);
2148 sigmaj =
sqrt(ssumj / nj);
2152 double dif3rmsMIN = meanj - 3 * sigmaj;
2153 if (dif3rmsMIN < 0.)
2155 double dif3rmsMAX = meanj + 3 * sigmaj;
2156 cout <<
"22-5 meanj= " << meanj <<
" sigmaj= " << sigmaj <<
" dif3rmsMIN= " << dif3rmsMIN
2157 <<
" dif3rmsMAX= " << dif3rmsMAX << endl;
2159 double MAXdif3rmsMIN = dif3rmsMIN;
2160 double MINdif3rmsMAX = dif3rmsMAX;
2161 if (MAXdif3rmsMIN < 0.95)
2162 MAXdif3rmsMIN = 0.95;
2163 if (MINdif3rmsMAX > 1.05)
2164 MINdif3rmsMAX = 1.05;
2165 cout <<
"22-5 MAXdif3rmsMIN= " << MAXdif3rmsMIN <<
" MINdif3rmsMAX= " << MINdif3rmsMAX << endl;
2167 for (
int j = 1;
j <= ny;
j++) {
2168 ccc0E = Sefz1->GetBinContent(1,
j);
2170 for (
int i = 1;
i <= nx;
i++) {
2171 double ccc2 = Sefz1->GetBinContent(
i,
j);
2178 int jeta = (
j - 1) / 18;
2179 int jphi = (
j - 1) - 18 * jeta;
2181 for (
int i = 1;
i <= nx;
i++) {
2182 double ccc1 = Sefz1->GetBinContent(
i,
j);
2184 double Rij = ccc1 / ccc0E;
2185 if (Rij < MAXdif3rmsMIN || Rij > MINdif3rmsMAX) {
2186 Sefz61->Fill(jeta - 11, jphi, Rij);
2187 Sefz60->Fill(jeta - 11, jphi, 1.);
2193 Sefz6->Divide(Sefz61, Sefz60, 1, 1,
"B");
2195 Sefz6->SetMarkerStyle(20);
2196 Sefz6->SetMarkerSize(0.4);
2197 Sefz6->GetZaxis()->SetLabelSize(0.04);
2198 Sefz6->SetXTitle(
"<Rj> outside_Cuts #eta \b");
2199 Sefz6->SetYTitle(
" #phi \b");
2200 Sefz6->SetZTitle(
"Rij averaged over LSs \b");
2201 Sefz6->SetMarkerColor(2);
2202 Sefz6->SetLineColor(2);
2203 Sefz6->Draw(
"COLZ");
2206 TH1F* Sefz7 =
new TH1F(
"Sefz7",
"", 120, 0.4, 1.6);
2208 for (
int j = 1;
j <= ny;
j++) {
2209 ccc0E = Sefz1->GetBinContent(1,
j);
2211 for (
int i = 1;
i <= nx;
i++) {
2212 double ccc2 = Sefz1->GetBinContent(
i,
j);
2220 for (
int i = 1;
i <= nx;
i++) {
2221 double ccc1 = Sefz1->GetBinContent(
i,
j);
2223 double Rij = ccc1 / ccc0E;
2229 Sefz7->SetMarkerStyle(20);
2230 Sefz7->SetMarkerSize(0.4);
2231 Sefz7->GetYaxis()->SetLabelSize(0.04);
2232 Sefz7->SetMarkerColor(2);
2233 Sefz7->SetLineColor(0);
2234 Sefz7->SetYTitle(
" N \b");
2235 Sefz7->SetXTitle(
" Rij \b");
2240 Sefz7->Draw(
"Error");
2241 double ymaxE = Sefz7->GetMaximum();
2243 cout <<
"22-6 ymaxE= " << ymaxE <<
" MAXdif3rmsMIN= " << MAXdif3rmsMIN
2244 <<
" MINdif3rmsMAX= " << MINdif3rmsMAX << endl;
2245 TLine* lineE =
new TLine(MAXdif3rmsMIN, 0., MAXdif3rmsMIN, ymaxE);
2246 lineE->SetLineColor(kGreen);
2248 TLine* line1E =
new TLine(MINdif3rmsMAX, 0., MINdif3rmsMAX, ymaxE);
2249 line1E->SetLineColor(kGreen);
2263 nx = Sefz1->GetXaxis()->GetNbins();
2264 ny = Sefz1->GetYaxis()->GetNbins();
2270 cout <<
"HE Gforhejeta0k ********************************************************************* jeta == 3 "
2273 TH1F* h2CeffGforhejeta0k0 =
new TH1F(
"h2CeffGforhejeta0k0",
"", maxbins, 1., maxbins + 1.);
2274 for (
int j = 1;
j <= ny;
j++) {
2275 int jeta = (
j - 1) / 18;
2277 int jphi = (
j - 1) - 18 * jeta + 1;
2280 TH1F* Gforhejeta0k0 = (TH1F*)h2CeffGforhejeta0k0->Clone(
"twod1");
2282 for (
int i = 1;
i <= nx;
i++) {
2283 double ccc1 = Sefz1->GetBinContent(
i,
j);
2286 Gforhejeta0k0->Fill(
i, ccc1);
2291 Gforhejeta0k0->SetMarkerStyle(20);
2292 Gforhejeta0k0->SetMarkerSize(0.4);
2293 Gforhejeta0k0->GetYaxis()->SetLabelSize(0.04);
2294 Gforhejeta0k0->SetXTitle(
"Gforhejeta0k0 \b");
2295 Gforhejeta0k0->SetMarkerColor(2);
2296 Gforhejeta0k0->SetLineColor(0);
2298 Gforhejeta0k0->Draw(
"Error");
2317 nx = Sefz1->GetXaxis()->GetNbins();
2318 ny = Sefz1->GetYaxis()->GetNbins();
2324 cout <<
"HE Gforhejeta1k ********************************************************************* jeta == 4 "
2327 TH1F* h2CeffGforhejeta1k0 =
new TH1F(
"h2CeffGforhejeta1k0",
"", maxbins, 1., maxbins + 1.);
2328 for (
int j = 1;
j <= ny;
j++) {
2329 int jeta = (
j - 1) / 18;
2331 int jphi = (
j - 1) - 18 * jeta + 1;
2334 TH1F* Gforhejeta1k0 = (TH1F*)h2CeffGforhejeta1k0->Clone(
"twod1");
2336 for (
int i = 1;
i <= nx;
i++) {
2337 double ccc1 = Sefz1->GetBinContent(
i,
j);
2340 Gforhejeta1k0->Fill(
i, ccc1);
2345 Gforhejeta1k0->SetMarkerStyle(20);
2346 Gforhejeta1k0->SetMarkerSize(0.4);
2347 Gforhejeta1k0->GetYaxis()->SetLabelSize(0.04);
2348 Gforhejeta1k0->SetXTitle(
"Gforhejeta1k0 \b");
2349 Gforhejeta1k0->SetMarkerColor(2);
2350 Gforhejeta1k0->SetLineColor(0);
2352 Gforhejeta1k0->Draw(
"Error");
2371 nx = Sefz1->GetXaxis()->GetNbins();
2372 ny = Sefz1->GetYaxis()->GetNbins();
2378 cout <<
"HE Gforhejeta2k ********************************************************************* jeta == 5 "
2381 TH1F* h2CeffGforhejeta2k0 =
new TH1F(
"h2CeffGforhejeta2k0",
"", maxbins, 1., maxbins + 1.);
2382 for (
int j = 1;
j <= ny;
j++) {
2383 int jeta = (
j - 1) / 18;
2385 int jphi = (
j - 1) - 18 * jeta + 1;
2388 TH1F* Gforhejeta2k0 = (TH1F*)h2CeffGforhejeta2k0->Clone(
"twod1");
2390 for (
int i = 1;
i <= nx;
i++) {
2391 double ccc1 = Sefz1->GetBinContent(
i,
j);
2394 Gforhejeta2k0->Fill(
i, ccc1);
2399 Gforhejeta2k0->SetMarkerStyle(20);
2400 Gforhejeta2k0->SetMarkerSize(0.4);
2401 Gforhejeta2k0->GetYaxis()->SetLabelSize(0.04);
2402 Gforhejeta2k0->SetXTitle(
"Gforhejeta2k0 \b");
2403 Gforhejeta2k0->SetMarkerColor(2);
2404 Gforhejeta2k0->SetLineColor(0);
2406 Gforhejeta2k0->Draw(
"Error");
2425 nx = Sefz1->GetXaxis()->GetNbins();
2426 ny = Sefz1->GetYaxis()->GetNbins();
2432 cout <<
"HE Gforhejeta3k ********************************************************************* jeta == 6 "
2435 TH1F* h2CeffGforhejeta3k0 =
new TH1F(
"h2CeffGforhejeta3k0",
"", maxbins, 1., maxbins + 1.);
2436 for (
int j = 1;
j <= ny;
j++) {
2437 int jeta = (
j - 1) / 18;
2439 int jphi = (
j - 1) - 18 * jeta + 1;
2442 TH1F* Gforhejeta3k0 = (TH1F*)h2CeffGforhejeta3k0->Clone(
"twod1");
2444 for (
int i = 1;
i <= nx;
i++) {
2445 double ccc1 = Sefz1->GetBinContent(
i,
j);
2448 Gforhejeta3k0->Fill(
i, ccc1);
2453 Gforhejeta3k0->SetMarkerStyle(20);
2454 Gforhejeta3k0->SetMarkerSize(0.4);
2455 Gforhejeta3k0->GetYaxis()->SetLabelSize(0.04);
2456 Gforhejeta3k0->SetXTitle(
"Gforhejeta3k0 \b");
2457 Gforhejeta3k0->SetMarkerColor(2);
2458 Gforhejeta3k0->SetLineColor(0);
2460 Gforhejeta3k0->Draw(
"Error");
2479 nx = Sefz1->GetXaxis()->GetNbins();
2480 ny = Sefz1->GetYaxis()->GetNbins();
2486 cout <<
"HE Gforhejeta18k ********************************************************************* jeta == 7 "
2489 TH1F* h2CeffGforhejeta18k0 =
new TH1F(
"h2CeffGforhejeta18k0",
"", maxbins, 1., maxbins + 1.);
2490 for (
int j = 1;
j <= ny;
j++) {
2491 int jeta = (
j - 1) / 18;
2493 int jphi = (
j - 1) - 18 * jeta + 1;
2496 TH1F* Gforhejeta18k0 = (TH1F*)h2CeffGforhejeta18k0->Clone(
"twod1");
2498 for (
int i = 1;
i <= nx;
i++) {
2499 double ccc1 = Sefz1->GetBinContent(
i,
j);
2502 Gforhejeta18k0->Fill(
i, ccc1);
2507 Gforhejeta18k0->SetMarkerStyle(20);
2508 Gforhejeta18k0->SetMarkerSize(0.4);
2509 Gforhejeta18k0->GetYaxis()->SetLabelSize(0.04);
2510 Gforhejeta18k0->SetXTitle(
"Gforhejeta18k0 \b");
2511 Gforhejeta18k0->SetMarkerColor(2);
2512 Gforhejeta18k0->SetLineColor(0);
2514 Gforhejeta18k0->Draw(
"Error");
2533 nx = Sefz1->GetXaxis()->GetNbins();
2534 ny = Sefz1->GetYaxis()->GetNbins();
2540 cout <<
"HE Gforhejeta19k ********************************************************************* jeta == 14 "
2543 TH1F* h2CeffGforhejeta19k0 =
new TH1F(
"h2CeffGforhejeta19k0",
"", maxbins, 1., maxbins + 1.);
2544 for (
int j = 1;
j <= ny;
j++) {
2545 int jeta = (
j - 1) / 18;
2547 int jphi = (
j - 1) - 18 * jeta + 1;
2550 TH1F* Gforhejeta19k0 = (TH1F*)h2CeffGforhejeta19k0->Clone(
"twod1");
2552 for (
int i = 1;
i <= nx;
i++) {
2553 double ccc1 = Sefz1->GetBinContent(
i,
j);
2556 Gforhejeta19k0->Fill(
i, ccc1);
2561 Gforhejeta19k0->SetMarkerStyle(20);
2562 Gforhejeta19k0->SetMarkerSize(0.4);
2563 Gforhejeta19k0->GetYaxis()->SetLabelSize(0.04);
2564 Gforhejeta19k0->SetXTitle(
"Gforhejeta19k0 \b");
2565 Gforhejeta19k0->SetMarkerColor(2);
2566 Gforhejeta19k0->SetLineColor(0);
2568 Gforhejeta19k0->Draw(
"Error");
2587 nx = Sefz1->GetXaxis()->GetNbins();
2588 ny = Sefz1->GetYaxis()->GetNbins();
2594 cout <<
"HE Gforhejeta20k ********************************************************************* jeta == 15 "
2597 TH1F* h2CeffGforhejeta20k0 =
new TH1F(
"h2CeffGforhejeta20k0",
"", maxbins, 1., maxbins + 1.);
2598 for (
int j = 1;
j <= ny;
j++) {
2599 int jeta = (
j - 1) / 18;
2601 int jphi = (
j - 1) - 18 * jeta + 1;
2604 TH1F* Gforhejeta20k0 = (TH1F*)h2CeffGforhejeta20k0->Clone(
"twod1");
2606 for (
int i = 1;
i <= nx;
i++) {
2607 double ccc1 = Sefz1->GetBinContent(
i,
j);
2610 Gforhejeta20k0->Fill(
i, ccc1);
2615 Gforhejeta20k0->SetMarkerStyle(20);
2616 Gforhejeta20k0->SetMarkerSize(0.4);
2617 Gforhejeta20k0->GetYaxis()->SetLabelSize(0.04);
2618 Gforhejeta20k0->SetXTitle(
"Gforhejeta20k0 \b");
2619 Gforhejeta20k0->SetMarkerColor(2);
2620 Gforhejeta20k0->SetLineColor(0);
2622 Gforhejeta20k0->Draw(
"Error");
2641 nx = Sefz1->GetXaxis()->GetNbins();
2642 ny = Sefz1->GetYaxis()->GetNbins();
2648 cout <<
"HE Gforhejeta21k ********************************************************************* jeta == 16 "
2651 TH1F* h2CeffGforhejeta21k0 =
new TH1F(
"h2CeffGforhejeta21k0",
"", maxbins, 1., maxbins + 1.);
2652 for (
int j = 1;
j <= ny;
j++) {
2653 int jeta = (
j - 1) / 18;
2655 int jphi = (
j - 1) - 18 * jeta + 1;
2658 TH1F* Gforhejeta21k0 = (TH1F*)h2CeffGforhejeta21k0->Clone(
"twod1");
2660 for (
int i = 1;
i <= nx;
i++) {
2661 double ccc1 = Sefz1->GetBinContent(
i,
j);
2664 Gforhejeta21k0->Fill(
i, ccc1);
2669 Gforhejeta21k0->SetMarkerStyle(20);
2670 Gforhejeta21k0->SetMarkerSize(0.4);
2671 Gforhejeta21k0->GetYaxis()->SetLabelSize(0.04);
2672 Gforhejeta21k0->SetXTitle(
"Gforhejeta21k0 \b");
2673 Gforhejeta21k0->SetMarkerColor(2);
2674 Gforhejeta21k0->SetLineColor(0);
2676 Gforhejeta21k0->Draw(
"Error");
2695 nx = Sefz1->GetXaxis()->GetNbins();
2696 ny = Sefz1->GetYaxis()->GetNbins();
2702 cout <<
"HE Gforhejeta22k ********************************************************************* jeta == 17 "
2705 TH1F* h2CeffGforhejeta22k0 =
new TH1F(
"h2CeffGforhejeta22k0",
"", maxbins, 1., maxbins + 1.);
2706 for (
int j = 1;
j <= ny;
j++) {
2707 int jeta = (
j - 1) / 18;
2709 int jphi = (
j - 1) - 18 * jeta + 1;
2712 TH1F* Gforhejeta22k0 = (TH1F*)h2CeffGforhejeta22k0->Clone(
"twod1");
2714 for (
int i = 1;
i <= nx;
i++) {
2715 double ccc1 = Sefz1->GetBinContent(
i,
j);
2718 Gforhejeta22k0->Fill(
i, ccc1);
2723 Gforhejeta22k0->SetMarkerStyle(20);
2724 Gforhejeta22k0->SetMarkerSize(0.4);
2725 Gforhejeta22k0->GetYaxis()->SetLabelSize(0.04);
2726 Gforhejeta22k0->SetXTitle(
"Gforhejeta22k0 \b");
2727 Gforhejeta22k0->SetMarkerColor(2);
2728 Gforhejeta22k0->SetLineColor(0);
2730 Gforhejeta22k0->Draw(
"Error");
2749 nx = Sefz1->GetXaxis()->GetNbins();
2750 ny = Sefz1->GetYaxis()->GetNbins();
2756 cout <<
"HE Gforhejeta23k ********************************************************************* jeta == 18 "
2759 TH1F* h2CeffGforhejeta23k0 =
new TH1F(
"h2CeffGforhejeta23k0",
"", maxbins, 1., maxbins + 1.);
2760 for (
int j = 1;
j <= ny;
j++) {
2761 int jeta = (
j - 1) / 18;
2763 int jphi = (
j - 1) - 18 * jeta + 1;
2766 TH1F* Gforhejeta23k0 = (TH1F*)h2CeffGforhejeta23k0->Clone(
"twod1");
2768 for (
int i = 1;
i <= nx;
i++) {
2769 double ccc1 = Sefz1->GetBinContent(
i,
j);
2772 Gforhejeta23k0->Fill(
i, ccc1);
2777 Gforhejeta23k0->SetMarkerStyle(20);
2778 Gforhejeta23k0->SetMarkerSize(0.4);
2779 Gforhejeta23k0->GetYaxis()->SetLabelSize(0.04);
2780 Gforhejeta23k0->SetXTitle(
"Gforhejeta23k0 \b");
2781 Gforhejeta23k0->SetMarkerColor(2);
2782 Gforhejeta23k0->SetLineColor(0);
2784 Gforhejeta23k0->Draw(
"Error");
2805 TH2F* Yefz1KKK = (TH2F*)hfile1->Get(
"h_2DsumADCAmplEtaPhiLs2");
2806 TH2F* Yefz1LLL = (TH2F*)hfile1->Get(
"h_2DsumADCAmplEtaPhiLs20");
2807 TH2F* Yefz1 = (TH2F*)Yefz1LLL->Clone(
"Yefz1");
2808 Yefz1->Divide(Yefz1KKK, Yefz1LLL, 1, 1,
"B");
2815 nx = Yefz1->GetXaxis()->GetNbins();
2816 ny = Yefz1->GetYaxis()->GetNbins();
2818 cout <<
"HO h_2DsumADCAmplEtaPhiLs0 nx= " << nx <<
" ny= " << ny << endl;
2820 TH1F* Yefw0 =
new TH1F(
"Yefw0",
"", 200, 0., 1000.);
2821 for (
int i = 1;
i <= nx;
i++) {
2823 for (
int j = 1;
j <= ny;
j++) {
2824 double ccc1 = Yefz1->GetBinContent(
i,
j);
2838 cout <<
"HO maxbinx= " << maxbinx <<
" maxbiny= " << maxbiny <<
" sumijho= " << sumijho << endl;
2839 Yefw0->SetMarkerStyle(20);
2840 Yefw0->SetMarkerSize(0.4);
2841 Yefw0->GetYaxis()->SetLabelSize(0.04);
2842 Yefw0->SetXTitle(
"<A>ijk = <A> averaged per events in k-th LS \b");
2843 Yefw0->SetYTitle(
" HO \b");
2844 Yefw0->SetMarkerColor(2);
2845 Yefw0->SetLineColor(0);
2851 Yefw0->Draw(
"Error");
2854 TH1F* Yefw =
new TH1F(
"Yefw",
"", maxbins, 1., maxbins + 1.);
2856 for (
int i = 1;
i <= nx;
i++) {
2859 for (
int j = 1;
j <= ny;
j++) {
2860 double ccc1 = Yefz1->GetBinContent(
i,
j);
2864 sumsum += ccc1 * maxbinx / sumijho;
2869 Yefw->Fill(
float(
i), sumsum);
2871 Yefw->SetMarkerStyle(20);
2872 Yefw->SetMarkerSize(0.4);
2873 Yefw->GetYaxis()->SetLabelSize(0.04);
2874 Yefw->SetMarkerColor(2);
2875 Yefw->SetLineColor(0);
2876 Yefw->SetXTitle(
" iLS \b");
2877 Yefw->SetYTitle(
" <A>k \b");
2882 Yefw->Draw(
"Error");
2886 TH1F* Yefw1 =
new TH1F(
"Yefw1",
"", 100, 0., 200.);
2887 for (
int i = 1;
i <= nx;
i++) {
2889 for (
int j = 1;
j <= ny;
j++) {
2890 double ccc1 = Yefz1->GetBinContent(
i,
j);
2903 cout <<
"HO maxbinx= " << maxbinx <<
" maxbiny= " << maxbiny << endl;
2904 Yefw1->SetMarkerStyle(20);
2905 Yefw1->SetMarkerSize(0.4);
2906 Yefw1->GetYaxis()->SetLabelSize(0.04);
2907 Yefw1->SetXTitle(
"<A>ijk = <A> averaged per events in k-th LS \b");
2908 Yefw1->SetMarkerColor(2);
2909 Yefw1->SetLineColor(0);
2915 Yefw1->Draw(
"Error");
2920 TH2F* Yefz4 =
new TH2F(
"Yefz4",
"", 22, -11., 11., 18, 0., 18.);
2922 for (
int i = 1;
i <= nx;
i++) {
2924 for (
int j = 1;
j <= ny;
j++) {
2925 double ccc1 = Yefz1->GetBinContent(
i,
j);
2929 int jeta = (
j - 1) / 18;
2930 int jphi = (
j - 1) - 18 * jeta + 1;
2934 Yefz4->Fill(jeta - 11, jphi - 1, ccc1 * maxbiny / sumijho);
2940 Yefz4->SetMarkerStyle(20);
2941 Yefz4->SetMarkerSize(0.4);
2942 Yefz4->GetZaxis()->SetLabelSize(0.08);
2943 Yefz4->SetXTitle(
"<A>ij #eta \b");
2944 Yefz4->SetYTitle(
" #phi \b");
2945 Yefz4->SetZTitle(
"<A>ij - All \b");
2946 Yefz4->SetMarkerColor(2);
2947 Yefz4->SetLineColor(2);
2948 Yefz4->Draw(
"COLZ");
2962 nx = Yefz1->GetXaxis()->GetNbins();
2963 ny = Yefz1->GetYaxis()->GetNbins();
2965 cout <<
"HO Yefk nx= " << nx <<
" ny= " << ny << endl;
2966 TH1F* Yefk0 =
new TH1F(
"Yefk0",
"", maxbins, 1., maxbins + 1.);
2967 TH1F* Yefk1 =
new TH1F(
"Yefk1",
"", maxbins, 1., maxbins + 1.);
2968 TH1F* Yefk2 =
new TH1F(
"Yefk2",
"", maxbins, 1., maxbins + 1.);
2970 for (
int i = 1;
i <= nx;
i++) {
2972 for (
int j = 1;
j <= ny;
j++) {
2973 double ccc1 = Yefz1->GetBinContent(
i,
j);
2975 int jeta = (
j - 1) / 18;
2976 int jphi = (
j - 1) - 18 * jeta + 1;
2979 if (jeta == 7 && jphi == 11)
2980 Yefk0->Fill(
i, ccc1);
2981 if (jeta == 10 && jphi == 11)
2982 Yefk1->Fill(
i, ccc1);
2983 if (jeta == 12 && jphi == 11)
2984 Yefk2->Fill(
i, ccc1);
2988 Yefk0->SetMarkerStyle(20);
2989 Yefk0->SetMarkerSize(0.4);
2990 Yefk0->GetYaxis()->SetLabelSize(0.04);
2991 Yefk0->SetXTitle(
"Yefk0 \b");
2992 Yefk0->SetMarkerColor(2);
2993 Yefk0->SetLineColor(
2995 Yefk0->Draw(
"Error");
2999 Yefk1->SetMarkerStyle(20);
3000 Yefk1->SetMarkerSize(0.4);
3001 Yefk1->GetYaxis()->SetLabelSize(0.04);
3002 Yefk1->SetXTitle(
"Yefk1 \b");
3003 Yefk1->SetMarkerColor(2);
3004 Yefk1->SetLineColor(
3006 Yefk1->Draw(
"Error");
3010 Yefk2->SetMarkerStyle(20);
3011 Yefk2->SetMarkerSize(0.4);
3012 Yefk2->GetYaxis()->SetLabelSize(0.04);
3013 Yefk2->SetXTitle(
"Yefk2 \b");
3014 Yefk2->SetMarkerColor(2);
3015 Yefk2->SetLineColor(
3017 Yefk2->Draw(
"Error");
3030 nx = Yefz1->GetXaxis()->GetNbins();
3031 ny = Yefz1->GetYaxis()->GetNbins();
3037 cout <<
"HO Gforhojeta0k ********************************************************************* jeta == 7 "
3040 TH1F* h2CeffGforhojeta0k0 =
new TH1F(
"h2CeffGforhojeta0k0",
"", maxbins, 1., maxbins + 1.);
3041 for (
int j = 1;
j <= ny;
j++) {
3042 int jeta = (
j - 1) / 18;
3044 int jphi = (
j - 1) - 18 * jeta + 1;
3047 TH1F* Gforhojeta0k0 = (TH1F*)h2CeffGforhojeta0k0->Clone(
"twod1");
3049 for (
int i = 1;
i <= nx;
i++) {
3050 double ccc1 = Yefz1->GetBinContent(
i,
j);
3053 Gforhojeta0k0->Fill(
i, ccc1);
3058 Gforhojeta0k0->SetMarkerStyle(20);
3059 Gforhojeta0k0->SetMarkerSize(0.4);
3060 Gforhojeta0k0->GetYaxis()->SetLabelSize(0.04);
3061 Gforhojeta0k0->SetXTitle(
"Gforhojeta0k0 \b");
3062 Gforhojeta0k0->SetMarkerColor(2);
3063 Gforhojeta0k0->SetLineColor(0);
3065 Gforhojeta0k0->Draw(
"Error");
3084 nx = Yefz1->GetXaxis()->GetNbins();
3085 ny = Yefz1->GetYaxis()->GetNbins();
3091 cout <<
"HO Gforhojeta1k ********************************************************************* jeta == 8 "
3094 TH1F* h2CeffGforhojeta1k0 =
new TH1F(
"h2CeffGforhojeta1k0",
"", maxbins, 1., maxbins + 1.);
3095 for (
int j = 1;
j <= ny;
j++) {
3096 int jeta = (
j - 1) / 18;
3098 int jphi = (
j - 1) - 18 * jeta + 1;
3101 TH1F* Gforhojeta1k0 = (TH1F*)h2CeffGforhojeta1k0->Clone(
"twod1");
3103 for (
int i = 1;
i <= nx;
i++) {
3104 double ccc1 = Yefz1->GetBinContent(
i,
j);
3107 Gforhojeta1k0->Fill(
i, ccc1);
3112 Gforhojeta1k0->SetMarkerStyle(20);
3113 Gforhojeta1k0->SetMarkerSize(0.4);
3114 Gforhojeta1k0->GetYaxis()->SetLabelSize(0.04);
3115 Gforhojeta1k0->SetXTitle(
"Gforhojeta1k0 \b");
3116 Gforhojeta1k0->SetMarkerColor(2);
3117 Gforhojeta1k0->SetLineColor(0);
3119 Gforhojeta1k0->Draw(
"Error");
3138 nx = Yefz1->GetXaxis()->GetNbins();
3139 ny = Yefz1->GetYaxis()->GetNbins();
3145 cout <<
"HO Gforhojeta2k ********************************************************************* jeta == 9 "
3148 TH1F* h2CeffGforhojeta2k0 =
new TH1F(
"h2CeffGforhojeta2k0",
"", maxbins, 1., maxbins + 1.);
3149 for (
int j = 1;
j <= ny;
j++) {
3150 int jeta = (
j - 1) / 18;
3152 int jphi = (
j - 1) - 18 * jeta + 1;
3155 TH1F* Gforhojeta2k0 = (TH1F*)h2CeffGforhojeta2k0->Clone(
"twod1");
3157 for (
int i = 1;
i <= nx;
i++) {
3158 double ccc1 = Yefz1->GetBinContent(
i,
j);
3161 Gforhojeta2k0->Fill(
i, ccc1);
3166 Gforhojeta2k0->SetMarkerStyle(20);
3167 Gforhojeta2k0->SetMarkerSize(0.4);
3168 Gforhojeta2k0->GetYaxis()->SetLabelSize(0.04);
3169 Gforhojeta2k0->SetXTitle(
"Gforhojeta2k0 \b");
3170 Gforhojeta2k0->SetMarkerColor(2);
3171 Gforhojeta2k0->SetLineColor(0);
3173 Gforhojeta2k0->Draw(
"Error");
3192 nx = Yefz1->GetXaxis()->GetNbins();
3193 ny = Yefz1->GetYaxis()->GetNbins();
3199 cout <<
"HO Gforhojeta3k ********************************************************************* jeta == 10 "
3202 TH1F* h2CeffGforhojeta3k0 =
new TH1F(
"h2CeffGforhojeta3k0",
"", maxbins, 1., maxbins + 1.);
3203 for (
int j = 1;
j <= ny;
j++) {
3204 int jeta = (
j - 1) / 18;
3206 int jphi = (
j - 1) - 18 * jeta + 1;
3209 TH1F* Gforhojeta3k0 = (TH1F*)h2CeffGforhojeta3k0->Clone(
"twod1");
3211 for (
int i = 1;
i <= nx;
i++) {
3212 double ccc1 = Yefz1->GetBinContent(
i,
j);
3215 Gforhojeta3k0->Fill(
i, ccc1);
3220 Gforhojeta3k0->SetMarkerStyle(20);
3221 Gforhojeta3k0->SetMarkerSize(0.4);
3222 Gforhojeta3k0->GetYaxis()->SetLabelSize(0.04);
3223 Gforhojeta3k0->SetXTitle(
"Gforhojeta3k0 \b");
3224 Gforhojeta3k0->SetMarkerColor(2);
3225 Gforhojeta3k0->SetLineColor(0);
3227 Gforhojeta3k0->Draw(
"Error");
3246 nx = Yefz1->GetXaxis()->GetNbins();
3247 ny = Yefz1->GetYaxis()->GetNbins();
3253 cout <<
"HO Gforhojeta18k ********************************************************************* jeta == 11 "
3256 TH1F* h2CeffGforhojeta18k0 =
new TH1F(
"h2CeffGforhojeta18k0",
"", maxbins, 1., maxbins + 1.);
3257 for (
int j = 1;
j <= ny;
j++) {
3258 int jeta = (
j - 1) / 18;
3260 int jphi = (
j - 1) - 18 * jeta + 1;
3263 TH1F* Gforhojeta18k0 = (TH1F*)h2CeffGforhojeta18k0->Clone(
"twod1");
3265 for (
int i = 1;
i <= nx;
i++) {
3266 double ccc1 = Yefz1->GetBinContent(
i,
j);
3269 Gforhojeta18k0->Fill(
i, ccc1);
3274 Gforhojeta18k0->SetMarkerStyle(20);
3275 Gforhojeta18k0->SetMarkerSize(0.4);
3276 Gforhojeta18k0->GetYaxis()->SetLabelSize(0.04);
3277 Gforhojeta18k0->SetXTitle(
"Gforhojeta18k0 \b");
3278 Gforhojeta18k0->SetMarkerColor(2);
3279 Gforhojeta18k0->SetLineColor(0);
3281 Gforhojeta18k0->Draw(
"Error");
3300 nx = Yefz1->GetXaxis()->GetNbins();
3301 ny = Yefz1->GetYaxis()->GetNbins();
3307 cout <<
"HO Gforhojeta19k ********************************************************************* jeta == 12 "
3310 TH1F* h2CeffGforhojeta19k0 =
new TH1F(
"h2CeffGforhojeta19k0",
"", maxbins, 1., maxbins + 1.);
3311 for (
int j = 1;
j <= ny;
j++) {
3312 int jeta = (
j - 1) / 18;
3314 int jphi = (
j - 1) - 18 * jeta + 1;
3317 TH1F* Gforhojeta19k0 = (TH1F*)h2CeffGforhojeta19k0->Clone(
"twod1");
3319 for (
int i = 1;
i <= nx;
i++) {
3320 double ccc1 = Yefz1->GetBinContent(
i,
j);
3323 Gforhojeta19k0->Fill(
i, ccc1);
3328 Gforhojeta19k0->SetMarkerStyle(20);
3329 Gforhojeta19k0->SetMarkerSize(0.4);
3330 Gforhojeta19k0->GetYaxis()->SetLabelSize(0.04);
3331 Gforhojeta19k0->SetXTitle(
"Gforhojeta19k0 \b");
3332 Gforhojeta19k0->SetMarkerColor(2);
3333 Gforhojeta19k0->SetLineColor(0);
3335 Gforhojeta19k0->Draw(
"Error");
3354 nx = Yefz1->GetXaxis()->GetNbins();
3355 ny = Yefz1->GetYaxis()->GetNbins();
3361 cout <<
"HO Gforhojeta20k ********************************************************************* jeta == 13 "
3364 TH1F* h2CeffGforhojeta20k0 =
new TH1F(
"h2CeffGforhojeta20k0",
"", maxbins, 1., maxbins + 1.);
3365 for (
int j = 1;
j <= ny;
j++) {
3366 int jeta = (
j - 1) / 18;
3368 int jphi = (
j - 1) - 18 * jeta + 1;
3371 TH1F* Gforhojeta20k0 = (TH1F*)h2CeffGforhojeta20k0->Clone(
"twod1");
3373 for (
int i = 1;
i <= nx;
i++) {
3374 double ccc1 = Yefz1->GetBinContent(
i,
j);
3377 Gforhojeta20k0->Fill(
i, ccc1);
3382 Gforhojeta20k0->SetMarkerStyle(20);
3383 Gforhojeta20k0->SetMarkerSize(0.4);
3384 Gforhojeta20k0->GetYaxis()->SetLabelSize(0.04);
3385 Gforhojeta20k0->SetXTitle(
"Gforhojeta20k0 \b");
3386 Gforhojeta20k0->SetMarkerColor(2);
3387 Gforhojeta20k0->SetLineColor(0);
3389 Gforhojeta20k0->Draw(
"Error");
3408 nx = Yefz1->GetXaxis()->GetNbins();
3409 ny = Yefz1->GetYaxis()->GetNbins();
3415 cout <<
"HO Gforhojeta21k ********************************************************************* jeta == 14 "
3418 TH1F* h2CeffGforhojeta21k0 =
new TH1F(
"h2CeffGforhojeta21k0",
"", maxbins, 1., maxbins + 1.);
3419 for (
int j = 1;
j <= ny;
j++) {
3420 int jeta = (
j - 1) / 18;
3422 int jphi = (
j - 1) - 18 * jeta + 1;
3425 TH1F* Gforhojeta21k0 = (TH1F*)h2CeffGforhojeta21k0->Clone(
"twod1");
3427 for (
int i = 1;
i <= nx;
i++) {
3428 double ccc1 = Yefz1->GetBinContent(
i,
j);
3431 Gforhojeta21k0->Fill(
i, ccc1);
3436 Gforhojeta21k0->SetMarkerStyle(20);
3437 Gforhojeta21k0->SetMarkerSize(0.4);
3438 Gforhojeta21k0->GetYaxis()->SetLabelSize(0.04);
3439 Gforhojeta21k0->SetXTitle(
"Gforhojeta21k0 \b");
3440 Gforhojeta21k0->SetMarkerColor(2);
3441 Gforhojeta21k0->SetLineColor(0);
3443 Gforhojeta21k0->Draw(
"Error");
3464 TH2F* Gefz1KKK = (TH2F*)hfile1->Get(
"h_2DsumADCAmplEtaPhiLs3");
3465 TH2F* Gefz1LLL = (TH2F*)hfile1->Get(
"h_2DsumADCAmplEtaPhiLs30");
3466 TH2F* Gefz1 = (TH2F*)Gefz1LLL->Clone(
"Gefz1");
3467 Gefz1->Divide(Gefz1KKK, Gefz1LLL, 1, 1,
"B");
3474 nx = Gefz1->GetXaxis()->GetNbins();
3475 ny = Gefz1->GetYaxis()->GetNbins();
3477 cout <<
"HF h_2DsumADCAmplEtaPhiLs0 nx= " << nx <<
" ny= " << ny << endl;
3479 TH1F* Gefw0 =
new TH1F(
"Gefw0",
"", 250, 0., 1500.);
3480 for (
int i = 1;
i <= nx;
i++) {
3482 for (
int j = 1;
j <= ny;
j++) {
3483 double ccc1 = Gefz1->GetBinContent(
i,
j);
3497 cout <<
"HF maxbinx= " << maxbinx <<
" maxbiny= " << maxbiny <<
" sumijhf= " << sumijhf << endl;
3498 Gefw0->SetMarkerStyle(20);
3499 Gefw0->SetMarkerSize(0.4);
3500 Gefw0->GetYaxis()->SetLabelSize(0.04);
3501 Gefw0->SetXTitle(
"<A>ijk = <A> averaged per events in k-th LS \b");
3502 Gefw0->SetYTitle(
" HF \b");
3503 Gefw0->SetMarkerColor(2);
3504 Gefw0->SetLineColor(0);
3510 Gefw0->Draw(
"Error");
3513 TH1F* Gefw =
new TH1F(
"Gefw",
"", maxbins, 1., maxbins + 1.);
3515 for (
int i = 1;
i <= nx;
i++) {
3517 for (
int j = 1;
j <= ny;
j++) {
3518 double ccc1 = Gefz1->GetBinContent(
i,
j);
3522 Gefw->Fill(
float(
i), ccc1* maxbinx / sumijhf);
3526 Gefw->SetMarkerStyle(20);
3527 Gefw->SetMarkerSize(0.4);
3528 Gefw->GetYaxis()->SetLabelSize(0.04);
3529 Gefw->SetMarkerColor(2);
3530 Gefw->SetLineColor(0);
3531 Gefw->SetXTitle(
" iLS \b");
3532 Gefw->SetYTitle(
" <A>k \b");
3537 Gefw->Draw(
"Error");
3541 TH1F* Gefw1 =
new TH1F(
"Gefw1",
"", 150, 0., 500.);
3542 for (
int i = 1;
i <= nx;
i++) {
3544 for (
int j = 1;
j <= ny;
j++) {
3545 double ccc1 = Gefz1->GetBinContent(
i,
j);
3558 cout <<
"HF maxbinx= " << maxbinx <<
" maxbiny= " << maxbiny << endl;
3559 Gefw1->SetMarkerStyle(20);
3560 Gefw1->SetMarkerSize(0.4);
3561 Gefw1->GetYaxis()->SetLabelSize(0.04);
3562 Gefw1->SetXTitle(
"<A>ijk = <A> averaged per events in k-th LS \b");
3563 Gefw1->SetMarkerColor(2);
3564 Gefw1->SetLineColor(0);
3570 Gefw1->Draw(
"Error");
3575 TH2F* Gefz4 =
new TH2F(
"Gefz4",
"", 22, -11., 11., 18, 0., 18.);
3577 for (
int i = 1;
i <= nx;
i++) {
3579 for (
int j = 1;
j <= ny;
j++) {
3580 double ccc1 = Gefz1->GetBinContent(
i,
j);
3584 int jeta = (
j - 1) / 18;
3585 int jphi = (
j - 1) - 18 * jeta + 1;
3588 Gefz4->Fill(jeta - 11, jphi - 1, ccc1 * maxbiny / sumijhf);
3595 Gefz4->SetMarkerStyle(20);
3596 Gefz4->SetMarkerSize(0.4);
3597 Gefz4->GetZaxis()->SetLabelSize(0.08);
3598 Gefz4->SetXTitle(
"<A>_RBX #eta \b");
3599 Gefz4->SetYTitle(
" #phi \b");
3600 Gefz4->SetZTitle(
"<A>_RBX - All \b");
3601 Gefz4->SetMarkerColor(2);
3602 Gefz4->SetLineColor(2);
3603 Gefz4->Draw(
"COLZ");
3617 nx = Gefz1->GetXaxis()->GetNbins();
3618 ny = Gefz1->GetYaxis()->GetNbins();
3620 cout <<
"HF Gefk nx= " << nx <<
" ny= " << ny << endl;
3621 TH1F* Gefk0 =
new TH1F(
"Gefk0",
"", maxbins, 1., maxbins + 1.);
3622 TH1F* Gefk1 =
new TH1F(
"Gefk1",
"", maxbins, 1., maxbins + 1.);
3623 TH1F* Gefk2 =
new TH1F(
"Gefk2",
"", maxbins, 1., maxbins + 1.);
3625 for (
int i = 1;
i <= nx;
i++) {
3627 for (
int j = 1;
j <= ny;
j++) {
3628 double ccc1 = Gefz1->GetBinContent(
i,
j);
3630 int jeta = (
j - 1) / 18;
3631 int jphi = (
j - 1) - 18 * jeta + 1;
3634 if (jeta == 1 && jphi == 11)
3635 Gefk0->Fill(
i, ccc1);
3636 if (jeta == 2 && jphi == 11)
3637 Gefk1->Fill(
i, ccc1);
3638 if (jeta == 3 && jphi == 11)
3639 Gefk2->Fill(
i, ccc1);
3643 Gefk0->SetMarkerStyle(20);
3644 Gefk0->SetMarkerSize(0.4);
3645 Gefk0->GetYaxis()->SetLabelSize(0.04);
3646 Gefk0->SetXTitle(
"Gefk0 \b");
3647 Gefk0->SetMarkerColor(2);
3648 Gefk0->SetLineColor(
3650 Gefk0->Draw(
"Error");
3654 Gefk1->SetMarkerStyle(20);
3655 Gefk1->SetMarkerSize(0.4);
3656 Gefk1->GetYaxis()->SetLabelSize(0.04);
3657 Gefk1->SetXTitle(
"Gefk1 \b");
3658 Gefk1->SetMarkerColor(2);
3659 Gefk1->SetLineColor(
3661 Gefk1->Draw(
"Error");
3665 Gefk2->SetMarkerStyle(20);
3666 Gefk2->SetMarkerSize(0.4);
3667 Gefk2->GetYaxis()->SetLabelSize(0.04);
3668 Gefk2->SetXTitle(
"Gefk2 \b");
3669 Gefk2->SetMarkerColor(2);
3670 Gefk2->SetLineColor(
3672 Gefk2->Draw(
"Error");
3686 nx = Gefz1->GetXaxis()->GetNbins();
3687 ny = Gefz1->GetYaxis()->GetNbins();
3689 cout <<
"HF Gefh nx= " << nx <<
" ny= " << ny << endl;
3690 TH1F* Gefh0 =
new TH1F(
"Gefh0",
"", maxbins, 1., maxbins + 1.);
3691 TH1F* Gefh1 =
new TH1F(
"Gefh1",
"", maxbins, 1., maxbins + 1.);
3692 TH1F* Gefh2 =
new TH1F(
"Gefh2",
"", maxbins, 1., maxbins + 1.);
3696 for (
int j = 1;
j <= ny;
j++) {
3697 int jeta = (
j - 1) / 18;
3698 int jphi = (
j - 1) - 18 * jeta + 1;
3706 for (
int i = 1;
i <= nx;
i++) {
3707 double ccc1 = Gefz1->GetBinContent(
i,
j);
3718 for (
int i = 1;
i <= nx;
i++) {
3719 double ccc1 = Gefz1->GetBinContent(
i,
j);
3721 ssumj += (ccc1 - meanj) * (ccc1 - meanj);
3724 sigmaj =
sqrt(ssumj / nj);
3726 for (
int i = 1;
i <= nx;
i++) {
3727 double ccc1 = Gefz1->GetBinContent(
i,
j);
3729 double dif3rmsMIN = meanj - 3 * sigmaj;
3730 if (dif3rmsMIN < 0.)
3732 double dif3rmsMAX = meanj + 3 * sigmaj;
3733 if (jeta == 1 && jphi == 11 && (ccc1 < dif3rmsMIN || ccc1 > dif3rmsMAX))
3734 Gefh0->Fill(
i, ccc1);
3735 if (jeta == 2 && jphi == 11 && (ccc1 < dif3rmsMIN || ccc1 > dif3rmsMAX))
3736 Gefh1->Fill(
i, ccc1);
3737 if (jeta == 3 && jphi == 11 && (ccc1 < dif3rmsMIN || ccc1 > dif3rmsMAX))
3738 Gefh2->Fill(
i, ccc1);
3742 cout <<
"HF 45 nhistohf = " << nhistohf <<
" nlsohf = " << nlsohf << endl;
3744 Gefh0->SetMarkerStyle(20);
3745 Gefh0->SetMarkerSize(0.4);
3746 Gefh0->GetYaxis()->SetLabelSize(0.04);
3747 Gefh0->SetXTitle(
"Gefh0 \b");
3748 Gefh0->SetMarkerColor(2);
3749 Gefh0->SetLineColor(
3751 Gefh0->Draw(
"Error");
3754 Gefh1->SetMarkerStyle(20);
3755 Gefh1->SetMarkerSize(0.4);
3756 Gefh1->GetYaxis()->SetLabelSize(0.04);
3757 Gefh1->SetXTitle(
"Gefh1 \b");
3758 Gefh1->SetMarkerColor(2);
3759 Gefh1->SetLineColor(
3761 Gefh1->Draw(
"Error");
3764 Gefh2->SetMarkerStyle(20);
3765 Gefh2->SetMarkerSize(0.4);
3766 Gefh2->GetYaxis()->SetLabelSize(0.04);
3767 Gefh2->SetXTitle(
"Gefh2 \b");
3768 Gefh2->SetMarkerColor(2);
3769 Gefh2->SetLineColor(
3771 Gefh2->Draw(
"Error");
3783 nx = Gefz1->GetXaxis()->GetNbins();
3784 ny = Gefz1->GetYaxis()->GetNbins();
3789 cout <<
"HF Gforhfjeta0k nx= " << nx <<
" ny= " << ny <<
" nhistohf= " << nhistohf << endl;
3791 cout <<
"HF Gforhfjeta0k ********************************************************************* jeta == 0 "
3794 TH1F* h2CeffGforhfjeta0k0 =
new TH1F(
"h2CeffGforhfjeta0k0",
"", maxbins, 1., maxbins + 1.);
3795 for (
int j = 1;
j <= ny;
j++) {
3796 int jeta = (
j - 1) / 18;
3798 int jphi = (
j - 1) - 18 * jeta + 1;
3801 TH1F* Gforhfjeta0k0 = (TH1F*)h2CeffGforhfjeta0k0->Clone(
"twod1");
3803 for (
int i = 1;
i <= nx;
i++) {
3804 double ccc1 = Gefz1->GetBinContent(
i,
j);
3807 Gforhfjeta0k0->Fill(
i, ccc1);
3812 Gforhfjeta0k0->SetMarkerStyle(20);
3813 Gforhfjeta0k0->SetMarkerSize(0.4);
3814 Gforhfjeta0k0->GetYaxis()->SetLabelSize(0.04);
3815 Gforhfjeta0k0->SetXTitle(
"Gforhfjeta0k0 \b");
3816 Gforhfjeta0k0->SetMarkerColor(2);
3817 Gforhfjeta0k0->SetLineColor(0);
3819 Gforhfjeta0k0->Draw(
"Error");
3838 nx = Gefz1->GetXaxis()->GetNbins();
3839 ny = Gefz1->GetYaxis()->GetNbins();
3845 cout <<
"HF Gforhfjeta1k ********************************************************************* jeta == 1 "
3848 TH1F* h2CeffGforhfjeta1k0 =
new TH1F(
"h2CeffGforhfjeta1k0",
"", maxbins, 1., maxbins + 1.);
3849 for (
int j = 1;
j <= ny;
j++) {
3850 int jeta = (
j - 1) / 18;
3852 int jphi = (
j - 1) - 18 * jeta + 1;
3855 TH1F* Gforhfjeta1k0 = (TH1F*)h2CeffGforhfjeta1k0->Clone(
"twod1");
3857 for (
int i = 1;
i <= nx;
i++) {
3858 double ccc1 = Gefz1->GetBinContent(
i,
j);
3861 Gforhfjeta1k0->Fill(
i, ccc1);
3866 Gforhfjeta1k0->SetMarkerStyle(20);
3867 Gforhfjeta1k0->SetMarkerSize(0.4);
3868 Gforhfjeta1k0->GetYaxis()->SetLabelSize(0.04);
3869 Gforhfjeta1k0->SetXTitle(
"Gforhfjeta1k0 \b");
3870 Gforhfjeta1k0->SetMarkerColor(2);
3871 Gforhfjeta1k0->SetLineColor(0);
3873 Gforhfjeta1k0->Draw(
"Error");
3892 nx = Gefz1->GetXaxis()->GetNbins();
3893 ny = Gefz1->GetYaxis()->GetNbins();
3899 cout <<
"HF Gforhfjeta2k ********************************************************************* jeta == 2 "
3902 TH1F* h2CeffGforhfjeta2k0 =
new TH1F(
"h2CeffGforhfjeta2k0",
"", maxbins, 1., maxbins + 1.);
3903 for (
int j = 1;
j <= ny;
j++) {
3904 int jeta = (
j - 1) / 18;
3906 int jphi = (
j - 1) - 18 * jeta + 1;
3909 TH1F* Gforhfjeta2k0 = (TH1F*)h2CeffGforhfjeta2k0->Clone(
"twod1");
3911 for (
int i = 1;
i <= nx;
i++) {
3912 double ccc1 = Gefz1->GetBinContent(
i,
j);
3915 Gforhfjeta2k0->Fill(
i, ccc1);
3920 Gforhfjeta2k0->SetMarkerStyle(20);
3921 Gforhfjeta2k0->SetMarkerSize(0.4);
3922 Gforhfjeta2k0->GetYaxis()->SetLabelSize(0.04);
3923 Gforhfjeta2k0->SetXTitle(
"Gforhfjeta2k0 \b");
3924 Gforhfjeta2k0->SetMarkerColor(2);
3925 Gforhfjeta2k0->SetLineColor(0);
3927 Gforhfjeta2k0->Draw(
"Error");
3946 nx = Gefz1->GetXaxis()->GetNbins();
3947 ny = Gefz1->GetYaxis()->GetNbins();
3953 cout <<
"HF Gforhfjeta3k ********************************************************************* jeta == 3 "
3956 TH1F* h2CeffGforhfjeta3k0 =
new TH1F(
"h2CeffGforhfjeta3k0",
"", maxbins, 1., maxbins + 1.);
3957 for (
int j = 1;
j <= ny;
j++) {
3958 int jeta = (
j - 1) / 18;
3960 int jphi = (
j - 1) - 18 * jeta + 1;
3963 TH1F* Gforhfjeta3k0 = (TH1F*)h2CeffGforhfjeta3k0->Clone(
"twod1");
3965 for (
int i = 1;
i <= nx;
i++) {
3966 double ccc1 = Gefz1->GetBinContent(
i,
j);
3969 Gforhfjeta3k0->Fill(
i, ccc1);
3974 Gforhfjeta3k0->SetMarkerStyle(20);
3975 Gforhfjeta3k0->SetMarkerSize(0.4);
3976 Gforhfjeta3k0->GetYaxis()->SetLabelSize(0.04);
3977 Gforhfjeta3k0->SetXTitle(
"Gforhfjeta3k0 \b");
3978 Gforhfjeta3k0->SetMarkerColor(2);
3979 Gforhfjeta3k0->SetLineColor(0);
3981 Gforhfjeta3k0->Draw(
"Error");
4000 nx = Gefz1->GetXaxis()->GetNbins();
4001 ny = Gefz1->GetYaxis()->GetNbins();
4007 cout <<
"HF Gforhfjeta18k ********************************************************************* jeta == 18 "
4010 TH1F* h2CeffGforhfjeta18k0 =
new TH1F(
"h2CeffGforhfjeta18k0",
"", maxbins, 1., maxbins + 1.);
4011 for (
int j = 1;
j <= ny;
j++) {
4012 int jeta = (
j - 1) / 18;
4014 int jphi = (
j - 1) - 18 * jeta + 1;
4017 TH1F* Gforhfjeta18k0 = (TH1F*)h2CeffGforhfjeta18k0->Clone(
"twod1");
4019 for (
int i = 1;
i <= nx;
i++) {
4020 double ccc1 = Gefz1->GetBinContent(
i,
j);
4023 Gforhfjeta18k0->Fill(
i, ccc1);
4028 Gforhfjeta18k0->SetMarkerStyle(20);
4029 Gforhfjeta18k0->SetMarkerSize(0.4);
4030 Gforhfjeta18k0->GetYaxis()->SetLabelSize(0.04);
4031 Gforhfjeta18k0->SetXTitle(
"Gforhfjeta18k0 \b");
4032 Gforhfjeta18k0->SetMarkerColor(2);
4033 Gforhfjeta18k0->SetLineColor(0);
4035 Gforhfjeta18k0->Draw(
"Error");
4054 nx = Gefz1->GetXaxis()->GetNbins();
4055 ny = Gefz1->GetYaxis()->GetNbins();
4061 cout <<
"HF Gforhfjeta19k ********************************************************************* jeta == 19 "
4064 TH1F* h2CeffGforhfjeta19k0 =
new TH1F(
"h2CeffGforhfjeta19k0",
"", maxbins, 1., maxbins + 1.);
4065 for (
int j = 1;
j <= ny;
j++) {
4066 int jeta = (
j - 1) / 18;
4068 int jphi = (
j - 1) - 18 * jeta + 1;
4071 TH1F* Gforhfjeta19k0 = (TH1F*)h2CeffGforhfjeta19k0->Clone(
"twod1");
4073 for (
int i = 1;
i <= nx;
i++) {
4074 double ccc1 = Gefz1->GetBinContent(
i,
j);
4077 Gforhfjeta19k0->Fill(
i, ccc1);
4082 Gforhfjeta19k0->SetMarkerStyle(20);
4083 Gforhfjeta19k0->SetMarkerSize(0.4);
4084 Gforhfjeta19k0->GetYaxis()->SetLabelSize(0.04);
4085 Gforhfjeta19k0->SetXTitle(
"Gforhfjeta19k0 \b");
4086 Gforhfjeta19k0->SetMarkerColor(2);
4087 Gforhfjeta19k0->SetLineColor(0);
4089 Gforhfjeta19k0->Draw(
"Error");
4108 nx = Gefz1->GetXaxis()->GetNbins();
4109 ny = Gefz1->GetYaxis()->GetNbins();
4115 cout <<
"HF Gforhfjeta20k ********************************************************************* jeta == 20 "
4117 TH1F* h2CeffGforhfjeta20k0 =
new TH1F(
"h2CeffGforhfjeta20k0",
"", maxbins, 1., maxbins + 1.);
4119 for (
int j = 1;
j <= ny;
j++) {
4120 int jeta = (
j - 1) / 18;
4122 int jphi = (
j - 1) - 18 * jeta + 1;
4125 TH1F* Gforhfjeta20k0 = (TH1F*)h2CeffGforhfjeta20k0->Clone(
"twod1");
4127 for (
int i = 1;
i <= nx;
i++) {
4128 double ccc1 = Gefz1->GetBinContent(
i,
j);
4131 Gforhfjeta20k0->Fill(
i, ccc1);
4136 Gforhfjeta20k0->SetMarkerStyle(20);
4137 Gforhfjeta20k0->SetMarkerSize(0.4);
4138 Gforhfjeta20k0->GetYaxis()->SetLabelSize(0.04);
4139 Gforhfjeta20k0->SetXTitle(
"Gforhfjeta20k0 \b");
4140 Gforhfjeta20k0->SetMarkerColor(2);
4141 Gforhfjeta20k0->SetLineColor(0);
4144 Gforhfjeta20k0->Draw(
"Error");
4162 nx = Gefz1->GetXaxis()->GetNbins();
4163 ny = Gefz1->GetYaxis()->GetNbins();
4169 cout <<
"HF Gforhfjeta21k ********************************************************************* jeta == 21 "
4173 TH1F* h2CeffGforhfjeta21k0 =
new TH1F(
"h2CeffGforhfjeta21k0",
"", maxbins, 1., maxbins + 1.);
4174 for (
int j = 1;
j <= ny;
j++) {
4175 int jeta = (
j - 1) / 18;
4177 int jphi = (
j - 1) - 18 * jeta + 1;
4180 TH1F* Gforhfjeta21k0 = (TH1F*)h2CeffGforhfjeta21k0->Clone(
"twod1");
4187 for (
int i = 1;
i <= nx;
i++) {
4188 double ccc1 = Gefz1->GetBinContent(
i,
j);
4191 Gforhfjeta21k0->Fill(
i, ccc1);
4196 Gforhfjeta21k0->SetMarkerStyle(20);
4197 Gforhfjeta21k0->SetMarkerSize(0.4);
4198 Gforhfjeta21k0->GetYaxis()->SetLabelSize(0.04);
4199 Gforhfjeta21k0->SetXTitle(
"Gforhfjeta21k0 \b");
4200 Gforhfjeta21k0->SetMarkerColor(2);
4201 Gforhfjeta21k0->SetLineColor(0);
4205 Gforhfjeta21k0->Draw(
"Error");
4275 double alexhf[njeta][njphi][nx];
4276 for (
int i = 0;
i < nx;
i++) {
4277 for (
int jeta = 0; jeta < njeta; jeta++) {
4278 for (
int jphi = 0; jphi < njphi; jphi++) {
4279 alexhf[jeta][jphi][
i] = 0.;
4283 for (
int j = 1;
j <= ny;
j++) {
4284 int jeta = (
j - 1) / njphi;
4285 if (jeta < 4 || jeta > 17) {
4286 int jphi = (
j - 1) - njphi * jeta;
4289 for (
int i = 1;
i <= nx;
i++) {
4290 double ccc1 = Gefz1->GetBinContent(
i,
j);
4292 alexhf[jeta][jphi][
i - 1] = ccc1;
4307 int kcountHFnegativedirection1 = 1;
4309 TH1F* h2CeffHFnegativedirection1 =
new TH1F(
"h2CeffHFnegativedirection1",
"", maxbins, 1., maxbins + 1.);
4310 for (
int jeta = 0; jeta < njeta; jeta++) {
4314 for (
int jphi = 0; jphi < 6; jphi++) {
4317 TH1F* HFnegativedirection1 = (TH1F*)h2CeffHFnegativedirection1->Clone(
"twod1");
4318 for (
int i = 0;
i < nx;
i++) {
4319 double ccc1 = alexhf[jeta][jphi][
i];
4321 HFnegativedirection1->Fill(
i, ccc1);
4325 c1->cd(kcountHFnegativedirection1);
4326 HFnegativedirection1->SetMarkerStyle(20);
4327 HFnegativedirection1->SetMarkerSize(0.4);
4328 HFnegativedirection1->GetYaxis()->SetLabelSize(0.04);
4329 HFnegativedirection1->SetXTitle(
"HFnegativedirection1 \b");
4330 HFnegativedirection1->SetMarkerColor(2);
4331 HFnegativedirection1->SetLineColor(0);
4335 HFnegativedirection1->Draw(
"Error");
4336 kcountHFnegativedirection1++;
4337 if (kcountHFnegativedirection1 > 24)
4352 int kcountHFnegativedirection2 = 1;
4354 TH1F* h2CeffHFnegativedirection2 =
new TH1F(
"h2CeffHFnegativedirection2",
"", maxbins, 1., maxbins + 1.);
4355 for (
int jeta = 0; jeta < njeta; jeta++) {
4359 for (
int jphi = 6; jphi < 12; jphi++) {
4361 TH1F* HFnegativedirection2 = (TH1F*)h2CeffHFnegativedirection2->Clone(
"twod1");
4362 for (
int i = 0;
i < nx;
i++) {
4363 double ccc1 = alexhf[jeta][jphi][
i];
4365 HFnegativedirection2->Fill(
i, ccc1);
4369 c1->cd(kcountHFnegativedirection2);
4370 HFnegativedirection2->SetMarkerStyle(20);
4371 HFnegativedirection2->SetMarkerSize(0.4);
4372 HFnegativedirection2->GetYaxis()->SetLabelSize(0.04);
4373 HFnegativedirection2->SetXTitle(
"HFnegativedirection2 \b");
4374 HFnegativedirection2->SetMarkerColor(2);
4375 HFnegativedirection2->SetLineColor(0);
4379 HFnegativedirection2->Draw(
"Error");
4380 kcountHFnegativedirection2++;
4381 if (kcountHFnegativedirection2 > 24)
4396 int kcountHFnegativedirection3 = 1;
4398 TH1F* h2CeffHFnegativedirection3 =
new TH1F(
"h2CeffHFnegativedirection3",
"", maxbins, 1., maxbins + 1.);
4399 for (
int jeta = 0; jeta < njeta; jeta++) {
4403 for (
int jphi = 12; jphi < 18; jphi++) {
4405 TH1F* HFnegativedirection3 = (TH1F*)h2CeffHFnegativedirection3->Clone(
"twod1");
4406 for (
int i = 0;
i < nx;
i++) {
4407 double ccc1 = alexhf[jeta][jphi][
i];
4409 HFnegativedirection3->Fill(
i, ccc1);
4413 c1->cd(kcountHFnegativedirection3);
4414 HFnegativedirection3->SetMarkerStyle(20);
4415 HFnegativedirection3->SetMarkerSize(0.4);
4416 HFnegativedirection3->GetYaxis()->SetLabelSize(0.04);
4417 HFnegativedirection3->SetXTitle(
"HFnegativedirection3 \b");
4418 HFnegativedirection3->SetMarkerColor(2);
4419 HFnegativedirection3->SetLineColor(0);
4423 HFnegativedirection3->Draw(
"Error");
4424 kcountHFnegativedirection3++;
4425 if (kcountHFnegativedirection3 > 24)
4440 int kcountHFpositivedirection1 = 1;
4442 TH1F* h2CeffHFpositivedirection1 =
new TH1F(
"h2CeffHFpositivedirection1",
"", maxbins, 1., maxbins + 1.);
4443 for (
int jeta = 0; jeta < njeta; jeta++) {
4447 for (
int jphi = 0; jphi < 6; jphi++) {
4450 TH1F* HFpositivedirection1 = (TH1F*)h2CeffHFpositivedirection1->Clone(
"twod1");
4451 for (
int i = 0;
i < nx;
i++) {
4452 double ccc1 = alexhf[jeta][jphi][
i];
4454 HFpositivedirection1->Fill(
i, ccc1);
4458 c1->cd(kcountHFpositivedirection1);
4459 HFpositivedirection1->SetMarkerStyle(20);
4460 HFpositivedirection1->SetMarkerSize(0.4);
4461 HFpositivedirection1->GetYaxis()->SetLabelSize(0.04);
4462 HFpositivedirection1->SetXTitle(
"HFpositivedirection1 \b");
4463 HFpositivedirection1->SetMarkerColor(2);
4464 HFpositivedirection1->SetLineColor(0);
4468 HFpositivedirection1->Draw(
"Error");
4469 kcountHFpositivedirection1++;
4470 if (kcountHFpositivedirection1 > 24)
4485 int kcountHFpositivedirection2 = 1;
4487 TH1F* h2CeffHFpositivedirection2 =
new TH1F(
"h2CeffHFpositivedirection2",
"", maxbins, 1., maxbins + 1.);
4488 for (
int jeta = 0; jeta < njeta; jeta++) {
4492 for (
int jphi = 6; jphi < 12; jphi++) {
4494 TH1F* HFpositivedirection2 = (TH1F*)h2CeffHFpositivedirection2->Clone(
"twod1");
4495 for (
int i = 0;
i < nx;
i++) {
4496 double ccc1 = alexhf[jeta][jphi][
i];
4498 HFpositivedirection2->Fill(
i, ccc1);
4502 c1->cd(kcountHFpositivedirection2);
4503 HFpositivedirection2->SetMarkerStyle(20);
4504 HFpositivedirection2->SetMarkerSize(0.4);
4505 HFpositivedirection2->GetYaxis()->SetLabelSize(0.04);
4506 HFpositivedirection2->SetXTitle(
"HFpositivedirection2 \b");
4507 HFpositivedirection2->SetMarkerColor(2);
4508 HFpositivedirection2->SetLineColor(0);
4512 HFpositivedirection2->Draw(
"Error");
4513 kcountHFpositivedirection2++;
4514 if (kcountHFpositivedirection2 > 24)
4529 int kcountHFpositivedirection3 = 1;
4531 TH1F* h2CeffHFpositivedirection3 =
4532 new TH1F(
"h2CeffHFpositivedirection3",
"", maxbins, 1., maxbins + 1.);
4533 for (
int jphi = 12; jphi < 18; jphi++) {
4534 for (
int jeta = 18; jeta < 22; jeta++) {
4536 TH1F* HFpositivedirection3 = (TH1F*)h2CeffHFpositivedirection3->Clone(
"twod1");
4537 for (
int i = 0;
i < nx;
i++) {
4538 double ccc1 = alexhf[jeta][jphi][
i];
4542 HFpositivedirection3->Fill(
i, ccc1);
4543 HFpositivedirection3->SetBinError(
i, 0.01);
4549 c1->cd(kcountHFpositivedirection3);
4550 HFpositivedirection3->SetMarkerStyle(20);
4551 HFpositivedirection3->SetMarkerSize(0.4);
4552 HFpositivedirection3->GetYaxis()->SetLabelSize(0.04);
4553 HFpositivedirection3->SetXTitle(
"HFpositivedirection3 \b");
4554 HFpositivedirection3->SetMarkerColor(2);
4555 HFpositivedirection3->SetLineColor(0);
4559 if (kcountHFpositivedirection3 == 1)
4560 HFpositivedirection3->SetXTitle(
"HF jeta = 18; jphi = 12 \b");
4561 if (kcountHFpositivedirection3 == 5)
4562 HFpositivedirection3->SetXTitle(
"HF jeta = 18; jphi = 13 \b");
4563 if (kcountHFpositivedirection3 == 9)
4564 HFpositivedirection3->SetXTitle(
"HF jeta = 18; jphi = 14 \b");
4565 if (kcountHFpositivedirection3 == 13)
4566 HFpositivedirection3->SetXTitle(
"HF jeta = 18; jphi = 15 \b");
4567 if (kcountHFpositivedirection3 == 17)
4568 HFpositivedirection3->SetXTitle(
"HF jeta = 18; jphi = 16 \b");
4569 if (kcountHFpositivedirection3 == 21)
4570 HFpositivedirection3->SetXTitle(
"HF jeta = 18; jphi = 17 \b");
4572 if (kcountHFpositivedirection3 == 2)
4573 HFpositivedirection3->SetXTitle(
"HF jeta = 19; jphi = 12 \b");
4574 if (kcountHFpositivedirection3 == 6)
4575 HFpositivedirection3->SetXTitle(
"HF jeta = 19; jphi = 13 \b");
4576 if (kcountHFpositivedirection3 == 10)
4577 HFpositivedirection3->SetXTitle(
"HF jeta = 19; jphi = 14 \b");
4578 if (kcountHFpositivedirection3 == 14)
4579 HFpositivedirection3->SetXTitle(
"HF jeta = 19; jphi = 15 \b");
4580 if (kcountHFpositivedirection3 == 18)
4581 HFpositivedirection3->SetXTitle(
"HF jeta = 19; jphi = 16 \b");
4582 if (kcountHFpositivedirection3 == 22)
4583 HFpositivedirection3->SetXTitle(
"HF jeta = 19; jphi = 17 \b");
4585 if (kcountHFpositivedirection3 == 3)
4586 HFpositivedirection3->SetXTitle(
"HF jeta = 20; jphi = 12 \b");
4587 if (kcountHFpositivedirection3 == 7)
4588 HFpositivedirection3->SetXTitle(
"HF jeta = 20; jphi = 13 \b");
4589 if (kcountHFpositivedirection3 == 11)
4590 HFpositivedirection3->SetXTitle(
"HF jeta = 20; jphi = 14 \b");
4591 if (kcountHFpositivedirection3 == 15)
4592 HFpositivedirection3->SetXTitle(
"HF jeta = 20; jphi = 15 \b");
4593 if (kcountHFpositivedirection3 == 19)
4594 HFpositivedirection3->SetXTitle(
"HF jeta = 20; jphi = 16 \b");
4595 if (kcountHFpositivedirection3 == 23)
4596 HFpositivedirection3->SetXTitle(
"HF jeta = 20; jphi = 17 \b");
4598 if (kcountHFpositivedirection3 == 4)
4599 HFpositivedirection3->SetXTitle(
"HF jeta = 21; jphi = 12 \b");
4600 if (kcountHFpositivedirection3 == 8)
4601 HFpositivedirection3->SetXTitle(
"HF jeta = 21; jphi = 13 \b");
4602 if (kcountHFpositivedirection3 == 12)
4603 HFpositivedirection3->SetXTitle(
"HF jeta = 21; jphi = 14 \b");
4604 if (kcountHFpositivedirection3 == 16)
4605 HFpositivedirection3->SetXTitle(
"HF jeta = 21; jphi = 15 \b");
4606 if (kcountHFpositivedirection3 == 20)
4607 HFpositivedirection3->SetXTitle(
"HF jeta = 21; jphi = 16 \b");
4608 if (kcountHFpositivedirection3 == 24)
4609 HFpositivedirection3->SetXTitle(
"HF jeta = 21; jphi = 17 \b");
4611 HFpositivedirection3->Draw(
"Error");
4619 kcountHFpositivedirection3++;
4620 if (kcountHFpositivedirection3 > 24)
4625 if (h2CeffHFpositivedirection3)
4626 delete h2CeffHFpositivedirection3;
4642 TH2F* Gefz42D =
new TH2F(
"Gefz42D",
"", 23, -11.5, 11.5, 18, 0., 18.);
4643 TH2F* Gefz42D0 =
new TH2F(
"Gefz42D0",
"", 23, -11.5, 11.5, 18, 0., 18.);
4648 TH2F* Gefz42DF = (TH2F*)Gefz42D0->Clone(
"Gefz42DF");
4649 for (
int jphi = 0; jphi < 18; jphi++) {
4650 for (
int jeta = 0; jeta < 22; jeta++) {
4651 for (
int i = 0;
i < nx;
i++) {
4652 double ccc1 = alexhf[jeta][jphi][
i];
4653 int neweta = jeta - 11 - 0.5;
4655 neweta = jeta - 11 + 1.5;
4657 Gefz42D->Fill(neweta, jphi, ccc1);
4658 Gefz42D0->Fill(neweta, jphi, 1.);
4663 Gefz42DF->Divide(Gefz42D, Gefz42D0, 1, 1,
"B");
4667 Gefz42DF->SetMarkerStyle(20);
4668 Gefz42DF->SetMarkerSize(0.4);
4669 Gefz42DF->GetZaxis()->SetLabelSize(0.08);
4670 Gefz42DF->SetXTitle(
"<A>_RBX #eta \b");
4671 Gefz42DF->SetYTitle(
" #phi \b");
4672 Gefz42DF->SetZTitle(
"<A>_RBX - All \b");
4673 Gefz42DF->SetMarkerColor(2);
4674 Gefz42DF->SetLineColor(0);
4675 Gefz42DF->Draw(
"COLZ");
4692 TH1F* Gefz41D =
new TH1F(
"Gefz41D",
"", 18, 0., 18.);
4693 TH1F* Gefz41D0 =
new TH1F(
"Gefz41D0",
"", 18, 0., 18.);
4694 TH1F* Gefz41DF = (TH1F*)Gefz41D0->Clone(
"Gefz41DF");
4695 for (
int jphi = 0; jphi < 18; jphi++) {
4696 for (
int jeta = 0; jeta < 22; jeta++) {
4697 for (
int i = 0;
i < nx;
i++) {
4698 double ccc1 = alexhf[jeta][jphi][
i];
4700 Gefz41D->Fill(jphi, ccc1);
4701 Gefz41D0->Fill(jphi, 1.);
4707 Gefz41DF->Divide(Gefz41D, Gefz41D0, 1, 1,
"B");
4709 for (
int jphi = 1; jphi < 19; jphi++) {
4710 Gefz41DF->SetBinError(jphi, 0.01);
4714 Gefz41DF->SetMarkerStyle(20);
4715 Gefz41DF->SetMarkerSize(1.4);
4716 Gefz41DF->GetZaxis()->SetLabelSize(0.08);
4717 Gefz41DF->SetXTitle(
"#phi \b");
4718 Gefz41DF->SetYTitle(
" <A> \b");
4719 Gefz41DF->SetZTitle(
"<A>_PHI - All \b");
4720 Gefz41DF->SetMarkerColor(4);
4721 Gefz41DF->SetLineColor(4);
4722 Gefz41DF->SetMinimum(0.8);
4723 Gefz41DF->Draw(
"Error");
4741 TH1F* Gjeta41D =
new TH1F(
"Gjeta41D",
"", 23, -11.5, 11.5);
4742 TH1F* Gjeta41D0 =
new TH1F(
"Gjeta41D0",
"", 23, -11.5, 11.5);
4743 TH1F* Gjeta41DF = (TH1F*)Gjeta41D0->Clone(
"Gjeta41DF");
4745 for (
int jeta = 0; jeta < 22; jeta++) {
4746 for (
int jphi = 0; jphi < 18; jphi++) {
4747 for (
int i = 0;
i < nx;
i++) {
4748 double ccc1 = alexhf[jeta][jphi][
i];
4749 int neweta = jeta - 11 - 0.5;
4751 neweta = jeta - 11 + 1.5;
4753 Gjeta41D->Fill(neweta, ccc1);
4754 Gjeta41D0->Fill(neweta, 1.);
4761 Gjeta41DF->Divide(Gjeta41D, Gjeta41D0, 1, 1,
"B");
4763 for (
int jeta = 1; jeta < 24; jeta++) {
4764 Gjeta41DF->SetBinError(jeta, 0.01);
4768 Gjeta41DF->SetMarkerStyle(20);
4769 Gjeta41DF->SetMarkerSize(1.4);
4770 Gjeta41DF->GetZaxis()->SetLabelSize(0.08);
4771 Gjeta41DF->SetXTitle(
"#eta \b");
4772 Gjeta41DF->SetYTitle(
" <A> \b");
4773 Gjeta41DF->SetZTitle(
"<A>_ETA - All \b");
4774 Gjeta41DF->SetMarkerColor(4);
4775 Gjeta41DF->SetLineColor(4);
4776 Gjeta41DF->SetMinimum(0.8);
4777 Gjeta41DF->Draw(
"Error");
printf("params %d %f %f %f\n", minT, eps, errmax, chi2max)