403 TFile
f(
"PhiSymmetryCalibration.root",
"recreate");
405 std::vector<TH1F*> etsum_barl_histos(
kBarlRings);
406 std::vector<TH1F*> esum_barl_histos(
kBarlRings);
412 float low_e = 999999.;
418 if (etsum <
low && etsum != 0.)
424 if (esum < low_e && esum != 0.)
432 t <<
"etsum_barl_" <<
ieta + 1;
433 etsum_barl_histos[
ieta] =
new TH1F(
t.str().c_str(),
"", 50,
low - .2 *
low,
high + .1 *
high);
436 t <<
"esum_barl_" <<
ieta + 1;
437 esum_barl_histos[
ieta] =
new TH1F(
t.str().c_str(),
"", 50, low_e - .2 * low_e, high_e + .1 * high_e);
460 etsum_barl_histos[
ieta]->Fill(etsum);
461 esum_barl_histos[
ieta]->Fill(esum);
469 etsum_barl_histos[
ieta]->Write();
470 esum_barl_histos[
ieta]->Write();
474 delete etsum_barl_histos[
ieta];
475 delete esum_barl_histos[
ieta];
488 float low_uncorr = FLT_MAX;
490 float high_uncorr = 0;
491 float low_e = FLT_MAX;
500 if (etsum <
low && etsum != 0.)
506 if (etsum_uncorr < low_uncorr && etsum_uncorr != 0.)
507 low_uncorr = etsum_uncorr;
508 if (etsum_uncorr > high_uncorr)
509 high_uncorr = etsum_uncorr;
512 if (esum < low_e && esum != 0.)
528 t <<
"etsum_endc_" <<
ring + 1;
529 etsum_endc_histos[
ring] =
new TH1F(
t.str().c_str(),
"", 50,
low - .2 *
low,
high + .1 *
high);
532 t <<
"etsum_endc_uncorr_" <<
ring + 1;
533 etsum_endc_uncorr_histos[
ring] =
534 new TH1F(
t.str().c_str(),
"", 50, low_uncorr - .2 * low_uncorr, high_uncorr + .1 * high_uncorr);
537 t <<
"esum_endc_" <<
ring + 1;
538 esum_endc_histos[
ring] =
new TH1F(
t.str().c_str(),
"", 50, low_e - .2 * low_e, high_e + .1 * high_e);
541 t <<
"etsumvsarea_endc_" <<
ring + 1;
542 etsumvsarea_endc_histos[
ring] =
543 new TH2F(
t.str().c_str(),
";A_{#eta#phi};#Sigma E_{T}", 50, low_a, high_a, 50,
low,
high);
546 t <<
"esumvsarea_endc_" <<
ring + 1;
547 esumvsarea_endc_histos[
ring] =
548 new TH2F(
t.str().c_str(),
";A_{#eta#phi};#Sigma E", 50, low_a, high_a, 50, low_e, high_e);
562 etsum_endc_histos[
ring]->Fill(etsum);
563 etsum_endc_uncorr_histos[
ring]->Fill(etsum_uncorr);
564 esum_endc_histos[
ring]->Fill(esum);
567 etsumvsarea_endc_histos[
ring]->Fill(
area, etsum);
568 esumvsarea_endc_histos[
ring]->Fill(
area, esum);
578 etsum_endc_histos[
ring]->Write();
579 etsum_endc_uncorr_histos[
ring]->Write();
580 esum_endc_histos[
ring]->Write();
583 etsumvsarea_endc_histos[
ring]->Write();
584 esumvsarea_endc_histos[
ring]->Write();
586 delete etsum_endc_histos[
ring];
587 delete etsum_endc_uncorr_histos[
ring];
588 delete esum_endc_histos[
ring];
589 delete etsumvsarea_endc_histos[
ring];
590 delete esumvsarea_endc_histos[
ring];
594 TH2F barreletamap(
"barreletamap",
"barreletamap", 171, -85, 86, 100, 0, 2);
595 TH2F barrelmap(
"barrelmap",
"barrelmap - #frac{#Sigma E_{T}}{<#Sigma E_{T}>_{0}}", 360, 1, 360, 171, -85, 86);
596 TH2F barrelmap_e(
"barrelmape",
"barrelmape - #frac{#Sigma E}{<#Sigma E>_{0}}", 360, 1, 360, 171, -85, 86);
597 TH2F barrelmap_divided(
"barrelmapdiv",
"barrelmapdivided - #frac{#Sigma E_{T}}{hits}", 360, 1, 360, 171, -85, 86);
598 TH2F barrelmap_e_divided(
"barrelmapediv",
"barrelmapedivided - #frac{#Sigma E}{hits}", 360, 1, 360, 171, -85, 86);
599 TH2F endcmap_plus_corr(
600 "endcapmapplus_corrected",
"endcapmapplus - #frac{#Sigma E_{T}}{<#Sigma E_{T}>_{38}}", 100, 1, 101, 100, 1, 101);
601 TH2F endcmap_minus_corr(
602 "endcapmapminus_corrected",
"endcapmapminus - #frac{#Sigma E_{T}}{<#Sigma E_{T}>_{38}}", 100, 1, 101, 100, 1, 101);
603 TH2F endcmap_plus_uncorr(
"endcapmapplus_uncorrected",
604 "endcapmapplus_uncor - #frac{#Sigma E_{T}}{<#Sigma E_{T}>_{38}}",
611 TH2F endcmap_minus_uncorr(
"endcapmapminus_uncorrected",
612 "endcapmapminus_uncor - #frac{#Sigma E_{T}}{<#Sigma E_{T}>_{38}}",
619 TH2F endcmap_e_plus(
"endcapmapeplus",
"endcapmapeplus - #frac{#Sigma E}{<#Sigma E>_{38}}", 100, 1, 101, 100, 1, 101);
620 TH2F endcmap_e_minus(
621 "endcapmapeminus",
"endcapmapeminus - #frac{#Sigma E}{<#Sigma E>_{38}}", 100, 1, 101, 100, 1, 101);
624 int thesign =
sign == 1 ? 1 : -1;
633 barrelmap_divided.Fill(
635 barrelmap_e_divided.Fill(
660 barreletamap.Write();
661 barrelmap_divided.Write();
663 barrelmap_e_divided.Write();
665 endcmap_plus_corr.Write();
666 endcmap_minus_corr.Write();
667 endcmap_plus_uncorr.Write();
668 endcmap_minus_uncorr.Write();
669 endcmap_e_plus.Write();
670 endcmap_e_minus.Write();
686 t <<
"etavsphi_endc_" <<
ring;
690 t <<
"areavsphi_endc_" <<
ring;
694 t <<
"etsumvsphi_endcp_corr_" <<
ring;
698 t <<
"etsumvsphi_endcm_corr_" <<
ring;
702 t <<
"etsumvsphi_endcp_uncorr_" <<
ring;
706 t <<
"etsumvsphi_endcm_uncorr_" <<
ring;
710 t <<
"esumvsphi_endcp_" <<
ring;
714 t <<
"esumvsphi_endcm_" <<
ring;
718 t <<
"deltaeta_" <<
ring;
719 deltaeta_histos[
ring] =
new TH1F(
t.str().c_str(),
"", 50, -.1, .1);
721 t <<
"deltaphi_" <<
ring;
722 deltaphi_histos[
ring] =
new TH1F(
t.str().c_str(),
"", 50, -.1, .1);
736 if (iphi_endc != -1) {
759 etavsphi_endc[
ring]->Write();
760 areavsphi_endc[
ring]->Write();
761 etsumvsphi_endcp_corr[
ring]->Write();
762 etsumvsphi_endcm_corr[
ring]->Write();
763 etsumvsphi_endcp_uncorr[
ring]->Write();
764 etsumvsphi_endcm_uncorr[
ring]->Write();
765 esumvsphi_endcp[
ring]->Write();
766 esumvsphi_endcm[
ring]->Write();
767 deltaeta_histos[
ring]->Write();
768 deltaphi_histos[
ring]->Write();
770 delete etsumvsphi_endcp_corr[
ring];
771 delete etsumvsphi_endcm_corr[
ring];
772 delete etsumvsphi_endcp_uncorr[
ring];
773 delete etsumvsphi_endcm_uncorr[
ring];
774 delete etavsphi_endc[
ring];
775 delete areavsphi_endc[
ring];
776 delete esumvsphi_endcp[
ring];
777 delete esumvsphi_endcm[
ring];
778 delete deltaeta_histos[
ring];
779 delete deltaphi_histos[
ring];