46 Long_t i_this = (Long_t)
this;
60 Long_t iEcalNumbering = pObjectManager->
GetPointerValue(
"TEcnaNumbering");
61 if (iEcalNumbering == 0) {
137 if (pEcal ==
nullptr) {
149 if (pEcalNumbering ==
nullptr) {
214 if (HistoCode ==
"D_Adc_EvNb" || HistoCode ==
"D_NOE_ChNb" || HistoCode ==
"D_Ped_ChNb" ||
215 HistoCode ==
"D_LFN_ChNb" || HistoCode ==
"D_TNo_ChNb" || HistoCode ==
"D_HFN_ChNb" ||
216 HistoCode ==
"D_MCs_ChNb" || HistoCode ==
"D_SCs_ChNb" || HistoCode ==
"H_Ped_Date" ||
217 HistoCode ==
"H_TNo_Date" || HistoCode ==
"H_MCs_Date" || HistoCode ==
"H_LFN_Date" ||
218 HistoCode ==
"H_HFN_Date" || HistoCode ==
"H_SCs_Date" || (HistoCode ==
"D_MSp_SpNb" && opt_plot !=
"ONLYONE") ||
219 (HistoCode ==
"D_SSp_SpNb" && opt_plot !=
"ONLYONE")) {
223 if ((HistoCode ==
"D_Adc_EvDs" || HistoCode ==
"D_NOE_ChDs" || HistoCode ==
"D_Ped_ChDs" ||
224 HistoCode ==
"D_LFN_ChDs" || HistoCode ==
"D_TNo_ChDs" || HistoCode ==
"D_HFN_ChDs" ||
225 HistoCode ==
"D_MCs_ChDs" || HistoCode ==
"D_SCs_ChDs" || HistoCode ==
"D_MSp_SpDs" ||
226 HistoCode ==
"D_SSp_SpDs" || HistoCode ==
"H_Ped_RuDs" || HistoCode ==
"H_TNo_RuDs" ||
227 HistoCode ==
"H_MCs_RuDs" || HistoCode ==
"H_LFN_RuDs" || HistoCode ==
"H_HFN_RuDs" ||
228 HistoCode ==
"H_SCs_RuDs") &&
229 opt_plot !=
"ONLYONE") {
241 if (HistoCode ==
"D_Adc_EvNb" || HistoCode ==
"D_NOE_ChNb" || HistoCode ==
"D_Ped_ChNb" ||
242 HistoCode ==
"D_LFN_ChNb" || HistoCode ==
"D_TNo_ChNb" || HistoCode ==
"D_HFN_ChNb" ||
243 HistoCode ==
"D_MCs_ChNb" || HistoCode ==
"D_SCs_ChNb" || HistoCode ==
"H_Ped_Date" ||
244 HistoCode ==
"H_TNo_Date" || HistoCode ==
"H_MCs_Date" || HistoCode ==
"H_LFN_Date" ||
245 HistoCode ==
"H_HFN_Date" || HistoCode ==
"H_SCs_Date" || (HistoCode ==
"D_MSp_SpNb" && opt_plot !=
"ONLYONE") ||
246 (HistoCode ==
"D_SSp_SpNb" && opt_plot !=
"ONLYONE")) {
250 if ((HistoCode ==
"D_Adc_EvDs" || HistoCode ==
"D_NOE_ChDs" || HistoCode ==
"D_Ped_ChDs" ||
251 HistoCode ==
"D_LFN_ChDs" || HistoCode ==
"D_TNo_ChDs" || HistoCode ==
"D_HFN_ChDs" ||
252 HistoCode ==
"D_MCs_ChDs" || HistoCode ==
"D_SCs_ChDs" || HistoCode ==
"D_MSp_SpDs" ||
253 HistoCode ==
"D_SSp_SpDs" || HistoCode ==
"H_Ped_RuDs" || HistoCode ==
"H_TNo_RuDs" ||
254 HistoCode ==
"H_MCs_RuDs" || HistoCode ==
"H_LFN_RuDs" || HistoCode ==
"H_HFN_RuDs" ||
255 HistoCode ==
"H_SCs_RuDs") &&
256 opt_plot !=
"ONLYONE") {
268 if (chformat ==
"petit") {
271 if (chformat ==
"moyen") {
274 if (chformat ==
"grand") {
278 if (chformat ==
"etaphiSM") {
281 if (chformat ==
"phietaEB") {
285 if (chformat ==
"IXIYDee") {
288 if (chformat ==
"IYIXEE") {
299 if (chformat ==
"petit") {
302 if (chformat ==
"moyen") {
305 if (chformat ==
"grand") {
309 if (chformat ==
"etaphiSM") {
312 if (chformat ==
"phietaEB") {
316 if (chformat ==
"IXIYDee") {
319 if (chformat ==
"IYIXEE") {
333 Double_t
value = 0.4;
335 if (chtype ==
"general_comment") {
339 if (chtype ==
"top_left_box_SM") {
342 if (chtype ==
"top_left_box_EB") {
345 if (chtype ==
"top_mid_box_EB") {
348 if (chtype ==
"top_right_box_EB") {
352 if (chtype ==
"top_left_box_Dee") {
355 if (chtype ==
"top_left_box_EE") {
358 if (chtype ==
"top_mid_box_EE") {
361 if (chtype ==
"top_right_box_EE") {
365 if (chtype ==
"bottom_left_box") {
368 if (chtype ==
"bottom_left_box_evol") {
371 if (chtype ==
"bottom_mid_box") {
374 if (chtype ==
"bottom_right_box") {
377 if (chtype ==
"bottom_right_box_evol") {
380 if (chtype ==
"bottom_right_box_evpr") {
384 if (chtype ==
"several_plots_box") {
387 if (chtype ==
"several_evol_box") {
390 if (chtype ==
"several_evpr_box") {
400 Double_t
value = 0.6;
402 if (chtype ==
"general_comment") {
406 if (chtype ==
"top_left_box_SM") {
409 if (chtype ==
"top_left_box_EB") {
412 if (chtype ==
"top_mid_box_EB") {
415 if (chtype ==
"top_right_box_EB") {
419 if (chtype ==
"top_left_box_Dee") {
422 if (chtype ==
"top_left_box_EE") {
425 if (chtype ==
"top_mid_box_EE") {
428 if (chtype ==
"top_right_box_EE") {
432 if (chtype ==
"bottom_left_box") {
435 if (chtype ==
"bottom_left_box_evol") {
438 if (chtype ==
"bottom_mid_box") {
441 if (chtype ==
"bottom_right_box") {
444 if (chtype ==
"bottom_right_box_evol") {
447 if (chtype ==
"bottom_right_box_evpr") {
451 if (chtype ==
"several_plots_box") {
454 if (chtype ==
"several_evol_box") {
457 if (chtype ==
"several_evpr_box") {
467 Double_t
value = 0.8;
469 if (chtype ==
"general_comment") {
473 if (chtype ==
"top_left_box_SM") {
476 if (chtype ==
"top_left_box_EB") {
479 if (chtype ==
"top_mid_box_EB") {
482 if (chtype ==
"top_right_box_EB") {
486 if (chtype ==
"top_left_box_Dee") {
489 if (chtype ==
"top_left_box_EE") {
492 if (chtype ==
"top_mid_box_EE") {
495 if (chtype ==
"top_right_box_EE") {
499 if (chtype ==
"bottom_left_box") {
502 if (chtype ==
"bottom_left_box_evol") {
505 if (chtype ==
"bottom_right_box") {
508 if (chtype ==
"bottom_right_box_evol") {
511 if (chtype ==
"bottom_right_box_evpr") {
514 if (chtype ==
"several_plots_box") {
517 if (chtype ==
"several_evol_box") {
520 if (chtype ==
"several_evpr_box") {
530 Double_t
value = 0.9;
532 if (chtype ==
"general_comment") {
536 if (chtype ==
"top_left_box_SM") {
539 if (chtype ==
"top_left_box_EB") {
542 if (chtype ==
"top_mid_box_EB") {
545 if (chtype ==
"top_right_box_EB") {
549 if (chtype ==
"top_left_box_Dee") {
552 if (chtype ==
"top_left_box_EE") {
555 if (chtype ==
"top_mid_box_EE") {
558 if (chtype ==
"top_right_box_EE") {
562 if (chtype ==
"bottom_left_box") {
565 if (chtype ==
"bottom_left_box_evol") {
568 if (chtype ==
"bottom_right_box") {
571 if (chtype ==
"bottom_right_box_Dee") {
575 if (chtype ==
"bottom_right_box_evol") {
578 if (chtype ==
"bottom_right_box_evpr") {
581 if (chtype ==
"several_plots_box") {
584 if (chtype ==
"several_evol_box") {
587 if (chtype ==
"several_evpr_box") {
605 if (!(user_color_palette ==
"Rainbow" || user_color_palette ==
"rainbow")) {
608 if (user_color_palette ==
"Rainbow" || user_color_palette ==
"rainbow") {
618 TColor* my_color =
new TColor();
624 if (user_color_number == 0) {
627 if (user_color_number == 1) {
630 if (user_color_number == 2) {
633 if (user_color_number == 3) {
634 couleur = (Color_t)my_color->GetColor(
"#009900");
636 if (user_color_number == 4) {
639 if (user_color_number == 5) {
640 couleur = (Color_t)my_color->GetColor(
"#9900BB");
645 if (user_color_number == 0) {
646 couleur = (Color_t)my_color->GetColor(
"#EE0000");
648 if (user_color_number == 1) {
649 couleur = (Color_t)my_color->GetColor(
"#FF6611");
651 if (user_color_number == 2) {
652 couleur = (Color_t)my_color->GetColor(
"#FFCC00");
654 if (user_color_number == 3) {
655 couleur = (Color_t)my_color->GetColor(
"#009900");
657 if (user_color_number == 4) {
658 couleur = (Color_t)my_color->GetColor(
"#0044EE");
660 if (user_color_number == 5) {
661 couleur = (Color_t)my_color->GetColor(
"#6633BB");
663 if (user_color_number == 6) {
664 couleur = (Color_t)my_color->GetColor(
"#9900BB");
683 if (chcolor ==
"noir") {
686 if (chcolor ==
"rouge") {
689 if (chcolor ==
"vert_fonce") {
692 if (chcolor ==
"bleu_fonce") {
695 if (chcolor ==
"jaune") {
698 if (chcolor ==
"rose") {
701 if (chcolor ==
"bleu_clair") {
704 if (chcolor ==
"vert") {
707 if (chcolor ==
"bleu") {
710 if (chcolor ==
"blanc") {
714 if (chcolor ==
"marron23") {
717 if (chcolor ==
"marron24") {
720 if (chcolor ==
"marron25") {
723 if (chcolor ==
"marron27") {
726 if (chcolor ==
"marron28") {
730 if (chcolor ==
"bleu33") {
733 if (chcolor ==
"bleu36") {
736 if (chcolor ==
"bleu38") {
739 if (chcolor ==
"bleu39") {
743 if (chcolor ==
"orange41") {
746 if (chcolor ==
"orange42") {
750 if (chcolor ==
"rouge44") {
753 if (chcolor ==
"rouge46") {
756 if (chcolor ==
"rouge47") {
759 if (chcolor ==
"rouge48") {
762 if (chcolor ==
"rouge49") {
765 if (chcolor ==
"rouge50") {
769 if (chcolor ==
"vert31") {
772 if (chcolor ==
"vert32") {
775 if (chcolor ==
"vert36") {
778 if (chcolor ==
"vert37") {
782 if (chcolor ==
"violet") {
786 if (chcolor ==
"turquoise29") {
790 if (chcolor ==
"gris12") {
793 if (chcolor ==
"gris13") {
796 if (chcolor ==
"gris14") {
799 if (chcolor ==
"gris15") {
802 if (chcolor ==
"gris16") {
805 if (chcolor ==
"gris17") {
808 if (chcolor ==
"gris18") {
832 gStyle->SetPalette(1,
nullptr);
835 gStyle->SetOptDate(0);
838 gStyle->SetTitleW(0.5);
839 gStyle->SetTitleH(0.075);
842 gStyle->SetTitleW(0.8);
843 gStyle->SetTitleH(0.075);
847 gStyle->SetTitleW(0.5);
848 gStyle->SetTitleH(0.075);
852 gStyle->SetTitleW(0.2);
853 gStyle->SetTitleH(0.095);
857 gStyle->SetTitleW(0.45);
858 gStyle->SetTitleH(0.08);
862 gStyle->SetTitleW(0.85);
863 gStyle->SetTitleH(0.08);
867 gStyle->SetTitleW(0.225);
868 gStyle->SetTitleH(0.095);
872 gStyle->SetTitleW(0.5);
873 gStyle->SetTitleH(0.08);
877 gStyle->SetOptStat(1110);
881 gStyle->SetStatW(0.55);
882 gStyle->SetStatH(0.2);
887 gStyle->SetStatW(0.375);
888 gStyle->SetStatH(0.180);
889 gStyle->SetStatY(0.9875);
892 gStyle->SetStatW(0.375);
893 gStyle->SetStatH(0.180);
894 gStyle->SetStatY(0.9875);
898 gStyle->SetStatW(0.375);
899 gStyle->SetStatH(0.180);
900 gStyle->SetStatY(0.9875);
905 gStyle->SetMarkerStyle(1);
907 gStyle->SetMarkerStyle(20);
916 gStyle->SetPadBottomMargin(0.125);
917 gStyle->SetPadTopMargin(0.125);
918 gStyle->SetPadLeftMargin(0.125);
919 gStyle->SetPadRightMargin(0.125);
922 gStyle->SetPadBottomMargin(0.125);
923 gStyle->SetPadTopMargin(0.135);
924 gStyle->SetPadLeftMargin(0.135);
925 gStyle->SetPadRightMargin(0.135);
929 gStyle->SetPadBottomMargin(0.145);
930 gStyle->SetPadTopMargin(0.135);
931 gStyle->SetPadLeftMargin(0.125);
932 gStyle->SetPadRightMargin(0.125);
936 gStyle->SetPadBottomMargin(0.120);
937 gStyle->SetPadTopMargin(0.110);
938 gStyle->SetPadLeftMargin(0.130);
939 gStyle->SetPadRightMargin(0.130);
942 gStyle->SetPadBottomMargin(0.145);
943 gStyle->SetPadTopMargin(0.135);
944 gStyle->SetPadLeftMargin(0.125);
945 gStyle->SetPadRightMargin(0.125);
949 gStyle->SetPadBottomMargin(0.145);
950 gStyle->SetPadTopMargin(0.135);
951 gStyle->SetPadLeftMargin(0.105);
952 gStyle->SetPadRightMargin(0.115);
955 gStyle->SetPadBottomMargin((Float_t)0.125);
956 gStyle->SetPadTopMargin((Float_t)0.175);
957 gStyle->SetPadLeftMargin((Float_t)0.115);
958 gStyle->SetPadRightMargin((Float_t)0.05);
962 gStyle->SetPadBottomMargin(0.115);
963 gStyle->SetPadTopMargin(0.155);
964 gStyle->SetPadLeftMargin(0.15);
965 gStyle->SetPadRightMargin(0.05);
969 gStyle->SetPadBottomMargin(0.1275);
970 gStyle->SetPadTopMargin(0.165);
971 gStyle->SetPadLeftMargin(0.15);
972 gStyle->SetPadRightMargin(0.05);
975 if (
HistoType ==
"Evol" && opt_plot ==
"ONLYONE") {
976 gStyle->SetPadBottomMargin(0.110);
977 gStyle->SetPadTopMargin(0.2);
978 gStyle->SetPadLeftMargin(0.115);
979 gStyle->SetPadRightMargin(0.035);
981 if (
HistoType ==
"Evol" && opt_plot ==
"SAME") {
982 gStyle->SetPadBottomMargin(0.110);
983 gStyle->SetPadTopMargin(0.185);
984 gStyle->SetPadLeftMargin(0.115);
985 gStyle->SetPadRightMargin(0.035);
987 if (
HistoType ==
"Evol" && opt_plot ==
"SAME n") {
988 gStyle->SetPadBottomMargin(0.110);
989 gStyle->SetPadTopMargin(0.1);
990 gStyle->SetPadLeftMargin(0.115);
991 gStyle->SetPadRightMargin(0.035);
994 if (
HistoType ==
"EvolProj" && opt_plot ==
"ONLYONE") {
995 gStyle->SetPadBottomMargin(0.1275);
996 gStyle->SetPadTopMargin(0.165);
997 gStyle->SetPadLeftMargin(0.15);
998 gStyle->SetPadRightMargin(0.05);
1000 if (
HistoType ==
"EvolProj" && opt_plot ==
"SAME") {
1001 gStyle->SetPadBottomMargin(0.110);
1002 gStyle->SetPadTopMargin(0.185);
1003 gStyle->SetPadLeftMargin(0.115);
1004 gStyle->SetPadRightMargin(0.035);
1006 if (
HistoType ==
"EvolProj" && opt_plot ==
"SAME n") {
1007 gStyle->SetPadBottomMargin(0.110);
1008 gStyle->SetPadTopMargin(0.1);
1009 gStyle->SetPadLeftMargin(0.115);
1010 gStyle->SetPadRightMargin(0.035);
1026 Bool_t b_true = kTRUE;
1027 Bool_t b_false = kFALSE;
1029 histo->SetStats(b_false);
1032 histo->SetStats(b_false);
1035 histo->SetStats(b_true);
1044 histo->GetXaxis()->SetTitleOffset((Float_t)1.05);
1045 histo->GetXaxis()->SetTitleSize((Float_t)0.04);
1047 histo->GetXaxis()->SetLabelOffset((Float_t)0.006);
1048 histo->GetXaxis()->SetLabelSize((Float_t)0.04);
1050 histo->GetXaxis()->SetTickLength((Float_t)0.03);
1051 histo->GetXaxis()->SetNdivisions((Int_t)510);
1054 histo->GetYaxis()->SetTitleOffset((Float_t)1.5);
1055 histo->GetYaxis()->SetTitleSize((Float_t)0.04);
1057 histo->GetYaxis()->SetLabelOffset((Float_t)0.01);
1058 histo->GetYaxis()->SetLabelSize((Float_t)0.04);
1060 histo->GetYaxis()->SetTickLength((Float_t)0.03);
1061 histo->GetYaxis()->SetNdivisions((Int_t)510);
1066 histo->GetXaxis()->SetTitleOffset((Float_t)1.05);
1067 histo->GetXaxis()->SetTitleSize((Float_t)0.04);
1069 histo->GetXaxis()->SetLabelOffset((Float_t)0.006);
1070 histo->GetXaxis()->SetLabelSize((Float_t)0.04);
1072 histo->GetXaxis()->SetTickLength((Float_t)0.03);
1073 histo->GetXaxis()->SetNdivisions((Int_t)510);
1076 histo->GetYaxis()->SetTitleOffset((Float_t)1.75);
1077 histo->GetYaxis()->SetTitleSize((Float_t)0.04);
1079 histo->GetYaxis()->SetLabelOffset((Float_t)0.01);
1080 histo->GetYaxis()->SetLabelSize((Float_t)0.04);
1082 histo->GetYaxis()->SetTickLength((Float_t)0.03);
1083 histo->GetYaxis()->SetNdivisions((Int_t)510);
1087 (
HistoType ==
"EvolProj" && !(opt_plot ==
"SAME" || opt_plot ==
"SAME n"))) {
1089 histo->GetXaxis()->SetTitleOffset((Float_t)1.25);
1090 histo->GetXaxis()->SetTitleSize((Float_t)0.04);
1092 histo->GetXaxis()->SetLabelOffset((Float_t)0.005);
1093 histo->GetXaxis()->SetLabelSize((Float_t)0.04);
1095 histo->GetXaxis()->SetTickLength((Float_t)0.03);
1096 histo->GetXaxis()->SetNdivisions((Int_t)510);
1099 histo->GetYaxis()->SetTitleOffset((Float_t)1.75);
1100 histo->GetYaxis()->SetTitleSize((Float_t)0.04);
1102 histo->GetYaxis()->SetLabelOffset((Float_t)0.01);
1103 histo->GetYaxis()->SetLabelSize((Float_t)0.04);
1105 histo->GetYaxis()->SetTickLength((Float_t)0.03);
1106 histo->GetYaxis()->SetNdivisions((Int_t)510);
1109 if (
HistoType ==
"EvolProj" && (opt_plot ==
"SAME" || opt_plot ==
"SAME n")) {
1111 histo->GetXaxis()->SetTitleOffset((Float_t)1.25);
1112 histo->GetXaxis()->SetTitleSize((Float_t)0.04);
1114 histo->GetXaxis()->SetLabelOffset((Float_t)0.005);
1115 histo->GetXaxis()->SetLabelSize((Float_t)0.04);
1117 histo->GetXaxis()->SetTickLength((Float_t)0.03);
1118 histo->GetXaxis()->SetNdivisions((Int_t)510);
1121 histo->GetYaxis()->SetTitleOffset((Float_t)1.25);
1122 histo->GetYaxis()->SetTitleSize((Float_t)0.04);
1124 histo->GetYaxis()->SetLabelOffset((Float_t)0.01);
1125 histo->GetYaxis()->SetLabelSize((Float_t)0.04);
1127 histo->GetYaxis()->SetTickLength((Float_t)0.03);
1128 histo->GetYaxis()->SetNdivisions((Int_t)510);
1133 histo->GetXaxis()->SetTitleOffset((Float_t)1.25);
1134 histo->GetXaxis()->SetTitleSize((Float_t)0.04);
1136 histo->GetXaxis()->SetLabelOffset((Float_t)0.005);
1137 histo->GetXaxis()->SetLabelSize((Float_t)0.04);
1139 histo->GetXaxis()->SetTickLength((Float_t)0.03);
1140 histo->GetXaxis()->SetNdivisions((Int_t)510);
1143 histo->GetYaxis()->SetTitleOffset((Float_t)1.45);
1144 histo->GetYaxis()->SetTitleSize((Float_t)0.04);
1146 histo->GetYaxis()->SetLabelOffset((Float_t)0.01);
1147 histo->GetYaxis()->SetLabelSize((Float_t)0.04);
1149 histo->GetYaxis()->SetTickLength((Float_t)0.03);
1150 histo->GetYaxis()->SetNdivisions((Int_t)510);
1155 histo->GetXaxis()->SetTitleOffset((Float_t)1.7);
1156 histo->GetXaxis()->SetTitleSize((Float_t)0.04);
1158 histo->GetXaxis()->SetLabelOffset((Float_t)0.005);
1159 histo->GetXaxis()->SetLabelSize((Float_t)0.04);
1161 histo->GetXaxis()->SetTickLength((Float_t)0.03);
1162 histo->GetXaxis()->SetNdivisions((Int_t)510);
1165 histo->GetYaxis()->SetTitleOffset((Float_t)1.85);
1166 histo->GetYaxis()->SetTitleSize((Float_t)0.04);
1168 histo->GetYaxis()->SetLabelOffset((Float_t)0.01);
1169 histo->GetYaxis()->SetLabelSize((Float_t)0.04);
1171 histo->GetYaxis()->SetTickLength((Float_t)0.03);
1172 histo->GetYaxis()->SetNdivisions((Int_t)510);
1177 histo->GetXaxis()->SetTitleOffset((Float_t)9999.);
1178 histo->GetXaxis()->SetTitleSize((Float_t)0.05);
1180 histo->GetXaxis()->SetLabelOffset((Float_t)9999.);
1181 histo->GetXaxis()->SetLabelSize((Float_t)0.);
1183 histo->GetXaxis()->SetNdivisions((Int_t)1);
1184 histo->GetXaxis()->SetTickLength((Float_t)0.);
1187 histo->GetYaxis()->SetTitleOffset((Float_t)9999.);
1188 histo->GetYaxis()->SetTitleSize((Float_t)0.05);
1190 histo->GetYaxis()->SetLabelOffset((Float_t)9999.);
1191 histo->GetYaxis()->SetLabelSize((Float_t)0.);
1193 histo->GetYaxis()->SetNdivisions((Int_t)1);
1194 histo->GetYaxis()->SetTickLength((Float_t)0.);
1200 histo->GetXaxis()->SetTitleOffset((Float_t)9999.);
1201 histo->GetXaxis()->SetTitleSize((Float_t)0.075);
1203 histo->GetXaxis()->SetLabelOffset((Float_t)9999.);
1204 histo->GetXaxis()->SetLabelSize((Float_t)0.);
1206 histo->GetXaxis()->SetNdivisions((Int_t)1);
1207 histo->GetXaxis()->SetTickLength((Float_t)0.);
1210 histo->GetYaxis()->SetTitleOffset((Float_t)9999.);
1211 histo->GetYaxis()->SetTitleSize((Float_t)0.075);
1213 histo->GetYaxis()->SetLabelOffset((Float_t)9999.);
1214 histo->GetYaxis()->SetLabelSize((Float_t)0.);
1216 histo->GetYaxis()->SetNdivisions((Int_t)1);
1217 histo->GetYaxis()->SetTickLength((Float_t)0.);
1224 Float_t tit_off = 1.;
1229 if (
opt ==
"Towx") {
1232 if (
opt ==
"Towy") {
1241 if (
opt ==
"SMyInEB") {
1257 if (
opt ==
"Deex") {
1260 if (
opt ==
"Deey") {
1275 Float_t tit_siz = 0.045;
1284 Float_t lab_off = 0.02;
1289 if (
opt ==
"Towx") {
1292 if (
opt ==
"Towy") {
1314 if (
opt ==
"Deex") {
1317 if (
opt ==
"Deey") {
1332 Float_t lab_siz = 0.035;
1351 Float_t tic_siz = 0.;
1355 if (
opt ==
"Deex") {
1358 if (
opt ==
"Deey") {
1383 graph->GetXaxis()->SetTitleOffset((Float_t)1.10);
1384 graph->GetXaxis()->SetTitleSize((Float_t)0.04);
1386 graph->GetXaxis()->SetLabelOffset((Float_t)0.015);
1387 graph->GetXaxis()->SetLabelSize((Float_t)0.04);
1389 graph->GetXaxis()->SetTickLength((Float_t)0.02);
1390 graph->GetXaxis()->SetNdivisions((Int_t)510);
1393 graph->GetYaxis()->SetTitleOffset((Float_t)1.25);
1394 graph->GetYaxis()->SetTitleSize((Float_t)0.04);
1396 graph->GetYaxis()->SetLabelOffset((Float_t)0.01);
1397 graph->GetYaxis()->SetLabelSize((Float_t)0.04);
1399 graph->GetYaxis()->SetTickLength((Float_t)0.03);
1400 graph->GetYaxis()->SetNdivisions((Int_t)510);
1406 if (opt_plot ==
"Dee") {
1409 if (opt_plot ==
"EE") {
1410 Double_t vertic_empty_strip_1 = 1.;
1411 if (DeeNumber == 1) {
1414 if (DeeNumber == 2) {
1417 if (DeeNumber == 3) {
1420 if (DeeNumber == 4) {
1421 offset = vertic_empty_strip_1 + 0.;
1431 if (DeeNumber == 1) {
1434 if (DeeNumber == 2) {
1437 if (DeeNumber == 3) {
1440 if (DeeNumber == 4) {
1450 if (opt_plot ==
"Dee") {
1451 if (DeeNumber == 1) {
1454 if (DeeNumber == 2) {
1457 if (DeeNumber == 3) {
1460 if (DeeNumber == 4) {
1464 if (opt_plot ==
"EE") {
1465 if (DeeNumber == 1) {
1468 if (DeeNumber == 2) {
1471 if (DeeNumber == 3) {
1474 if (DeeNumber == 4) {
1502 TPaveText* title_g1;
1507 Double_t pav_gen_xgauche =
BoxLeftX(
"general_comment");
1508 Double_t pav_gen_xdroite =
BoxRightX(
"general_comment");
1509 Double_t pav_gen_ybas =
BoxBottomY(
"general_comment");
1510 Double_t pav_gen_yhaut =
BoxTopY(
"general_comment");
1512 title_g1 =
new TPaveText(pav_gen_xgauche, pav_gen_ybas, pav_gen_xdroite, pav_gen_yhaut);
1515 Option_t* opt_pav =
"arc";
1516 title_g1->SetOption(opt_pav);
1518 TString tit_gen =
comment.Data();
1524 title_g1->AddText(tit_gen);
1528 Int_t cTextPaveAlign = 12;
1529 title_g1->SetTextAlign(cTextPaveAlign);
1531 Int_t cTextPaveFont = 40;
1532 title_g1->SetTextFont(cTextPaveFont);
1534 Float_t cTextPaveSize = 0.04;
1535 title_g1->SetTextSize(cTextPaveSize);
1536 Int_t cTextBorderSize = 0;
1537 title_g1->SetBorderSize(cTextBorderSize);
1538 Double_t cTextPaveRadius = 5.;
1539 title_g1->SetCornerRadius(cTextPaveRadius);
1544 title_g1 =
new TPaveText(0, 0, 0, 0);
1552 const Int_t& nb_of_samples,
1554 const TString& run_type,
1555 const Int_t& first_evt,
1556 const Int_t& last_evt,
1557 const TString& nb_col) {
1563 Double_t pav_bot_left_xgauche =
BoxLeftX(
"bottom_left_box");
1564 Double_t pav_bot_left_xdroite =
BoxRightX(
"bottom_left_box");
1565 Double_t pav_bot_left_ybas =
BoxBottomY(
"bottom_left_box");
1566 Double_t pav_bot_left_yhaut =
BoxTopY(
"bottom_left_box");
1568 TPaveText* com_bot_left =
1569 new TPaveText(pav_bot_left_xgauche, pav_bot_left_ybas, pav_bot_left_xdroite, pav_bot_left_yhaut);
1573 Int_t cTextPaveAlign = 12;
1574 com_bot_left->SetTextAlign(cTextPaveAlign);
1576 Int_t cTextPaveFont = 100;
1577 com_bot_left->SetTextFont(cTextPaveFont);
1579 Float_t cTextPaveSize = 0.025;
1580 com_bot_left->SetTextSize(cTextPaveSize);
1582 Int_t cTextBorderSize = 1;
1583 com_bot_left->SetBorderSize(cTextBorderSize);
1585 if (nb_col ==
"TwoCol") {
1586 cTextPaveSize = 0.035;
1587 com_bot_left->SetTextSize(cTextPaveSize);
1589 com_bot_left->AddText(f_in);
1590 cTextPaveSize = 0.035;
1591 com_bot_left->SetTextSize(cTextPaveSize);
1592 snprintf(f_in,
fgMaxCar,
"Type: %-20s", run_type.Data());
1593 com_bot_left->AddText(f_in);
1594 snprintf(f_in,
fgMaxCar,
"Analysis: %-10s Evts range: %d - %d ", ana_type.Data(), first_evt, last_evt);
1595 com_bot_left->AddText(f_in);
1597 cTextPaveSize = 0.0225;
1598 com_bot_left->SetTextSize(cTextPaveSize);
1600 com_bot_left->AddText(f_in);
1601 snprintf(f_in,
fgMaxCar,
"Type: %-20s", run_type.Data());
1602 com_bot_left->AddText(f_in);
1603 snprintf(f_in,
fgMaxCar,
"Analysis: %-10s ", ana_type.Data());
1604 com_bot_left->AddText(f_in);
1606 snprintf(f_in,
fgMaxCar,
"Samples: %d - %d", un, nb_of_samples);
1607 com_bot_left->AddText(f_in);
1608 snprintf(f_in,
fgMaxCar,
"Evts range: %d - %d", first_evt, last_evt);
1609 com_bot_left->AddText(f_in);
1612 return com_bot_left;
1616 const TString& start_date,
1617 const TString& stop_date,
1618 const TString& nb_col) {
1625 Double_t pav_bot_right_xgauche =
BoxLeftX(
"bottom_right_box");
1626 Double_t pav_bot_right_xdroite =
BoxRightX(
"bottom_right_box");
1627 Double_t pav_bot_right_ybas =
BoxBottomY(
"bottom_right_box");
1628 Double_t pav_bot_right_yhaut =
BoxTopY(
"bottom_right_box");
1629 TPaveText* com_bot_right =
1630 new TPaveText(pav_bot_right_xgauche, pav_bot_right_ybas, pav_bot_right_xdroite, pav_bot_right_yhaut);
1634 Int_t cTextPaveAlign = 12;
1635 com_bot_right->SetTextAlign(cTextPaveAlign);
1637 Int_t cTextPaveFont = 100;
1638 com_bot_right->SetTextFont(cTextPaveFont);
1640 Float_t cTextPaveSize = 0.025;
1641 com_bot_right->SetTextSize(cTextPaveSize);
1643 Int_t cTextBorderSize = 1;
1644 com_bot_right->SetBorderSize(cTextBorderSize);
1646 if (nb_col ==
"TwoCol") {
1647 cTextPaveSize = 0.0325;
1648 com_bot_right->SetTextSize(cTextPaveSize);
1649 snprintf(f_in,
fgMaxCar,
"First evt: %s %8d events ", start_date.Data(), nb_of_evts);
1650 com_bot_right->AddText(f_in);
1651 snprintf(f_in,
fgMaxCar,
"Last evt: %s ", stop_date.Data());
1652 com_bot_right->AddText(f_in);
1654 cTextPaveSize = 0.0225;
1655 com_bot_right->SetTextSize(cTextPaveSize);
1656 snprintf(f_in,
fgMaxCar,
"%d events", nb_of_evts);
1657 com_bot_right->AddText(f_in);
1658 snprintf(f_in,
fgMaxCar,
"First evt: %s ", start_date.Data());
1659 com_bot_right->AddText(f_in);
1660 snprintf(f_in,
fgMaxCar,
"Last evt: %s ", stop_date.Data());
1661 com_bot_right->AddText(f_in);
1664 return com_bot_right;
1668 const Int_t& nb_of_samples,
1669 const Int_t& first_req_evt,
1670 const Int_t& last_req_evt,
1677 Double_t pav_bot_left_xgauche =
BoxLeftX(
"bottom_left_box");
1678 Double_t pav_bot_left_xdroite =
BoxRightX(
"bottom_left_box");
1679 Double_t pav_bot_left_ybas =
BoxBottomY(
"bottom_left_box");
1680 Double_t pav_bot_left_yhaut =
BoxTopY(
"bottom_left_box");
1683 pav_bot_left_xgauche =
BoxLeftX(
"bottom_left_box_evol");
1684 pav_bot_left_xdroite =
BoxRightX(
"bottom_left_box_evol");
1685 pav_bot_left_ybas =
BoxBottomY(
"bottom_left_box_evol");
1686 pav_bot_left_yhaut =
BoxTopY(
"bottom_left_box_evol");
1689 TPaveText* com_bot_left =
1690 new TPaveText(pav_bot_left_xgauche, pav_bot_left_ybas, pav_bot_left_xdroite, pav_bot_left_yhaut);
1694 Int_t cTextPaveAlign = 12;
1695 com_bot_left->SetTextAlign(cTextPaveAlign);
1697 Int_t cTextPaveFont = 100;
1698 com_bot_left->SetTextFont(cTextPaveFont);
1700 Float_t cTextPaveSize = 0.03;
1701 com_bot_left->SetTextSize(cTextPaveSize);
1702 Int_t cTextBorderSize = 1;
1703 com_bot_left->SetBorderSize(cTextBorderSize);
1705 TString analysis_name = ana_type.Data();
1707 snprintf(f_in,
fgMaxCar,
"Analysis: %s", analysis_name.Data());
1708 com_bot_left->AddText(f_in);
1709 snprintf(f_in,
fgMaxCar,
"Samples: 1 - %d", nb_of_samples);
1710 com_bot_left->AddText(f_in);
1711 snprintf(f_in,
fgMaxCar,
"Evts range: %d - %d ", first_req_evt, last_req_evt);
1712 com_bot_left->AddText(f_in);
1714 return com_bot_left;
1718 const TString& start_evol_date,
1719 const Int_t& stop_evol_run,
1720 const TString& stop_evol_date,
1721 const TString& opt_plot,
1728 Double_t pav_border_xgauche =
BoxLeftX(
"bottom_right_box_evol");
1729 Double_t pav_border_xdroite =
BoxRightX(
"bottom_right_box_evol");
1730 Double_t pav_border_ybas =
BoxBottomY(
"bottom_right_box_evol");
1731 Double_t pav_border_yhaut =
BoxTopY(
"bottom_right_box_evol");
1733 if (opt_plot ==
"SAME n") {
1734 pav_border_xgauche =
BoxLeftX(
"bottom_right_box_evpr");
1735 pav_border_xdroite =
BoxRightX(
"bottom_right_box_evpr");
1736 pav_border_ybas =
BoxBottomY(
"top_right_box_EB");
1737 pav_border_yhaut =
BoxTopY(
"top_right_box_EB");
1740 TPaveText* pav_evol_runs =
new TPaveText(pav_border_xgauche, pav_border_ybas, pav_border_xdroite, pav_border_yhaut);
1744 Int_t cTextPaveAlign = 12;
1745 pav_evol_runs->SetTextAlign(cTextPaveAlign);
1748 Int_t cTextPaveFont = 100;
1749 pav_evol_runs->SetTextFont(cTextPaveFont);
1751 Float_t cTextPaveSize = 0.025;
1753 cTextPaveSize = 0.0225;
1756 pav_evol_runs->SetTextSize(cTextPaveSize);
1757 Int_t cTextBorderSize = 1;
1758 pav_evol_runs->SetBorderSize(cTextBorderSize);
1760 if (!((
HistoType ==
"Evol" && opt_plot ==
"SAME n") || (
HistoType ==
"EvolProj" && opt_plot ==
"SAME n"))) {
1761 snprintf(f_in,
fgMaxCar,
"First run: %d", start_evol_run);
1762 pav_evol_runs->AddText(f_in);
1763 snprintf(f_in,
fgMaxCar,
"(%s) ", start_evol_date.Data());
1764 pav_evol_runs->AddText(f_in);
1765 snprintf(f_in,
fgMaxCar,
"Last run: %d", stop_evol_run);
1766 pav_evol_runs->AddText(f_in);
1767 snprintf(f_in,
fgMaxCar,
"(%s) ", stop_evol_date.Data());
1768 pav_evol_runs->AddText(f_in);
1771 if ((
HistoType ==
"Evol" && opt_plot ==
"SAME n") || (
HistoType ==
"EvolProj" && opt_plot ==
"SAME n")) {
1772 snprintf(f_in,
fgMaxCar,
"First run: %d (%s) ", start_evol_run, start_evol_date.Data());
1773 pav_evol_runs->AddText(f_in);
1774 snprintf(f_in,
fgMaxCar,
"Last run: %d (%s)", stop_evol_run, stop_evol_date.Data());
1775 pav_evol_runs->AddText(f_in);
1778 return pav_evol_runs;
1788 Double_t pav_left_xgauche =
BoxLeftX(
"several_plots_box");
1789 Double_t pav_left_xdroite =
BoxRightX(
"several_plots_box");
1790 Double_t pav_left_ybas =
BoxBottomY(
"several_plots_box");
1791 Double_t pav_left_yhaut =
BoxTopY(
"several_plots_box");
1793 if (chopt ==
"sevevol") {
1794 pav_left_xgauche =
BoxLeftX(
"several_evol_box");
1795 pav_left_xdroite =
BoxRightX(
"several_evol_box");
1796 pav_left_ybas =
BoxBottomY(
"several_evol_box");
1797 pav_left_yhaut =
BoxTopY(
"several_evol_box");
1800 pav_left_xgauche =
BoxLeftX(
"several_evpr_box");
1801 pav_left_xdroite =
BoxRightX(
"several_evpr_box");
1802 pav_left_ybas =
BoxBottomY(
"several_evpr_box");
1803 pav_left_yhaut =
BoxTopY(
"several_evpr_box");
1807 TPaveText* com_several =
new TPaveText(pav_left_xgauche, pav_left_ybas, pav_left_xdroite, pav_left_yhaut);
1823 Double_t pav_top_left_xgauche =
BoxLeftX(
"top_left_box_SM");
1824 Double_t pav_top_left_xdroite =
BoxRightX(
"top_left_box_SM");
1825 Double_t pav_top_left_ybas =
BoxBottomY(
"top_left_box_SM");
1826 Double_t pav_top_left_yhaut =
BoxTopY(
"top_left_box_SM");
1828 TPaveText* com_top_left =
1829 new TPaveText(pav_top_left_xgauche, pav_top_left_ybas, pav_top_left_xdroite, pav_top_left_yhaut);
1833 Int_t cTextPaveAlign = 12;
1834 com_top_left->SetTextAlign(cTextPaveAlign);
1836 Int_t cTextPaveFont = 100;
1837 com_top_left->SetTextFont(cTextPaveFont);
1839 Float_t cTextPaveSize = 0.04;
1840 com_top_left->SetTextSize(cTextPaveSize);
1841 Int_t cTextBorderSize = 1;
1842 com_top_left->SetBorderSize(cTextBorderSize);
1851 com_top_left->AddText(f_in);
1853 return com_top_left;
1862 Double_t pav_top_left_xgauche =
BoxLeftX(
"top_left_box_SM");
1863 Double_t pav_top_left_xdroite =
BoxRightX(
"top_left_box_SM");
1864 Double_t pav_top_left_ybas =
BoxBottomY(
"top_left_box_SM");
1865 Double_t pav_top_left_yhaut =
BoxTopY(
"top_left_box_SM");
1867 if (chopt ==
"standard" || (chopt ==
"standGH" && EB_type ==
"EB-")) {
1868 pav_top_left_xgauche =
BoxLeftX(
"top_left_box_EB");
1869 pav_top_left_xdroite =
BoxRightX(
"top_left_box_EB");
1870 pav_top_left_ybas =
BoxBottomY(
"top_left_box_EB");
1871 pav_top_left_yhaut =
BoxTopY(
"top_left_box_EB");
1874 if (chopt ==
"standSM" || chopt ==
"standStex" || (chopt ==
"standGH" && EB_type ==
"EB+")) {
1875 pav_top_left_xgauche =
BoxLeftX(
"top_left_box_SM");
1876 pav_top_left_xdroite =
BoxRightX(
"top_left_box_SM");
1877 pav_top_left_ybas =
BoxBottomY(
"top_left_box_SM");
1878 pav_top_left_yhaut =
BoxTopY(
"top_left_box_SM");
1881 if (chopt ==
"several") {
1882 pav_top_left_xgauche =
BoxLeftX(
"several_plots_box");
1883 pav_top_left_xdroite =
BoxRightX(
"several_plots_box");
1884 pav_top_left_ybas =
BoxBottomY(
"several_plots_box");
1885 pav_top_left_yhaut =
BoxTopY(
"several_plots_box");
1888 if (chopt ==
"sevevol") {
1889 pav_top_left_xgauche =
BoxLeftX(
"several_evol_box");
1890 pav_top_left_xdroite =
BoxRightX(
"several_evol_box");
1891 pav_top_left_ybas =
BoxBottomY(
"several_evol_box");
1892 pav_top_left_yhaut =
BoxTopY(
"several_evol_box");
1895 TPaveText* com_top_left =
1896 new TPaveText(pav_top_left_xgauche, pav_top_left_ybas, pav_top_left_xdroite, pav_top_left_yhaut);
1900 Int_t cTextPaveAlign = 12;
1901 com_top_left->SetTextAlign(cTextPaveAlign);
1903 Int_t cTextPaveFont = 100;
1904 com_top_left->SetTextFont(cTextPaveFont);
1906 Float_t cTextPaveSize = 0.04;
1907 com_top_left->SetTextSize(cTextPaveSize);
1908 Int_t cTextBorderSize = 1;
1909 com_top_left->SetBorderSize(cTextBorderSize);
1911 if (chopt ==
"standard" || chopt ==
"standSM" || chopt ==
"standStex" || chopt ==
"standGH") {
1912 Int_t sm_nb = SM_number;
1913 if (EB_type ==
"EB+") {
1914 snprintf(f_in,
fgMaxCar,
"EB+%d", sm_nb);
1916 if (EB_type ==
"EB-") {
1918 snprintf(f_in,
fgMaxCar,
"EB%d (SM%d)", sm_nb, SM_number);
1920 com_top_left->AddText(f_in);
1923 return com_top_left;
1931 Double_t pav_top_mid_xgauche =
BoxLeftX(
"top_mid_box_EB");
1932 Double_t pav_top_mid_xdroite =
BoxRightX(
"top_mid_box_EB");
1933 Double_t pav_top_mid_ybas =
BoxBottomY(
"top_mid_box_EB");
1934 Double_t pav_top_mid_yhaut =
BoxTopY(
"top_mid_box_EB");
1935 TPaveText* com_top_mid =
new TPaveText(pav_top_mid_xgauche, pav_top_mid_ybas, pav_top_mid_xdroite, pav_top_mid_yhaut);
1939 Int_t cTextPaveAlign = 12;
1940 com_top_mid->SetTextAlign(cTextPaveAlign);
1942 Int_t cTextPaveFont = 100;
1943 com_top_mid->SetTextFont(cTextPaveFont);
1945 Float_t cTextPaveSize = 0.03;
1946 com_top_mid->SetTextSize(cTextPaveSize);
1947 Int_t cTextBorderSize = 1;
1948 com_top_mid->SetBorderSize(cTextBorderSize);
1950 snprintf(f_in,
fgMaxCar,
" Tower: %d ", SMtower_X);
1951 com_top_mid->AddText(f_in);
1961 Double_t pav_top_mid_xgauche =
BoxLeftX(
"top_mid_box_EB");
1962 Double_t pav_top_mid_xdroite =
BoxRightX(
"top_mid_box_EB");
1963 Double_t pav_top_mid_ybas =
BoxBottomY(
"top_mid_box_EB");
1964 Double_t pav_top_mid_yhaut =
BoxTopY(
"top_mid_box_EB");
1965 TPaveText* com_top_mid =
new TPaveText(pav_top_mid_xgauche, pav_top_mid_ybas, pav_top_mid_xdroite, pav_top_mid_yhaut);
1969 Int_t cTextPaveAlign = 12;
1970 com_top_mid->SetTextAlign(cTextPaveAlign);
1972 Int_t cTextPaveFont = 100;
1973 com_top_mid->SetTextFont(cTextPaveFont);
1975 Float_t cTextPaveSize = 0.03;
1976 com_top_mid->SetTextSize(cTextPaveSize);
1977 Int_t cTextBorderSize = 1;
1978 com_top_mid->SetBorderSize(cTextBorderSize);
1980 snprintf(f_in,
fgMaxCar,
" Tower X: %d ", SMtower_X);
1981 com_top_mid->AddText(f_in);
1982 snprintf(f_in,
fgMaxCar,
" Tower Y: %d ", SMtower_Y);
1983 com_top_mid->AddText(f_in);
1989 Int_t arg_AlreadyRead = 0;
1990 Int_t flag_all_samples = 0;
1991 return SetPaveCrystal(StexCrys, StexStinA, StinEcha, arg_AlreadyRead, flag_all_samples);
1995 const Int_t& StexStinA,
1996 const Int_t& StinEcha,
1997 const Int_t& arg_AlreadyRead,
1998 const Int_t& flag_all_samples) {
2004 Double_t pav_top_right_xgauche =
BoxLeftX(
"top_right_box_EB");
2005 Double_t pav_top_right_xdroite =
BoxRightX(
"top_right_box_EB");
2006 Double_t pav_top_right_ybas =
BoxBottomY(
"top_right_box_EB");
2007 Double_t pav_top_right_yhaut =
BoxTopY(
"top_right_box_EB");
2009 pav_top_right_xgauche =
BoxLeftX(
"top_right_box_EE");
2010 pav_top_right_xdroite =
BoxRightX(
"top_right_box_EE");
2011 pav_top_right_ybas =
BoxBottomY(
"top_right_box_EE");
2012 pav_top_right_yhaut =
BoxTopY(
"top_right_box_EE");
2015 TPaveText* com_top_right =
2016 new TPaveText(pav_top_right_xgauche, pav_top_right_ybas, pav_top_right_xdroite, pav_top_right_yhaut);
2020 Int_t cTextPaveAlign = 12;
2021 com_top_right->SetTextAlign(cTextPaveAlign);
2023 Int_t cTextPaveFont = 100;
2024 com_top_right->SetTextFont(cTextPaveFont);
2026 Float_t cTextPaveSize = 0.03;
2027 com_top_right->SetTextSize(cTextPaveSize);
2028 Int_t cTextBorderSize = 1;
2029 com_top_right->SetBorderSize(cTextBorderSize);
2032 if (arg_AlreadyRead == 0 || (arg_AlreadyRead == 1 && flag_all_samples == 0)) {
2033 snprintf(f_in,
fgMaxCar,
"Channel: %d ", StinEcha);
2035 if (arg_AlreadyRead == 1 && flag_all_samples == 1) {
2038 com_top_right->AddText(f_in);
2039 if (arg_AlreadyRead == 0 || (arg_AlreadyRead == 1 && flag_all_samples == 0)) {
2040 snprintf(f_in,
fgMaxCar,
"Crystal in SM: %d ", StexCrys);
2041 com_top_right->AddText(f_in);
2046 Int_t StinEchap = StinEcha + 1;
2047 if (arg_AlreadyRead == 0 || (arg_AlreadyRead == 1 && flag_all_samples == 0)) {
2048 snprintf(f_in,
fgMaxCar,
"Xtal in SC: %d ", StinEchap);
2050 if (arg_AlreadyRead == 1 && flag_all_samples == 1) {
2053 com_top_right->AddText(f_in);
2054 if (arg_AlreadyRead == 0 || (arg_AlreadyRead == 1 && flag_all_samples == 0)) {
2057 if (IY_Dee_crys == 0) {
2061 snprintf(f_in,
fgMaxCar,
"(IX,IY)[Xtal]=(%d,%d)", IX_Dee_crys, IY_Dee_crys);
2062 com_top_right->AddText(f_in);
2066 return com_top_right;
2070 const Int_t& StexStinA,
2071 const Int_t& StinEcha,
2072 const Int_t& iSample) {
2077 Double_t pav_top_right_xgauche =
BoxLeftX(
"top_right_box_EB");
2078 Double_t pav_top_right_xdroite =
BoxRightX(
"top_right_box_EB");
2079 Double_t pav_top_right_ybas =
BoxBottomY(
"top_right_box_EB");
2080 Double_t pav_top_right_yhaut =
BoxTopY(
"top_right_box_EB");
2082 pav_top_right_xgauche =
BoxLeftX(
"top_right_box_EE");
2083 pav_top_right_xdroite =
BoxRightX(
"top_right_box_EE");
2084 pav_top_right_ybas =
BoxBottomY(
"top_right_box_EE");
2085 pav_top_right_yhaut =
BoxTopY(
"top_right_box_EE");
2088 TPaveText* com_top_right =
2089 new TPaveText(pav_top_right_xgauche, pav_top_right_ybas, pav_top_right_xdroite, pav_top_right_yhaut);
2093 Int_t cTextPaveAlign = 12;
2094 com_top_right->SetTextAlign(cTextPaveAlign);
2096 Int_t cTextPaveFont = 100;
2097 com_top_right->SetTextFont(cTextPaveFont);
2099 Float_t cTextPaveSize = 0.03;
2100 com_top_right->SetTextSize(cTextPaveSize);
2101 Int_t cTextBorderSize = 1;
2102 com_top_right->SetBorderSize(cTextBorderSize);
2105 snprintf(f_in,
fgMaxCar,
" Channel: %d ", StinEcha);
2106 com_top_right->AddText(f_in);
2107 snprintf(f_in,
fgMaxCar,
" Crystal in SM: %d ", StexCrys);
2108 com_top_right->AddText(f_in);
2112 Int_t StinEchap = StinEcha + 1;
2113 snprintf(f_in,
fgMaxCar,
" Channel: %d ", StinEchap);
2114 com_top_right->AddText(f_in);
2117 if (IY_Dee_crys == 0) {
2121 snprintf(f_in,
fgMaxCar,
"(IX,IY)[Xtal]=(%d,%d)", IX_Dee_crys, IY_Dee_crys);
2122 com_top_right->AddText(f_in);
2125 Int_t iSample_p = iSample + 1;
2126 snprintf(f_in,
fgMaxCar,
" Sample: %d ", iSample_p);
2127 com_top_right->AddText(f_in);
2129 return com_top_right;
2136 Double_t pav_bot_xgauche =
BoxLeftX(
"bottom_left_box");
2137 Double_t pav_bot_xdroite =
BoxRightX(
"bottom_right_box");
2138 Double_t pav_bot_ybas =
BoxBottomY(
"bottom_left_box");
2139 Double_t pav_bot_yhaut =
BoxTopY(
"bottom_left_box");
2140 TPaveText* com_bot_mid =
new TPaveText(pav_bot_xgauche, pav_bot_ybas, pav_bot_xdroite, pav_bot_yhaut);
2148 TText*
t1 = com_bot_mid->AddText(
" <= IP (#eta = 0) (#eta = +85) => ");
2149 t1->SetTextColor(couleur_noir);
2153 TText*
t2 = com_bot_mid->AddText(
" <= (#eta = -85) IP (#eta = 0) => ");
2154 t2->SetTextColor(couleur_noir);
2158 TText*
t3 =
nullptr;
2160 t3 = com_bot_mid->AddText(
" <=== LVRB ");
2163 t3 = com_bot_mid->AddText(
" LVRB ===> ");
2165 t3->SetTextColor(couleur_rouge);
2169 TText* t4 =
nullptr;
2171 t4 = com_bot_mid->AddText(
" LVRB ===> ");
2174 t4 = com_bot_mid->AddText(
" <=== LVRB ");
2176 t4->SetTextColor(couleur_bleu_fonce);
2187 if (chtype_number ==
"crystal") {
2190 if (chtype_number ==
"lvrb_top") {
2193 if (chtype_number ==
"lvrb_bottom") {
2213 Double_t pav_top_left_xgauche =
BoxLeftX(
"top_left_box_EE");
2214 Double_t pav_top_left_xdroite =
BoxRightX(
"top_left_box_EE");
2215 Double_t pav_top_left_ybas =
BoxBottomY(
"top_left_box_EE");
2216 Double_t pav_top_left_yhaut =
BoxTopY(
"top_left_box_EE");
2218 if (chopt ==
"standard" || chopt ==
"standGH") {
2219 pav_top_left_xgauche =
BoxLeftX(
"top_left_box_EE");
2220 pav_top_left_xdroite =
BoxRightX(
"top_left_box_EE");
2221 pav_top_left_ybas =
BoxBottomY(
"top_left_box_EE");
2222 pav_top_left_yhaut =
BoxTopY(
"top_left_box_EE");
2225 if (chopt ==
"standDee" || chopt ==
"standStex") {
2226 pav_top_left_xgauche =
BoxLeftX(
"top_left_box_Dee");
2227 pav_top_left_xdroite =
BoxRightX(
"top_left_box_Dee");
2228 pav_top_left_ybas =
BoxBottomY(
"top_left_box_Dee");
2229 pav_top_left_yhaut =
BoxTopY(
"top_left_box_Dee");
2232 if (chopt ==
"several") {
2233 pav_top_left_xgauche =
BoxLeftX(
"several_plots_box");
2234 pav_top_left_xdroite =
BoxRightX(
"several_plots_box");
2235 pav_top_left_ybas =
BoxBottomY(
"several_plots_box");
2236 pav_top_left_yhaut =
BoxTopY(
"several_plots_box");
2238 if (chopt ==
"sevevol") {
2239 pav_top_left_xgauche =
BoxLeftX(
"several_evol_box");
2240 pav_top_left_xdroite =
BoxRightX(
"several_evol_box");
2241 pav_top_left_ybas =
BoxBottomY(
"several_evol_box");
2242 pav_top_left_yhaut =
BoxTopY(
"several_evol_box");
2245 TPaveText* com_top_left =
2246 new TPaveText(pav_top_left_xgauche, pav_top_left_ybas, pav_top_left_xdroite, pav_top_left_yhaut);
2250 Int_t cTextPaveAlign = 12;
2251 com_top_left->SetTextAlign(cTextPaveAlign);
2253 Int_t cTextPaveFont = 100;
2254 com_top_left->SetTextFont(cTextPaveFont);
2256 Float_t cTextPaveSize = 0.04;
2257 com_top_left->SetTextSize(cTextPaveSize);
2258 Int_t cTextBorderSize = 1;
2259 com_top_left->SetBorderSize(cTextBorderSize);
2261 if (chopt ==
"standard") {
2262 snprintf(f_in,
fgMaxCar,
" Dee: %d", DeeNumber);
2263 com_top_left->AddText(f_in);
2264 snprintf(f_in,
fgMaxCar,
" (%s)", DeeType.Data());
2265 com_top_left->AddText(f_in);
2268 if (chopt ==
"standDee" || chopt ==
"standStex" || chopt ==
"standGH") {
2269 snprintf(f_in,
fgMaxCar,
" Dee: %d (%s) ", DeeNumber, DeeType.Data());
2270 com_top_left->AddText(f_in);
2273 return com_top_left;
2281 Double_t pav_top_mid_xgauche =
BoxLeftX(
"top_mid_box_EE");
2282 Double_t pav_top_mid_xdroite =
BoxRightX(
"top_mid_box_EE");
2283 Double_t pav_top_mid_ybas =
BoxBottomY(
"top_mid_box_EE");
2284 Double_t pav_top_mid_yhaut =
BoxTopY(
"top_mid_box_EE");
2285 TPaveText* com_top_mid =
new TPaveText(pav_top_mid_xgauche, pav_top_mid_ybas, pav_top_mid_xdroite, pav_top_mid_yhaut);
2289 Int_t cTextPaveAlign = 12;
2290 com_top_mid->SetTextAlign(cTextPaveAlign);
2292 Int_t cTextPaveFont = 100;
2293 com_top_mid->SetTextFont(cTextPaveFont);
2295 Float_t cTextPaveSize = 0.03;
2296 com_top_mid->SetTextSize(cTextPaveSize);
2297 Int_t cTextBorderSize = 1;
2298 com_top_mid->SetBorderSize(cTextBorderSize);
2302 "Sector: S%d, SC: %d",
2305 com_top_mid->AddText(f_in);
2307 com_top_mid->AddText(f_in);
2309 com_top_mid->AddText(f_in);
2319 Double_t pav_top_mid_xgauche =
BoxLeftX(
"top_mid_box_EE");
2320 Double_t pav_top_mid_xdroite =
BoxRightX(
"top_mid_box_EE");
2321 Double_t pav_top_mid_ybas =
BoxBottomY(
"top_mid_box_EE");
2322 Double_t pav_top_mid_yhaut =
BoxTopY(
"top_mid_box_EE");
2323 TPaveText* com_top_mid =
new TPaveText(pav_top_mid_xgauche, pav_top_mid_ybas, pav_top_mid_xdroite, pav_top_mid_yhaut);
2327 Int_t cTextPaveAlign = 12;
2328 com_top_mid->SetTextAlign(cTextPaveAlign);
2330 Int_t cTextPaveFont = 100;
2331 com_top_mid->SetTextFont(cTextPaveFont);
2333 Float_t cTextPaveSize = 0.03;
2334 com_top_mid->SetTextSize(cTextPaveSize);
2335 Int_t cTextBorderSize = 1;
2336 com_top_mid->SetBorderSize(cTextBorderSize);
2338 snprintf(f_in,
fgMaxCar,
"SC X: %d", DeeSC_X);
2339 com_top_mid->AddText(f_in);
2340 snprintf(f_in,
fgMaxCar,
"SC Y: %d", DeeSC_Y);
2341 com_top_mid->AddText(f_in);
2350 Double_t pav_bot_xgauche =
BoxRightX(
"bottom_mid_box");
2351 Double_t pav_bot_xdroite =
BoxLeftX(
"bottom_mid_box");
2352 Double_t pav_bot_ybas =
BoxBottomY(
"bottom_left_box");
2353 Double_t pav_bot_yhaut =
BoxTopY(
"bottom_left_box");
2354 TPaveText* com_bot_mid =
new TPaveText(pav_bot_xgauche, pav_bot_ybas, pav_bot_xdroite, pav_bot_yhaut);
2361 com_bot_mid->SetTextSize(0.0325);
2363 if (DeeNumber == 1) {
2364 com_bot_mid->AddText(
" y ");
2365 com_bot_mid->AddText(
" #uparrow ");
2366 com_bot_mid->AddText(
" (Near) x #leftarrow #otimes z (Far) ");
2368 if (DeeNumber == 2) {
2369 com_bot_mid->AddText(
" y ");
2370 com_bot_mid->AddText(
" #uparrow ");
2371 com_bot_mid->AddText(
" (Near) x #leftarrow #otimes z (Far) ");
2373 if (DeeNumber == 3) {
2374 com_bot_mid->AddText(
" y ");
2375 com_bot_mid->AddText(
" #uparrow ");
2376 com_bot_mid->AddText(
" (Far) z (#bullet) #rightarrow x (Near) ");
2378 if (DeeNumber == 4) {
2379 com_bot_mid->AddText(
" y ");
2380 com_bot_mid->AddText(
" #uparrow ");
2381 com_bot_mid->AddText(
" (Far) z (#bullet) #rightarrow x (Near) ");
2394 TPaveText* pav_text =
nullptr;
2396 if (StexNumber > 0) {
2399 pav_text =
SetPaveSM(chopt, StexNumber, EB_type);
2403 pav_text =
SetPaveDee(chopt, StexNumber, dee_type);
2406 if (StexNumber == 0) {
2414 TPaveText* pav_text =
nullptr;
2419 pav_text =
SetPaveSC(StinNumber, StexNumber);
2425 TPaveText* pav_text =
nullptr;
2450 if (HistoCode ==
"D_NOE_ChNb" || HistoCode ==
"D_Ped_ChNb" || HistoCode ==
"D_TNo_ChNb" ||
2451 HistoCode ==
"D_LFN_ChNb" || HistoCode ==
"D_HFN_ChNb" || HistoCode ==
"D_MCs_ChNb" ||
2452 HistoCode ==
"D_SCs_ChNb") {
2458 if (HistoCode ==
"D_NOE_ChDs" || HistoCode ==
"D_Ped_ChDs" || HistoCode ==
"D_TNo_ChDs" ||
2459 HistoCode ==
"D_LFN_ChDs" || HistoCode ==
"D_HFN_ChDs" || HistoCode ==
"D_MCs_ChDs" ||
2460 HistoCode ==
"D_SCs_ChDs") {
2465 if (HistoCode ==
"D_MSp_SpNb" || HistoCode ==
"D_SSp_SpNb") {
2470 if (HistoCode ==
"D_MSp_SpDs" || HistoCode ==
"D_SSp_SpDs") {
2475 if (HistoCode ==
"D_Adc_EvNb") {
2479 if (HistoCode ==
"D_Adc_EvDs") {
2484 if (HistoCode ==
"H_Ped_Date" || HistoCode ==
"H_TNo_Date" || HistoCode ==
"H_MCs_Date" ||
2485 HistoCode ==
"H_LFN_Date" || HistoCode ==
"H_HFN_Date" || HistoCode ==
"H_SCs_Date") {
2490 if (HistoCode ==
"H_Ped_RuDs" || HistoCode ==
"H_TNo_RuDs" || HistoCode ==
"H_MCs_RuDs" ||
2491 HistoCode ==
"H_LFN_RuDs" || HistoCode ==
"H_HFN_RuDs" || HistoCode ==
"H_SCs_RuDs") {
2506 XVarHisto.Resize(MaxCar);
2507 XVarHisto =
"(no X variable info)";
2510 if (StexNumber == 0 &&
SubDet ==
"EB") {
2511 XVarHisto =
"Tower number";
2513 if (StexNumber == 0 &&
SubDet ==
"EE") {
2514 XVarHisto =
"SC number";
2516 if (StexNumber != 0) {
2517 XVarHisto =
"Xtal number";
2521 XVarHisto =
"Bin number";
2525 XVarHisto =
"Sample number";
2528 XVarHisto =
"Total noise";
2532 XVarHisto =
"Event number";
2536 XVarHisto =
"ADC count";
2544 XVarHisto =
"Bin number";
2559 YVarHisto.Resize(MaxCar);
2560 YVarHisto =
"(no Y variable info)";
2563 if (HistoCode ==
"D_NOE_ChNb") {
2564 YVarHisto =
"Nb of events";
2566 if (HistoCode ==
"D_Ped_ChNb") {
2567 YVarHisto =
"Pedestal";
2569 if (HistoCode ==
"D_TNo_ChNb") {
2570 YVarHisto =
"Total Noise";
2572 if (HistoCode ==
"D_MCs_ChNb") {
2573 YVarHisto =
"Mean Cor(s,s')";
2575 if (HistoCode ==
"D_LFN_ChNb") {
2576 YVarHisto =
"Low Freq. Noise";
2578 if (HistoCode ==
"D_HFN_ChNb") {
2579 YVarHisto =
"High Freq. Noise";
2581 if (HistoCode ==
"D_SCs_ChNb") {
2582 YVarHisto =
"Sigma Cor(s,s')";
2587 if (StexNumber == 0 &&
SubDet ==
"EB") {
2588 YVarHisto =
"Number of towers";
2590 if (StexNumber == 0 &&
SubDet ==
"EE") {
2591 YVarHisto =
"Number of SCs";
2593 if (StexNumber != 0) {
2594 YVarHisto =
"Number of Xtals";
2599 YVarHisto =
"ADC count";
2602 YVarHisto =
"Number of samples";
2606 YVarHisto =
"ADC count";
2610 YVarHisto =
"Number of events";
2614 YVarHisto =
"Number of runs";
2618 if (HistoCode ==
"H_Ped_Date") {
2619 YVarHisto =
"Pedestal";
2621 if (HistoCode ==
"H_TNo_Date") {
2622 YVarHisto =
"Total Noise";
2624 if (HistoCode ==
"H_MCs_Date") {
2625 YVarHisto =
"Mean Cor(s,s')";
2627 if (HistoCode ==
"H_LFN_Date") {
2628 YVarHisto =
"Low Freq. Noise";
2630 if (HistoCode ==
"H_HFN_Date") {
2631 YVarHisto =
"High Freq. Noise";
2633 if (HistoCode ==
"H_SCs_Date") {
2634 YVarHisto =
"Sigma Cor(s,s')";
2652 chqname.Resize(MaxCar);
2653 chqname =
"(no quantity name info)";
2655 if (chqcode ==
"D_NOE_ChNb") {
2656 chqname =
"Number of events";
2658 if (chqcode ==
"D_NOE_ChDs") {
2659 chqname =
"Nb of events";
2661 if (chqcode ==
"D_Ped_ChNb") {
2662 chqname =
"Pedestal";
2664 if (chqcode ==
"D_Ped_ChDs") {
2665 chqname =
"Pedestal";
2667 if (chqcode ==
"D_TNo_ChNb") {
2668 chqname =
"Total Noise";
2670 if (chqcode ==
"D_TNo_ChDs") {
2671 chqname =
"Total Noise";
2673 if (chqcode ==
"D_MCs_ChNb") {
2674 chqname =
"Mean Cor(s,s')";
2676 if (chqcode ==
"D_MCs_ChDs") {
2677 chqname =
"Mean Cor(s,s')";
2679 if (chqcode ==
"D_LFN_ChNb") {
2680 chqname =
"Low Freq. Noise";
2682 if (chqcode ==
"D_LFN_ChDs") {
2683 chqname =
"Low Freq. Noise";
2685 if (chqcode ==
"D_HFN_ChNb") {
2686 chqname =
"High Freq. Noise";
2688 if (chqcode ==
"D_HFN_ChDs") {
2689 chqname =
"High Freq. Noise";
2691 if (chqcode ==
"D_SCs_ChNb") {
2692 chqname =
"Sigma Cor(s,s')";
2694 if (chqcode ==
"D_SCs_ChDs") {
2695 chqname =
"Sigma Cor(s,s')";
2697 if (chqcode ==
"D_MSp_SpNb") {
2698 chqname =
"Sample means";
2700 if (chqcode ==
"D_MSp_SpDs") {
2701 chqname =
"Sample means";
2703 if (chqcode ==
"D_SSp_SpNb") {
2704 chqname =
"Sample sigmas";
2706 if (chqcode ==
"D_SSp_SpDs") {
2707 chqname =
"Sample sigmas";
2709 if (chqcode ==
"D_Adc_EvNb") {
2710 chqname =
"Sample ADC";
2712 if (chqcode ==
"D_Adc_EvDs") {
2713 chqname =
"Sample ADC distribution";
2715 if (chqcode ==
"H_Ped_Date") {
2716 chqname =
"Pedestal";
2718 if (chqcode ==
"H_TNo_Date") {
2719 chqname =
"Total Noise";
2721 if (chqcode ==
"H_MCs_Date") {
2722 chqname =
"Mean Cor(s,s')";
2724 if (chqcode ==
"H_LFN_Date") {
2725 chqname =
"Low Freq. Noise";
2727 if (chqcode ==
"H_HFN_Date") {
2728 chqname =
"High Freq. Noise";
2730 if (chqcode ==
"H_SCs_Date") {
2731 chqname =
"Sigma Cor(s,s')";
2733 if (chqcode ==
"H_Ped_RuDs") {
2734 chqname =
"Pedestal";
2736 if (chqcode ==
"H_TNo_RuDs") {
2737 chqname =
"Total Noise";
2739 if (chqcode ==
"H_MCs_RuDs") {
2740 chqname =
"Mean Cor(s,s')";
2742 if (chqcode ==
"H_LFN_RuDs") {
2743 chqname =
"Low Freq. Noise";
2745 if (chqcode ==
"H_HFN_RuDs") {
2746 chqname =
"High Freq. Noise";
2748 if (chqcode ==
"H_SCs_RuDs") {
2749 chqname =
"Sigma Cor(s,s')";
2755 Double_t vmin = (Double_t)0.;
2757 if (chqcode ==
"H2LFccMosMatrix") {
2758 vmin = (Double_t)-1.;
2760 if (chqcode ==
"H2HFccMosMatrix") {
2761 vmin = (Double_t)-1.;
2763 if (chqcode ==
"H2CorccInStins") {
2764 vmin = (Double_t)-1.;
2767 if (chqcode ==
"D_NOE_ChNb") {
2768 vmin = (Double_t)0.;
2770 if (chqcode ==
"D_Ped_ChNb") {
2771 vmin = (Double_t)0.;
2773 if (chqcode ==
"D_TNo_ChNb") {
2774 vmin = (Double_t)0.;
2776 if (chqcode ==
"D_MCs_ChNb") {
2777 vmin = (Double_t)-1.;
2779 if (chqcode ==
"D_LFN_ChNb") {
2780 vmin = (Double_t)0.;
2782 if (chqcode ==
"D_HFN_ChNb") {
2783 vmin = (Double_t)0.;
2785 if (chqcode ==
"D_SCs_ChNb") {
2786 vmin = (Double_t)-1.;
2789 if (chqcode ==
"D_NOE_ChDs") {
2790 vmin = (Double_t)0.1;
2792 if (chqcode ==
"D_Ped_ChDs") {
2793 vmin = (Double_t)0.1;
2795 if (chqcode ==
"D_TNo_ChDs") {
2796 vmin = (Double_t)0.1;
2798 if (chqcode ==
"D_MCs_ChDs") {
2799 vmin = (Double_t)0.1;
2801 if (chqcode ==
"D_LFN_ChDs") {
2802 vmin = (Double_t)0.1;
2804 if (chqcode ==
"D_HFN_ChDs") {
2805 vmin = (Double_t)0.1;
2807 if (chqcode ==
"D_SCs_ChDs") {
2808 vmin = (Double_t)0.1;
2811 if (chqcode ==
"D_MSp_SpNb") {
2812 vmin = (Double_t)0.;
2814 if (chqcode ==
"D_MSp_SpDs") {
2815 vmin = (Double_t)0.1;
2817 if (chqcode ==
"D_SSp_SpNb") {
2818 vmin = (Double_t)0.;
2820 if (chqcode ==
"D_SSp_SpDs") {
2821 vmin = (Double_t)0.1;
2824 if (chqcode ==
"D_Adc_EvNb") {
2825 vmin = (Double_t)0.;
2827 if (chqcode ==
"D_Adc_EvDs") {
2828 vmin = (Double_t)0.1;
2831 if (chqcode ==
"H_Ped_Date") {
2832 vmin = (Double_t)0.;
2834 if (chqcode ==
"H_TNo_Date") {
2835 vmin = (Double_t)0.;
2837 if (chqcode ==
"H_MCs_Date") {
2838 vmin = (Double_t)-1.;
2840 if (chqcode ==
"H_LFN_Date") {
2841 vmin = (Double_t)0.;
2843 if (chqcode ==
"H_HFN_Date") {
2844 vmin = (Double_t)0.;
2846 if (chqcode ==
"H_SCs_Date") {
2847 vmin = (Double_t)0.;
2850 if (chqcode ==
"H_Ped_RuDs") {
2851 vmin = (Double_t)0.1;
2853 if (chqcode ==
"H_TNo_RuDs") {
2854 vmin = (Double_t)0.1;
2856 if (chqcode ==
"H_MCs_RuDs") {
2857 vmin = (Double_t)0.1;
2859 if (chqcode ==
"H_LFN_RuDs") {
2860 vmin = (Double_t)0.1;
2862 if (chqcode ==
"H_HFN_RuDs") {
2863 vmin = (Double_t)0.1;
2865 if (chqcode ==
"H_SCs_RuDs") {
2866 vmin = (Double_t)0.1;
2873 Double_t vmax = (Double_t)0.;
2876 if (chqcode ==
"H2LFccMosMatrix") {
2877 vmax = (Double_t)1.;
2879 if (chqcode ==
"H2HFccMosMatrix") {
2880 vmax = (Double_t)1.;
2882 if (chqcode ==
"H2CorccInStins") {
2883 vmax = (Double_t)1.;
2886 if (chqcode ==
"D_NOE_ChNb") {
2887 vmax = (Double_t)500.;
2889 if (chqcode ==
"D_Ped_ChNb") {
2890 vmax = (Double_t)500.;
2892 if (chqcode ==
"D_TNo_ChNb") {
2893 vmax = (Double_t)2.5;
2895 if (chqcode ==
"D_LFN_ChNb") {
2896 vmax = (Double_t)2.5;
2898 if (chqcode ==
"D_HFN_ChNb") {
2899 vmax = (Double_t)2.5;
2901 if (chqcode ==
"D_MCs_ChNb") {
2902 vmax = (Double_t)1.;
2904 if (chqcode ==
"D_SCs_ChNb") {
2905 vmax = (Double_t)1.5;
2908 if (chqcode ==
"D_NOE_ChDs") {
2909 vmax = (Double_t)5000.;
2911 if (chqcode ==
"D_Ped_ChDs") {
2912 vmax = (Double_t)5000.;
2914 if (chqcode ==
"D_TNo_ChDs") {
2915 vmax = (Double_t)5000.;
2917 if (chqcode ==
"D_LFN_ChDs") {
2918 vmax = (Double_t)5000.;
2920 if (chqcode ==
"D_HFN_ChDs") {
2921 vmax = (Double_t)5000.;
2923 if (chqcode ==
"D_MCs_ChDs") {
2924 vmax = (Double_t)5000.;
2926 if (chqcode ==
"D_SCs_ChDs") {
2927 vmax = (Double_t)5000.;
2930 if (chqcode ==
"D_MSp_SpNb") {
2931 vmax = (Double_t)500.;
2933 if (chqcode ==
"D_MSp_SpDs") {
2934 vmax = (Double_t)10.;
2936 if (chqcode ==
"D_SSp_SpNb") {
2937 vmax = (Double_t)5.;
2939 if (chqcode ==
"D_SSp_SpDs") {
2940 vmax = (Double_t)10.;
2943 if (chqcode ==
"D_Adc_EvNb") {
2944 vmax = (Double_t)500.;
2946 if (chqcode ==
"D_Adc_EvDs") {
2947 vmax = (Double_t)150.;
2950 if (chqcode ==
"H_Ped_Date") {
2951 vmax = (Double_t)500.;
2953 if (chqcode ==
"H_TNo_Date") {
2954 vmax = (Double_t)5.;
2956 if (chqcode ==
"H_LFN_Date") {
2957 vmax = (Double_t)5.;
2959 if (chqcode ==
"H_HFN_Date") {
2960 vmax = (Double_t)5.;
2962 if (chqcode ==
"H_MCs_Date") {
2963 vmax = (Double_t)1.;
2965 if (chqcode ==
"H_SCs_Date") {
2966 vmax = (Double_t)0.5;
2969 if (chqcode ==
"H_Ped_RuDs") {
2970 vmax = (Double_t)1000.;
2972 if (chqcode ==
"H_TNo_RuDs") {
2973 vmax = (Double_t)1000.;
2975 if (chqcode ==
"H_LFN_RuDs") {
2976 vmax = (Double_t)1000.;
2978 if (chqcode ==
"H_HFN_RuDs") {
2979 vmax = (Double_t)1000.;
2981 if (chqcode ==
"H_MCs_RuDs") {
2982 vmax = (Double_t)1000.;
2984 if (chqcode ==
"H_SCs_RuDs") {
2985 vmax = (Double_t)1000.;
2990 if (chqcode ==
"H2LFccMosMatrix") {
2991 vmax = (Double_t)1.;
2993 if (chqcode ==
"H2HFccMosMatrix") {
2994 vmax = (Double_t)1.;
2996 if (chqcode ==
"H2CorccInStins") {
2997 vmax = (Double_t)0.05;
3000 if (chqcode ==
"D_NOE_ChNb") {
3001 vmax = (Double_t)500.;
3003 if (chqcode ==
"D_Ped_ChNb") {
3004 vmax = (Double_t)500.;
3006 if (chqcode ==
"D_TNo_ChNb") {
3007 vmax = (Double_t)5.;
3009 if (chqcode ==
"D_LFN_ChNb") {
3010 vmax = (Double_t)5.;
3012 if (chqcode ==
"D_HFN_ChNb") {
3013 vmax = (Double_t)5.;
3015 if (chqcode ==
"D_MCs_ChNb") {
3016 vmax = (Double_t)1.;
3018 if (chqcode ==
"D_SCs_ChNb") {
3019 vmax = (Double_t)2.5;
3022 if (chqcode ==
"D_NOE_ChDs") {
3023 vmax = (Double_t)1000.;
3025 if (chqcode ==
"D_Ped_ChDs") {
3026 vmax = (Double_t)1000.;
3028 if (chqcode ==
"D_TNo_ChDs") {
3029 vmax = (Double_t)1000.;
3031 if (chqcode ==
"D_LFN_ChDs") {
3032 vmax = (Double_t)1000.;
3034 if (chqcode ==
"D_HFN_ChDs") {
3035 vmax = (Double_t)1000.;
3037 if (chqcode ==
"D_MCs_ChDs") {
3038 vmax = (Double_t)1000.;
3040 if (chqcode ==
"D_SCs_ChDs") {
3041 vmax = (Double_t)1000.;
3044 if (chqcode ==
"D_MSp_SpNb") {
3045 vmax = (Double_t)500.;
3047 if (chqcode ==
"D_MSp_SpDs") {
3048 vmax = (Double_t)1000.;
3050 if (chqcode ==
"D_SSp_SpNb") {
3051 vmax = (Double_t)5.;
3053 if (chqcode ==
"D_SSp_SpDs") {
3054 vmax = (Double_t)100.;
3057 if (chqcode ==
"D_Adc_EvNb") {
3058 vmax = (Double_t)500.;
3060 if (chqcode ==
"D_Adc_EvDs") {
3061 vmax = (Double_t)1000.;
3064 if (chqcode ==
"H_Ped_Date") {
3065 vmax = (Double_t)500.;
3067 if (chqcode ==
"H_TNo_Date") {
3068 vmax = (Double_t)5.;
3070 if (chqcode ==
"H_LFN_Date") {
3071 vmax = (Double_t)5.;
3073 if (chqcode ==
"H_HFN_Date") {
3074 vmax = (Double_t)5.;
3076 if (chqcode ==
"H_MCs_Date") {
3077 vmax = (Double_t)1.;
3079 if (chqcode ==
"H_SCs_Date") {
3080 vmax = (Double_t)0.5;
3083 if (chqcode ==
"H_Ped_RuDs") {
3084 vmax = (Double_t)1000.;
3086 if (chqcode ==
"H_TNo_RuDs") {
3087 vmax = (Double_t)1000.;
3089 if (chqcode ==
"H_LFN_RuDs") {
3090 vmax = (Double_t)1000.;
3092 if (chqcode ==
"H_HFN_RuDs") {
3093 vmax = (Double_t)1000.;
3095 if (chqcode ==
"H_MCs_RuDs") {
3096 vmax = (Double_t)1000.;
3098 if (chqcode ==
"H_SCs_RuDs") {
3099 vmax = (Double_t)1000.;
3114 TString StandardDetectorCode =
"?";
3116 if (UserDetector ==
"Super-module" || UserDetector ==
"SuperModule" || UserDetector ==
"super-module" ||
3117 UserDetector ==
"SM" || UserDetector ==
" " || UserDetector ==
"")
3119 StandardDetectorCode =
"SM";
3122 if (UserDetector ==
"DEE" || UserDetector ==
"Dee") {
3123 StandardDetectorCode =
"Dee";
3126 if (UserDetector ==
"Ecal barrel" || UserDetector ==
"EcalBarrel" || UserDetector ==
"ecal barrel" ||
3127 UserDetector ==
"Barrel" || UserDetector ==
"barrel" || UserDetector ==
"EB") {
3128 StandardDetectorCode =
"EB";
3131 if (UserDetector ==
"Ecal endcap" || UserDetector ==
"EcalEndcap" || UserDetector ==
"ecal endcap" ||
3132 UserDetector ==
"Endcap" || UserDetector ==
"endcap" || UserDetector ==
"EE") {
3133 StandardDetectorCode =
"EE";
3136 if (StandardDetectorCode ==
"?") {
3137 std::cout <<
"*TEcnaParHistos::BuildStandardDetectorCode(...)> UserDetector = " << UserDetector
3138 <<
" : code not found." <<
fTTBELL << std::endl;
3142 return StandardDetectorCode;
3147 TString StandardPlotOption =
"?";
3149 if (CallingMethod ==
"1D" || CallingMethod ==
"2DS" || CallingMethod ==
"Time") {
3150 if (UserPlotOption ==
"ONLY ONE" || UserPlotOption ==
"only one" || UserPlotOption ==
"onlyone" ||
3151 UserPlotOption ==
"Only one" || UserPlotOption ==
"OnlyOne" || UserPlotOption ==
"ONLYONE" ||
3152 UserPlotOption ==
fOnlyOnePlot || UserPlotOption ==
" " || UserPlotOption ==
"")
3157 if (UserPlotOption ==
"SAME" || UserPlotOption ==
"Same" || UserPlotOption ==
fSeveralPlot) {
3161 if (UserPlotOption ==
"SAME n" || UserPlotOption ==
"Same n" || UserPlotOption ==
fSameOnePlot) {
3171 if (CallingMethod ==
"1DX") {
3172 if (UserPlotOption ==
"ALL XTALS IN TOWER" || UserPlotOption ==
"ALL CHANNELS IN TOWER" ||
3173 UserPlotOption ==
"AllXtalsInTower" || UserPlotOption ==
"AllChannelsInTower" ||
3174 UserPlotOption ==
"ALL XTALS IN TOW" || UserPlotOption ==
"ALL CHANNELS IN TOW" ||
3175 UserPlotOption ==
"AllXtalsInTow" || UserPlotOption ==
"AllChannelsInTow" ||
3176 UserPlotOption ==
"ALL XTALS IN SC" || UserPlotOption ==
"ALL CHANNELS IN SC" ||
3177 UserPlotOption ==
"AllXtalsInSC" || UserPlotOption ==
"AllChannelsInSC" || UserPlotOption ==
"SAME IN TOWER" ||
3178 UserPlotOption ==
"SameInTower" || UserPlotOption ==
"SAME IN TOW" || UserPlotOption ==
"SameInTow" ||
3179 UserPlotOption ==
"SAME IN SC" || UserPlotOption ==
"SameInSC" || UserPlotOption ==
"Same in tower" ||
3180 UserPlotOption ==
"Same in tow" || UserPlotOption ==
"Same in SC" || UserPlotOption ==
"SameInSC" ||
3187 if (CallingMethod ==
"2D") {
3188 if (UserPlotOption ==
"COLZ" || UserPlotOption ==
" " || UserPlotOption ==
"")
3190 StandardPlotOption =
"COLZ";
3192 if (UserPlotOption ==
"BOX") {
3193 StandardPlotOption =
"BOX";
3195 if (UserPlotOption ==
"TEXT") {
3196 StandardPlotOption =
"TEXT";
3198 if (UserPlotOption ==
"CONTZ") {
3199 StandardPlotOption =
"CONTZ";
3201 if (UserPlotOption ==
"LEGO2Z") {
3202 StandardPlotOption =
"LEGO2Z";
3204 if (UserPlotOption ==
"SURF1Z") {
3205 StandardPlotOption =
"SURF1Z";
3207 if (UserPlotOption ==
"SURF2Z") {
3208 StandardPlotOption =
"SURF2Z";
3210 if (UserPlotOption ==
"SURF3Z") {
3211 StandardPlotOption =
"SURF3Z";
3213 if (UserPlotOption ==
"SURF4") {
3214 StandardPlotOption =
"SURF4";
3216 if (UserPlotOption ==
"ASCII") {
3217 StandardPlotOption =
"ASCII";
3222 if (StandardPlotOption ==
"?") {
3223 std::cout <<
"*TEcnaParHistos::BuildStandardPlotOption(...)> UserPlotOption = " << UserPlotOption
3224 <<
" : code not found." <<
fTTBELL << std::endl;
3228 return StandardPlotOption;
3234 TString StandardHistoCode =
"?";
3235 if (CallingMethod ==
"1D" || CallingMethod ==
"2DS" || CallingMethod ==
"Time") {
3237 if (UserHistoCode ==
"Tower" || UserHistoCode ==
"tower" || UserHistoCode ==
"tow" ||
3238 UserHistoCode ==
"Tower number" || UserHistoCode ==
"tower number" || UserHistoCode ==
"tow nb" ||
3239 UserHistoCode ==
"Tower#" || UserHistoCode ==
"tower#" || UserHistoCode ==
"tow#" || UserHistoCode ==
"Tow#" ||
3240 UserHistoCode ==
"Tow") {
3241 StandardHistoCode =
"Tow";
3244 if (UserHistoCode ==
"Super crystal" || UserHistoCode ==
"SuperCrystal" || UserHistoCode ==
"SuperXtal" ||
3245 UserHistoCode ==
"Super crystal number" || UserHistoCode ==
"SuperCrystalNumber" ||
3246 UserHistoCode ==
"SuperXtalNumber" || UserHistoCode ==
"Super crystal nb" || UserHistoCode ==
"SuperCrystal#" ||
3247 UserHistoCode ==
"SuperXtal#" || UserHistoCode ==
"SC#" || UserHistoCode ==
"SC") {
3248 StandardHistoCode =
"SC";
3251 if (UserHistoCode ==
"Crystal" || UserHistoCode ==
"crystal" || UserHistoCode ==
"Xtal" ||
3252 UserHistoCode ==
"Crystal number" || UserHistoCode ==
"crystal number" || UserHistoCode ==
"Xtal number" ||
3253 UserHistoCode ==
"Crystal#" || UserHistoCode ==
"crystal#" || UserHistoCode ==
"Xtal#" ||
3254 UserHistoCode ==
"Xtal") {
3255 StandardHistoCode =
"Xtal";
3258 if (StandardHistoCode ==
"Tow" || StandardHistoCode ==
"SC" || StandardHistoCode ==
"Xtal") {
3259 StandardHistoCode =
"XtalORStin";
3262 if (UserHistoCode ==
"Sample number" || UserHistoCode ==
"SampleNumber" || UserHistoCode ==
"Sample#" ||
3263 UserHistoCode ==
"Samp#" || UserHistoCode ==
"Sample" || UserHistoCode ==
"sample" || UserHistoCode ==
"Smp") {
3264 StandardHistoCode =
"Smp";
3267 if (UserHistoCode ==
"Event" || UserHistoCode ==
"event" || UserHistoCode ==
"Event number" ||
3268 UserHistoCode ==
"event number" || UserHistoCode ==
"EventNumber" || UserHistoCode ==
"Event#" ||
3269 UserHistoCode ==
"EvtNumber" || UserHistoCode ==
"Evt#" || UserHistoCode ==
"Evt number" ||
3270 UserHistoCode ==
"evt number" || UserHistoCode ==
"Evt") {
3271 StandardHistoCode =
"Evt";
3275 if (StandardHistoCode ==
"?") {
3281 if (StandardHistoCode ==
"?") {
3282 std::cout <<
"*TEcnaParHistos::BuildStandard1DHistoCodeX(...)> UserHistoCode = " << UserHistoCode
3283 <<
" : code not found." <<
fTTBELL << std::endl;
3287 return StandardHistoCode;
3293 TString StandardHistoCode =
"?";
3295 if (CallingMethod ==
"1D" || CallingMethod ==
"2DS" || CallingMethod ==
"Time") {
3297 if (UserHistoCode ==
"Number of crystals" || UserHistoCode ==
"NumberOfCrystals" ||
3298 UserHistoCode ==
"Nb of crystals" || UserHistoCode ==
"NbOfCrystals" || UserHistoCode ==
"Number of xtals" ||
3299 UserHistoCode ==
"NumberOfXtals" || UserHistoCode ==
"Nb of xtals" || UserHistoCode ==
"NbOfXtals" ||
3300 UserHistoCode ==
"nox" || UserHistoCode ==
"NOX") {
3301 StandardHistoCode =
"NOX";
3304 if (UserHistoCode ==
"Number of samples" || UserHistoCode ==
"NumberOfSamples" ||
3305 UserHistoCode ==
"Nb of samples" || UserHistoCode ==
"NbOfSamples" || UserHistoCode ==
"nos" ||
3306 UserHistoCode ==
"NOS") {
3307 StandardHistoCode =
"NOS";
3310 if (UserHistoCode ==
"Number of runs" || UserHistoCode ==
"NumberOfRuns" || UserHistoCode ==
"Nb of runs" ||
3311 UserHistoCode ==
"NbOfRuns" || UserHistoCode ==
"nor" || UserHistoCode ==
"NOR") {
3312 StandardHistoCode =
"NOR";
3316 if (StandardHistoCode ==
"?") {
3321 if (StandardHistoCode ==
"?") {
3322 std::cout <<
"*TEcnaParHistos::BuildStandard1DHistoCodeY(...)> UserHistoCode = " << UserHistoCode
3323 <<
" : code not found." <<
fTTBELL << std::endl;
3327 return StandardHistoCode;
3333 TString StandardHistoCode =
"?";
3336 if (UserHistoCode ==
"Number of events" || UserHistoCode ==
"Nb of evts" || UserHistoCode ==
"NumberbOfEvents" ||
3337 UserHistoCode ==
"NbOfEvts" || UserHistoCode ==
"number of events" || UserHistoCode ==
"noe" ||
3338 UserHistoCode ==
"NOE" || UserHistoCode ==
" " || UserHistoCode ==
"")
3340 StandardHistoCode =
"NOE";
3343 if (UserHistoCode ==
"Pedestals" || UserHistoCode ==
"Pedestal" || UserHistoCode ==
"pedestals" ||
3344 UserHistoCode ==
"pedestal" || UserHistoCode ==
"ped" || UserHistoCode ==
"Ped") {
3345 StandardHistoCode =
"Ped";
3348 if (UserHistoCode ==
"Total noise" || UserHistoCode ==
"TotalNoise" || UserHistoCode ==
"total noise" ||
3349 UserHistoCode ==
"TN" || UserHistoCode ==
"tn" || UserHistoCode ==
"TNo") {
3350 StandardHistoCode =
"TNo";
3353 if (UserHistoCode ==
"Low frequency noise" || UserHistoCode ==
"LowFrequencyNoise" || UserHistoCode ==
"LF noise" ||
3354 UserHistoCode ==
"LFNoise" || UserHistoCode ==
"low frequency noise" || UserHistoCode ==
"lfn" ||
3355 UserHistoCode ==
"LFN") {
3356 StandardHistoCode =
"LFN";
3359 if (UserHistoCode ==
"High frequency noise" || UserHistoCode ==
"HighFrequencyNoise" || UserHistoCode ==
"HF noise" ||
3360 UserHistoCode ==
"HFNoise" || UserHistoCode ==
"high frequency noise" || UserHistoCode ==
"hfn" ||
3361 UserHistoCode ==
"HFN") {
3362 StandardHistoCode =
"HFN";
3365 if (UserHistoCode ==
"Mean correlations between samples" || UserHistoCode ==
"MeanCorrelationsBetweenSamples" ||
3366 UserHistoCode ==
"Correlations between samples" || UserHistoCode ==
"CorrelationsBetweenSamples" ||
3367 UserHistoCode ==
"Mean corss" || UserHistoCode ==
"MeanCorss" || UserHistoCode ==
"Corss" ||
3368 UserHistoCode ==
"corss" || UserHistoCode ==
"Css" || UserHistoCode ==
"css" ||
3369 UserHistoCode ==
"mean correlations between samples" || UserHistoCode ==
"mcs" || UserHistoCode ==
"MCs") {
3370 StandardHistoCode =
"MCs";
3373 if (UserHistoCode ==
"Sigma of correlations between samples" ||
3374 UserHistoCode ==
"SigmaOfCorrelationsBetweenSamples" || UserHistoCode ==
"Sigma corss" ||
3375 UserHistoCode ==
"SigmaCorss" || UserHistoCode ==
"SigCorss" || UserHistoCode ==
"sigcorss" ||
3376 UserHistoCode ==
"SCss" || UserHistoCode ==
"scss" || UserHistoCode ==
"sigma of correlations between samples" ||
3377 UserHistoCode ==
"scs" || UserHistoCode ==
"SCs") {
3378 StandardHistoCode =
"SCs";
3381 if (UserHistoCode ==
"Sample mean" || UserHistoCode ==
"SampleMean" || UserHistoCode ==
"Sample average" ||
3382 UserHistoCode ==
"SampleAverage" || UserHistoCode ==
"SampMean" || UserHistoCode ==
"SampAverage" ||
3383 UserHistoCode ==
"MSp") {
3384 StandardHistoCode =
"MSp";
3387 if (UserHistoCode ==
"Sample sigma" || UserHistoCode ==
"SampleSigma" || UserHistoCode ==
"Sigma of samples" ||
3388 UserHistoCode ==
"SigmaOfSamples" || UserHistoCode ==
"SampSigma" || UserHistoCode ==
"SSp") {
3389 StandardHistoCode =
"SSp";
3392 if (UserHistoCode ==
"date" || UserHistoCode ==
"Date" || UserHistoCode ==
"time" || UserHistoCode ==
"Time") {
3393 StandardHistoCode =
"Time";
3396 if (UserHistoCode ==
"ADC value" || UserHistoCode ==
"ADCValue" || UserHistoCode ==
"Adc value" ||
3397 UserHistoCode ==
"AdcValue" || UserHistoCode ==
"Sample ADC" || UserHistoCode ==
"SampleAdc" ||
3398 UserHistoCode ==
"ADC" || UserHistoCode ==
"Adc") {
3399 StandardHistoCode =
"Adc";
3403 if (StandardHistoCode ==
"?") {
3404 std::cout <<
"*TEcnaParHistos::BuildStandard1DHistoCodeXY(...)> UserHistoCode = " << UserHistoCode
3405 <<
" : code not found." <<
fTTBELL << std::endl;
3409 return StandardHistoCode;
3415 TString StandardHistoCode =
"?";
3416 if (CallingMethod ==
"2D") {
3418 if (UserHistoCode ==
"Correlation" || UserHistoCode ==
"Correlations" || UserHistoCode ==
"correlation" ||
3419 UserHistoCode ==
"correlations" || UserHistoCode ==
"Correl" || UserHistoCode ==
"correl" ||
3420 UserHistoCode ==
"cor" || UserHistoCode ==
"Cor" || UserHistoCode ==
" " || UserHistoCode ==
"")
3422 StandardHistoCode =
"Cor";
3425 if (UserHistoCode ==
"Covariance" || UserHistoCode ==
"Covariances" || UserHistoCode ==
"covariance" ||
3426 UserHistoCode ==
"covariances" || UserHistoCode ==
"Covar" || UserHistoCode ==
"covar" ||
3427 UserHistoCode ==
"cov" || UserHistoCode ==
"Cov") {
3428 StandardHistoCode =
"Cov";
3432 if (StandardHistoCode ==
"?") {
3433 std::cout <<
"*TEcnaParHistos::BuildStandardCovOrCorCode(...)> UserHistoCode = " << UserHistoCode
3434 <<
" : code not found." <<
fTTBELL << std::endl;
3438 return StandardHistoCode;
3444 TString StandardHistoCode =
"?";
3445 if (CallingMethod ==
"2D") {
3447 if (UserHistoCode ==
"Samples" || UserHistoCode ==
"Between samples" || UserHistoCode ==
"samples" ||
3448 UserHistoCode ==
"between samples" || UserHistoCode ==
"BetweenSamples" || UserHistoCode ==
"Samp" ||
3449 UserHistoCode ==
"samp" || UserHistoCode ==
"ss" || UserHistoCode ==
"Mss") {
3450 StandardHistoCode =
"Mss";
3453 if (UserHistoCode ==
"LF channels" || UserHistoCode ==
"LF between channels" || UserHistoCode ==
"LFChannels" ||
3454 UserHistoCode ==
"LFBetweenChannels" || UserHistoCode ==
"LFChan" || UserHistoCode ==
"lfchan" ||
3455 UserHistoCode ==
"LFcc" || UserHistoCode ==
"lfcc" || UserHistoCode ==
"MccLF") {
3456 StandardHistoCode =
"MccLF";
3459 if (UserHistoCode ==
"HF channels" || UserHistoCode ==
"HF between channels" || UserHistoCode ==
"HFChannels" ||
3460 UserHistoCode ==
"HFBetweenChannels" || UserHistoCode ==
"HFChan" || UserHistoCode ==
"hfchan" ||
3461 UserHistoCode ==
"HFcc" || UserHistoCode ==
"hfcc" || UserHistoCode ==
"MccHF") {
3462 StandardHistoCode =
"MccHF";
3465 if (UserHistoCode ==
"LF towers" || UserHistoCode ==
"LF between towers" || UserHistoCode ==
"LFTowers" ||
3466 UserHistoCode ==
"LFBetweenTowers" || UserHistoCode ==
"LFTow" || UserHistoCode ==
"lftow" ||
3467 UserHistoCode ==
"LFtt" || UserHistoCode ==
"lftt" || UserHistoCode ==
"LF SCs" ||
3468 UserHistoCode ==
"LF between SCs" || UserHistoCode ==
"LFSCs" || UserHistoCode ==
"LFBetweenSCs" ||
3469 UserHistoCode ==
"LFSuperXtals" || UserHistoCode ==
"lfsc" || UserHistoCode ==
"LFSC" ||
3470 UserHistoCode ==
"lfsx" || UserHistoCode ==
"MttLF") {
3471 StandardHistoCode =
"MttLF";
3474 if (UserHistoCode ==
"HF towers" || UserHistoCode ==
"HF between towers" || UserHistoCode ==
"HFTowers" ||
3475 UserHistoCode ==
"HFBetweenTowers" || UserHistoCode ==
"HFTow" || UserHistoCode ==
"hftow" ||
3476 UserHistoCode ==
"HFtt" || UserHistoCode ==
"hftt" || UserHistoCode ==
"HF SCs" ||
3477 UserHistoCode ==
"HF between SCs" || UserHistoCode ==
"HFSCs" || UserHistoCode ==
"HFBetweenSCs" ||
3478 UserHistoCode ==
"HFSuperXtals" || UserHistoCode ==
"hfsc" || UserHistoCode ==
"HFSC" ||
3479 UserHistoCode ==
"hfsx" || UserHistoCode ==
"MttHF") {
3480 StandardHistoCode =
"MttHF";
3485 if (StandardHistoCode ==
"?") {
3486 std::cout <<
"*TEcnaParHistos::BuildStandardBetweenWhatCode(...)> UserHistoCode = " << UserHistoCode
3487 <<
" : code not found." <<
fTTBELL << std::endl;
3491 return StandardHistoCode;
3499 if (TypeOfCode ==
"DetectorCode") {
3500 std::cout <<
"*--------------------------------------- Standard detector codes:" << std::endl;
3501 std::cout <<
" EB (ECAL Barrel) " << std::endl;
3502 std::cout <<
" EE (ECAL Endcap) " << std::endl;
3503 std::cout <<
" SM (Barrel Super Module) " << std::endl;
3504 std::cout <<
" Dee (Encap Dee) " << std::endl;
3505 std::cout <<
" Other codes are available" << std::endl;
3506 std::cout <<
" See source file: TEcnaParHistos::BuildStandardDetectorCode(...)." << std::endl;
3507 std::cout <<
"*----------------------------------------------------------------" << std::endl;
3510 if (TypeOfCode ==
"PlotOption") {
3511 std::cout <<
"*--------------------------------------- Standard plot options:" << std::endl;
3512 std::cout <<
" All ROOT DRAW options and: " << std::endl;
3513 std::cout <<
" (nothing) " << std::endl;
3516 std::cout <<
" Other codes are available" << std::endl;
3517 std::cout <<
" See source file: TEcnaParHistos::BuildStandardPlotOption(...)." << std::endl;
3518 std::cout <<
"*--------------------------------------------------------------" << std::endl;
3521 if (TypeOfCode ==
"1DHistoCodeX") {
3522 std::cout <<
"*---------------------- Standard 1D histo codes for X coordinate:" << std::endl;
3523 std::cout <<
" Tow (SM tower) " << std::endl;
3524 std::cout <<
" SC (Dee super crystal) " << std::endl;
3525 std::cout <<
" Xtal (crystal) " << std::endl;
3526 std::cout <<
" Smp (Adc sample) " << std::endl;
3527 std::cout <<
" Evt (event) " << std::endl;
3528 std::cout <<
" Other codes are available" << std::endl;
3529 std::cout <<
" See source file: TEcnaParHistos::BuildStandard1DHistoCodeX(...)." << std::endl;
3530 std::cout <<
"*----------------------------------------------------------------" << std::endl;
3533 if (TypeOfCode ==
"1DHistoCodeY") {
3534 std::cout <<
"*---------------------- Standard 1D histo codes for Y coordinate;" << std::endl;
3535 std::cout <<
" NOX (number of crystals) " << std::endl;
3536 std::cout <<
" NOS (number of samples) " << std::endl;
3537 std::cout <<
" NOR (number of runs) " << std::endl;
3538 std::cout <<
" Other codes are available" << std::endl;
3539 std::cout <<
" See source file: TEcnaParHistos::BuildStandard1DHistoCodeY(...)." << std::endl;
3540 std::cout <<
"*----------------------------------------------------------------" << std::endl;
3543 if (TypeOfCode ==
"1DHistoCodeXY") {
3544 std::cout <<
"*------------------ Standard 1D histo codes for X or Y coordinate;" << std::endl;
3545 std::cout <<
" NOE (number of events) " << std::endl;
3546 std::cout <<
" Ped (pedestal) " << std::endl;
3547 std::cout <<
" TNo (total noise) " << std::endl;
3548 std::cout <<
" LFN (low frequency noise) " << std::endl;
3549 std::cout <<
" HFN (high frequency noise) " << std::endl;
3550 std::cout <<
" MCs (mean correlation between samples) " << std::endl;
3551 std::cout <<
" SCs (sigma of correlations between samples) " << std::endl;
3552 std::cout <<
" MSp (sample mean) " << std::endl;
3553 std::cout <<
" SSp (sample sigma) " << std::endl;
3554 std::cout <<
" Time (time, date) " << std::endl;
3555 std::cout <<
" Adc (ADC sample value) " << std::endl;
3556 std::cout <<
" Other codes are available" << std::endl;
3557 std::cout <<
" See source file: TEcnaParHistos::BuildStandard1DHistoCodeXY(...)." << std::endl;
3558 std::cout <<
"*-----------------------------------------------------------------" << std::endl;
3561 if (TypeOfCode ==
"CovOrCorCode") {
3562 std::cout <<
"*-------- Standard codes for matrix type (correlation or covariance);" << std::endl;
3563 std::cout <<
" Cor (correlation) " << std::endl;
3564 std::cout <<
" cov (covariance) " << std::endl;
3565 std::cout <<
" Other codes are available" << std::endl;
3566 std::cout <<
" See source file: TEcnaParHistos::BuildStandardCovOrCorCode(...)." << std::endl;
3567 std::cout <<
"*--------------------------------------------------------------------" << std::endl;
3570 if (TypeOfCode ==
"BetweenWhatCode") {
3571 std::cout <<
"*-------- Standard codes for quantities in correlation or covariance;" << std::endl;
3572 std::cout <<
" Mss (between samples) " << std::endl;
3573 std::cout <<
" MccLF (low frequency between channels) " << std::endl;
3574 std::cout <<
" MccHF (high frequency between channels) " << std::endl;
3575 std::cout <<
" MttLF (low frequency between towers [if EB] or SC [if EE]) " << std::endl;
3576 std::cout <<
" MttLF (high frequency between towers [if EB] or SC [if EE]) " << std::endl;
3577 std::cout <<
" Other codes are available" << std::endl;
3578 std::cout <<
" See source file: TEcnaParHistos::BuildStandardBetweenWhatCode(...)." << std::endl;
3579 std::cout <<
"*--------------------------------------------------------------------" << std::endl;
3586 TString TechHistoCode =
"?";
3589 if (StandardHistoCode ==
"NOE") {
3590 TechHistoCode =
"D_NOE_ChNb";
3592 if (StandardHistoCode ==
"Ped") {
3593 TechHistoCode =
"D_Ped_ChNb";
3595 if (StandardHistoCode ==
"TNo") {
3596 TechHistoCode =
"D_TNo_ChNb";
3598 if (StandardHistoCode ==
"LFN") {
3599 TechHistoCode =
"D_LFN_ChNb";
3601 if (StandardHistoCode ==
"HFN") {
3602 TechHistoCode =
"D_HFN_ChNb";
3604 if (StandardHistoCode ==
"MCs") {
3605 TechHistoCode =
"D_MCs_ChNb";
3607 if (StandardHistoCode ==
"SCs") {
3608 TechHistoCode =
"D_SCs_ChNb";
3611 if (TechHistoCode ==
"?") {
3612 std::cout <<
"*TEcnaParHistos::GetTechHistoCode(...)> StandardHistoCode = " << StandardHistoCode
3613 <<
" : code not found " <<
fTTBELL << std::endl;
3615 return TechHistoCode;
3620 TString TechHistoCode =
"?";
3623 if (X_Quantity ==
"XtalORStin" && Y_Quantity ==
"NOE") {
3624 TechHistoCode =
"D_NOE_ChNb";
3626 if (X_Quantity ==
"XtalORStin" && Y_Quantity ==
"Ped") {
3627 TechHistoCode =
"D_Ped_ChNb";
3629 if (X_Quantity ==
"XtalORStin" && Y_Quantity ==
"TNo") {
3630 TechHistoCode =
"D_TNo_ChNb";
3632 if (X_Quantity ==
"XtalORStin" && Y_Quantity ==
"LFN") {
3633 TechHistoCode =
"D_LFN_ChNb";
3635 if (X_Quantity ==
"XtalORStin" && Y_Quantity ==
"HFN") {
3636 TechHistoCode =
"D_HFN_ChNb";
3638 if (X_Quantity ==
"XtalORStin" && Y_Quantity ==
"MCs") {
3639 TechHistoCode =
"D_MCs_ChNb";
3641 if (X_Quantity ==
"XtalORStin" && Y_Quantity ==
"SCs") {
3642 TechHistoCode =
"D_SCs_ChNb";
3645 if (X_Quantity ==
"NOE" && Y_Quantity ==
"NOX") {
3646 TechHistoCode =
"D_NOE_ChDs";
3648 if (X_Quantity ==
"Ped" && Y_Quantity ==
"NOX") {
3649 TechHistoCode =
"D_Ped_ChDs";
3651 if (X_Quantity ==
"TNo" && Y_Quantity ==
"NOX") {
3652 TechHistoCode =
"D_TNo_ChDs";
3654 if (X_Quantity ==
"LFN" && Y_Quantity ==
"NOX") {
3655 TechHistoCode =
"D_LFN_ChDs";
3657 if (X_Quantity ==
"HFN" && Y_Quantity ==
"NOX") {
3658 TechHistoCode =
"D_HFN_ChDs";
3660 if (X_Quantity ==
"MCs" && Y_Quantity ==
"NOX") {
3661 TechHistoCode =
"D_MCs_ChDs";
3663 if (X_Quantity ==
"SCs" && Y_Quantity ==
"NOX") {
3664 TechHistoCode =
"D_SCs_ChDs";
3667 if (X_Quantity ==
"Smp" && Y_Quantity ==
"MSp") {
3668 TechHistoCode =
"D_MSp_SpNb";
3670 if (X_Quantity ==
"MSp" && Y_Quantity ==
"NOS") {
3671 TechHistoCode =
"D_MSp_SpDs";
3673 if (X_Quantity ==
"Smp" && Y_Quantity ==
"SSp") {
3674 TechHistoCode =
"D_SSp_SpNb";
3676 if (X_Quantity ==
"SSp" && Y_Quantity ==
"NOS") {
3677 TechHistoCode =
"D_SSp_SpDs";
3680 if (X_Quantity ==
"Evt" && Y_Quantity ==
"Adc") {
3681 TechHistoCode =
"D_Adc_EvNb";
3683 if (X_Quantity ==
"Adc" && Y_Quantity ==
"NOE") {
3684 TechHistoCode =
"D_Adc_EvDs";
3688 if (X_Quantity ==
"Time" && Y_Quantity ==
"Ped") {
3689 TechHistoCode =
"H_Ped_Date";
3691 if (X_Quantity ==
"Ped" && Y_Quantity ==
"NOR") {
3692 TechHistoCode =
"H_Ped_RuDs";
3695 if (X_Quantity ==
"Time" && Y_Quantity ==
"TNo") {
3696 TechHistoCode =
"H_TNo_Date";
3698 if (X_Quantity ==
"TNo" && Y_Quantity ==
"NOR") {
3699 TechHistoCode =
"H_TNo_RuDs";
3702 if (X_Quantity ==
"Time" && Y_Quantity ==
"LFN") {
3703 TechHistoCode =
"H_LFN_Date";
3705 if (X_Quantity ==
"LFN" && Y_Quantity ==
"NOR") {
3706 TechHistoCode =
"H_LFN_RuDs";
3709 if (X_Quantity ==
"Time" && Y_Quantity ==
"HFN") {
3710 TechHistoCode =
"H_HFN_Date";
3712 if (X_Quantity ==
"HFN" && Y_Quantity ==
"NOR") {
3713 TechHistoCode =
"H_HFN_RuDs";
3716 if (X_Quantity ==
"Time" && Y_Quantity ==
"MCs") {
3717 TechHistoCode =
"H_MCs_Date";
3719 if (X_Quantity ==
"MCs" && Y_Quantity ==
"NOR") {
3720 TechHistoCode =
"H_MCs_RuDs";
3723 if (X_Quantity ==
"Time" && Y_Quantity ==
"SCs") {
3724 TechHistoCode =
"H_SCs_Date";
3726 if (X_Quantity ==
"SCs" && Y_Quantity ==
"NOR") {
3727 TechHistoCode =
"H_SCs_RuDs";
3730 if (TechHistoCode ==
"?") {
3731 std::cout <<
"TEcnaParHistos::GetTechHistoCode(...)> HistoCode not found. X_Quantity = " << X_Quantity
3732 <<
", Y_Quantity = " << Y_Quantity << std::endl;
3734 return TechHistoCode;