380 TFile
f(
"PhiSymmetryCalibration.root",
"recreate");
382 std::vector<TH1F*> etsum_barl_histos(
kBarlRings);
383 std::vector<TH1F*> esum_barl_histos(
kBarlRings);
389 float low_e = 999999.;
395 if (etsum <
low && etsum != 0.)
401 if (esum < low_e && esum != 0.)
409 t <<
"etsum_barl_" <<
ieta + 1;
410 etsum_barl_histos[
ieta] =
new TH1F(
t.str().c_str(),
"", 50,
low - .2 *
low,
high + .1 *
high);
413 t <<
"esum_barl_" <<
ieta + 1;
414 esum_barl_histos[
ieta] =
new TH1F(
t.str().c_str(),
"", 50, low_e - .2 * low_e, high_e + .1 * high_e);
425 etsum_barl_histos[
ieta]->Fill(etsum);
426 esum_barl_histos[
ieta]->Fill(esum);
433 etsum_barl_histos[
ieta]->Write();
434 esum_barl_histos[
ieta]->Write();
437 delete etsum_barl_histos[
ieta];
438 delete esum_barl_histos[
ieta];
451 float low_uncorr = FLT_MAX;
453 float high_uncorr = 0;
454 float low_e = FLT_MAX;
463 if (etsum <
low && etsum != 0.)
469 if (etsum_uncorr < low_uncorr && etsum_uncorr != 0.)
470 low_uncorr = etsum_uncorr;
471 if (etsum_uncorr > high_uncorr)
472 high_uncorr = etsum_uncorr;
475 if (esum < low_e && esum != 0.)
491 t <<
"etsum_endc_" <<
ring + 1;
492 etsum_endc_histos[
ring] =
new TH1F(
t.str().c_str(),
"", 50,
low - .2 *
low,
high + .1 *
high);
495 t <<
"etsum_endc_uncorr_" <<
ring + 1;
496 etsum_endc_uncorr_histos[
ring] =
497 new TH1F(
t.str().c_str(),
"", 50, low_uncorr - .2 * low_uncorr, high_uncorr + .1 * high_uncorr);
500 t <<
"esum_endc_" <<
ring + 1;
501 esum_endc_histos[
ring] =
new TH1F(
t.str().c_str(),
"", 50, low_e - .2 * low_e, high_e + .1 * high_e);
504 t <<
"etsumvsarea_endc_" <<
ring + 1;
505 etsumvsarea_endc_histos[
ring] =
506 new TH2F(
t.str().c_str(),
";A_{#eta#phi};#Sigma E_{T}", 50, low_a, high_a, 50,
low,
high);
509 t <<
"esumvsarea_endc_" <<
ring + 1;
510 esumvsarea_endc_histos[
ring] =
511 new TH2F(
t.str().c_str(),
";A_{#eta#phi};#Sigma E", 50, low_a, high_a, 50, low_e, high_e);
525 etsum_endc_histos[
ring]->Fill(etsum);
526 etsum_endc_uncorr_histos[
ring]->Fill(etsum_uncorr);
527 esum_endc_histos[
ring]->Fill(esum);
530 etsumvsarea_endc_histos[
ring]->Fill(
area, etsum);
531 esumvsarea_endc_histos[
ring]->Fill(
area, esum);
541 etsum_endc_histos[
ring]->Write();
542 etsum_endc_uncorr_histos[
ring]->Write();
543 esum_endc_histos[
ring]->Write();
546 etsumvsarea_endc_histos[
ring]->Write();
547 esumvsarea_endc_histos[
ring]->Write();
549 delete etsum_endc_histos[
ring];
550 delete etsum_endc_uncorr_histos[
ring];
551 delete esum_endc_histos[
ring];
552 delete etsumvsarea_endc_histos[
ring];
553 delete esumvsarea_endc_histos[
ring];
557 TH2F barreletamap(
"barreletamap",
"barreletamap", 171, -85, 86, 100, 0, 2);
558 TH2F barrelmap(
"barrelmap",
"barrelmap - #frac{#Sigma E_{T}}{<#Sigma E_{T}>_{0}}", 360, 1, 360, 171, -85, 86);
559 TH2F barrelmap_e(
"barrelmape",
"barrelmape - #frac{#Sigma E}{<#Sigma E>_{0}}", 360, 1, 360, 171, -85, 86);
560 TH2F barrelmap_divided(
"barrelmapdiv",
"barrelmapdivided - #frac{#Sigma E_{T}}{hits}", 360, 1, 360, 171, -85, 86);
561 TH2F barrelmap_e_divided(
"barrelmapediv",
"barrelmapedivided - #frac{#Sigma E}{hits}", 360, 1, 360, 171, -85, 86);
562 TH2F endcmap_plus_corr(
563 "endcapmapplus_corrected",
"endcapmapplus - #frac{#Sigma E_{T}}{<#Sigma E_{T}>_{38}}", 100, 1, 101, 100, 1, 101);
564 TH2F endcmap_minus_corr(
565 "endcapmapminus_corrected",
"endcapmapminus - #frac{#Sigma E_{T}}{<#Sigma E_{T}>_{38}}", 100, 1, 101, 100, 1, 101);
566 TH2F endcmap_plus_uncorr(
"endcapmapplus_uncorrected",
567 "endcapmapplus_uncor - #frac{#Sigma E_{T}}{<#Sigma E_{T}>_{38}}",
574 TH2F endcmap_minus_uncorr(
"endcapmapminus_uncorrected",
575 "endcapmapminus_uncor - #frac{#Sigma E_{T}}{<#Sigma E_{T}>_{38}}",
582 TH2F endcmap_e_plus(
"endcapmapeplus",
"endcapmapeplus - #frac{#Sigma E}{<#Sigma E>_{38}}", 100, 1, 101, 100, 1, 101);
583 TH2F endcmap_e_minus(
584 "endcapmapeminus",
"endcapmapeminus - #frac{#Sigma E}{<#Sigma E>_{38}}", 100, 1, 101, 100, 1, 101);
587 int thesign =
sign == 1 ? 1 : -1;
596 barrelmap_divided.Fill(
598 barrelmap_e_divided.Fill(
623 barreletamap.Write();
624 barrelmap_divided.Write();
626 barrelmap_e_divided.Write();
628 endcmap_plus_corr.Write();
629 endcmap_minus_corr.Write();
630 endcmap_plus_uncorr.Write();
631 endcmap_minus_uncorr.Write();
632 endcmap_e_plus.Write();
633 endcmap_e_minus.Write();
649 t <<
"etavsphi_endc_" <<
ring;
653 t <<
"areavsphi_endc_" <<
ring;
657 t <<
"etsumvsphi_endcp_corr_" <<
ring;
661 t <<
"etsumvsphi_endcm_corr_" <<
ring;
665 t <<
"etsumvsphi_endcp_uncorr_" <<
ring;
669 t <<
"etsumvsphi_endcm_uncorr_" <<
ring;
673 t <<
"esumvsphi_endcp_" <<
ring;
677 t <<
"esumvsphi_endcm_" <<
ring;
681 t <<
"deltaeta_" <<
ring;
682 deltaeta_histos[
ring] =
new TH1F(
t.str().c_str(),
"", 50, -.1, .1);
684 t <<
"deltaphi_" <<
ring;
685 deltaphi_histos[
ring] =
new TH1F(
t.str().c_str(),
"", 50, -.1, .1);
699 if (iphi_endc != -1) {
722 etavsphi_endc[
ring]->Write();
723 areavsphi_endc[
ring]->Write();
724 etsumvsphi_endcp_corr[
ring]->Write();
725 etsumvsphi_endcm_corr[
ring]->Write();
726 etsumvsphi_endcp_uncorr[
ring]->Write();
727 etsumvsphi_endcm_uncorr[
ring]->Write();
728 esumvsphi_endcp[
ring]->Write();
729 esumvsphi_endcm[
ring]->Write();
730 deltaeta_histos[
ring]->Write();
731 deltaphi_histos[
ring]->Write();
733 delete etsumvsphi_endcp_corr[
ring];
734 delete etsumvsphi_endcm_corr[
ring];
735 delete etsumvsphi_endcp_uncorr[
ring];
736 delete etsumvsphi_endcm_uncorr[
ring];
737 delete etavsphi_endc[
ring];
738 delete areavsphi_endc[
ring];
739 delete esumvsphi_endcp[
ring];
740 delete esumvsphi_endcm[
ring];
741 delete deltaeta_histos[
ring];
742 delete deltaphi_histos[
ring];