46 Long_t i_this = (Long_t)
this;
60 Long_t iEcalNumbering = pObjectManager->
GetPointerValue(
"TEcnaNumbering");
61 if (iEcalNumbering == 0) {
135 if (pEcal ==
nullptr) {
147 if (pEcalNumbering ==
nullptr) {
212 if (HistoCode ==
"D_Adc_EvNb" || HistoCode ==
"D_NOE_ChNb" || HistoCode ==
"D_Ped_ChNb" ||
213 HistoCode ==
"D_LFN_ChNb" || HistoCode ==
"D_TNo_ChNb" || HistoCode ==
"D_HFN_ChNb" ||
214 HistoCode ==
"D_MCs_ChNb" || HistoCode ==
"D_SCs_ChNb" || HistoCode ==
"H_Ped_Date" ||
215 HistoCode ==
"H_TNo_Date" || HistoCode ==
"H_MCs_Date" || HistoCode ==
"H_LFN_Date" ||
216 HistoCode ==
"H_HFN_Date" || HistoCode ==
"H_SCs_Date" || (HistoCode ==
"D_MSp_SpNb" && opt_plot !=
"ONLYONE") ||
217 (HistoCode ==
"D_SSp_SpNb" && opt_plot !=
"ONLYONE")) {
221 if ((HistoCode ==
"D_Adc_EvDs" || HistoCode ==
"D_NOE_ChDs" || HistoCode ==
"D_Ped_ChDs" ||
222 HistoCode ==
"D_LFN_ChDs" || HistoCode ==
"D_TNo_ChDs" || HistoCode ==
"D_HFN_ChDs" ||
223 HistoCode ==
"D_MCs_ChDs" || HistoCode ==
"D_SCs_ChDs" || HistoCode ==
"D_MSp_SpDs" ||
224 HistoCode ==
"D_SSp_SpDs" || HistoCode ==
"H_Ped_RuDs" || HistoCode ==
"H_TNo_RuDs" ||
225 HistoCode ==
"H_MCs_RuDs" || HistoCode ==
"H_LFN_RuDs" || HistoCode ==
"H_HFN_RuDs" ||
226 HistoCode ==
"H_SCs_RuDs") &&
227 opt_plot !=
"ONLYONE") {
239 if (HistoCode ==
"D_Adc_EvNb" || HistoCode ==
"D_NOE_ChNb" || HistoCode ==
"D_Ped_ChNb" ||
240 HistoCode ==
"D_LFN_ChNb" || HistoCode ==
"D_TNo_ChNb" || HistoCode ==
"D_HFN_ChNb" ||
241 HistoCode ==
"D_MCs_ChNb" || HistoCode ==
"D_SCs_ChNb" || HistoCode ==
"H_Ped_Date" ||
242 HistoCode ==
"H_TNo_Date" || HistoCode ==
"H_MCs_Date" || HistoCode ==
"H_LFN_Date" ||
243 HistoCode ==
"H_HFN_Date" || HistoCode ==
"H_SCs_Date" || (HistoCode ==
"D_MSp_SpNb" && opt_plot !=
"ONLYONE") ||
244 (HistoCode ==
"D_SSp_SpNb" && opt_plot !=
"ONLYONE")) {
248 if ((HistoCode ==
"D_Adc_EvDs" || HistoCode ==
"D_NOE_ChDs" || HistoCode ==
"D_Ped_ChDs" ||
249 HistoCode ==
"D_LFN_ChDs" || HistoCode ==
"D_TNo_ChDs" || HistoCode ==
"D_HFN_ChDs" ||
250 HistoCode ==
"D_MCs_ChDs" || HistoCode ==
"D_SCs_ChDs" || HistoCode ==
"D_MSp_SpDs" ||
251 HistoCode ==
"D_SSp_SpDs" || HistoCode ==
"H_Ped_RuDs" || HistoCode ==
"H_TNo_RuDs" ||
252 HistoCode ==
"H_MCs_RuDs" || HistoCode ==
"H_LFN_RuDs" || HistoCode ==
"H_HFN_RuDs" ||
253 HistoCode ==
"H_SCs_RuDs") &&
254 opt_plot !=
"ONLYONE") {
266 if (chformat ==
"petit") {
269 if (chformat ==
"moyen") {
272 if (chformat ==
"grand") {
276 if (chformat ==
"etaphiSM") {
279 if (chformat ==
"phietaEB") {
283 if (chformat ==
"IXIYDee") {
286 if (chformat ==
"IYIXEE") {
297 if (chformat ==
"petit") {
300 if (chformat ==
"moyen") {
303 if (chformat ==
"grand") {
307 if (chformat ==
"etaphiSM") {
310 if (chformat ==
"phietaEB") {
314 if (chformat ==
"IXIYDee") {
317 if (chformat ==
"IYIXEE") {
331 Double_t
value = 0.4;
333 if (chtype ==
"general_comment") {
337 if (chtype ==
"top_left_box_SM") {
340 if (chtype ==
"top_left_box_EB") {
343 if (chtype ==
"top_mid_box_EB") {
346 if (chtype ==
"top_right_box_EB") {
350 if (chtype ==
"top_left_box_Dee") {
353 if (chtype ==
"top_left_box_EE") {
356 if (chtype ==
"top_mid_box_EE") {
359 if (chtype ==
"top_right_box_EE") {
363 if (chtype ==
"bottom_left_box") {
366 if (chtype ==
"bottom_left_box_evol") {
369 if (chtype ==
"bottom_mid_box") {
372 if (chtype ==
"bottom_right_box") {
375 if (chtype ==
"bottom_right_box_evol") {
378 if (chtype ==
"bottom_right_box_evpr") {
382 if (chtype ==
"several_plots_box") {
385 if (chtype ==
"several_evol_box") {
388 if (chtype ==
"several_evpr_box") {
398 Double_t
value = 0.6;
400 if (chtype ==
"general_comment") {
404 if (chtype ==
"top_left_box_SM") {
407 if (chtype ==
"top_left_box_EB") {
410 if (chtype ==
"top_mid_box_EB") {
413 if (chtype ==
"top_right_box_EB") {
417 if (chtype ==
"top_left_box_Dee") {
420 if (chtype ==
"top_left_box_EE") {
423 if (chtype ==
"top_mid_box_EE") {
426 if (chtype ==
"top_right_box_EE") {
430 if (chtype ==
"bottom_left_box") {
433 if (chtype ==
"bottom_left_box_evol") {
436 if (chtype ==
"bottom_mid_box") {
439 if (chtype ==
"bottom_right_box") {
442 if (chtype ==
"bottom_right_box_evol") {
445 if (chtype ==
"bottom_right_box_evpr") {
449 if (chtype ==
"several_plots_box") {
452 if (chtype ==
"several_evol_box") {
455 if (chtype ==
"several_evpr_box") {
465 Double_t
value = 0.8;
467 if (chtype ==
"general_comment") {
471 if (chtype ==
"top_left_box_SM") {
474 if (chtype ==
"top_left_box_EB") {
477 if (chtype ==
"top_mid_box_EB") {
480 if (chtype ==
"top_right_box_EB") {
484 if (chtype ==
"top_left_box_Dee") {
487 if (chtype ==
"top_left_box_EE") {
490 if (chtype ==
"top_mid_box_EE") {
493 if (chtype ==
"top_right_box_EE") {
497 if (chtype ==
"bottom_left_box") {
500 if (chtype ==
"bottom_left_box_evol") {
503 if (chtype ==
"bottom_right_box") {
506 if (chtype ==
"bottom_right_box_evol") {
509 if (chtype ==
"bottom_right_box_evpr") {
512 if (chtype ==
"several_plots_box") {
515 if (chtype ==
"several_evol_box") {
518 if (chtype ==
"several_evpr_box") {
528 Double_t
value = 0.9;
530 if (chtype ==
"general_comment") {
534 if (chtype ==
"top_left_box_SM") {
537 if (chtype ==
"top_left_box_EB") {
540 if (chtype ==
"top_mid_box_EB") {
543 if (chtype ==
"top_right_box_EB") {
547 if (chtype ==
"top_left_box_Dee") {
550 if (chtype ==
"top_left_box_EE") {
553 if (chtype ==
"top_mid_box_EE") {
556 if (chtype ==
"top_right_box_EE") {
560 if (chtype ==
"bottom_left_box") {
563 if (chtype ==
"bottom_left_box_evol") {
566 if (chtype ==
"bottom_right_box") {
569 if (chtype ==
"bottom_right_box_Dee") {
573 if (chtype ==
"bottom_right_box_evol") {
576 if (chtype ==
"bottom_right_box_evpr") {
579 if (chtype ==
"several_plots_box") {
582 if (chtype ==
"several_evol_box") {
585 if (chtype ==
"several_evpr_box") {
603 if (!(user_color_palette ==
"Rainbow" || user_color_palette ==
"rainbow")) {
606 if (user_color_palette ==
"Rainbow" || user_color_palette ==
"rainbow") {
616 TColor* my_color =
new TColor();
622 if (user_color_number == 0) {
625 if (user_color_number == 1) {
628 if (user_color_number == 2) {
631 if (user_color_number == 3) {
632 couleur = (Color_t)my_color->GetColor(
"#009900");
634 if (user_color_number == 4) {
637 if (user_color_number == 5) {
638 couleur = (Color_t)my_color->GetColor(
"#9900BB");
643 if (user_color_number == 0) {
644 couleur = (Color_t)my_color->GetColor(
"#EE0000");
646 if (user_color_number == 1) {
647 couleur = (Color_t)my_color->GetColor(
"#FF6611");
649 if (user_color_number == 2) {
650 couleur = (Color_t)my_color->GetColor(
"#FFCC00");
652 if (user_color_number == 3) {
653 couleur = (Color_t)my_color->GetColor(
"#009900");
655 if (user_color_number == 4) {
656 couleur = (Color_t)my_color->GetColor(
"#0044EE");
658 if (user_color_number == 5) {
659 couleur = (Color_t)my_color->GetColor(
"#6633BB");
661 if (user_color_number == 6) {
662 couleur = (Color_t)my_color->GetColor(
"#9900BB");
681 if (chcolor ==
"noir") {
684 if (chcolor ==
"rouge") {
687 if (chcolor ==
"vert_fonce") {
690 if (chcolor ==
"bleu_fonce") {
693 if (chcolor ==
"jaune") {
696 if (chcolor ==
"rose") {
699 if (chcolor ==
"bleu_clair") {
702 if (chcolor ==
"vert") {
705 if (chcolor ==
"bleu") {
708 if (chcolor ==
"blanc") {
712 if (chcolor ==
"marron23") {
715 if (chcolor ==
"marron24") {
718 if (chcolor ==
"marron25") {
721 if (chcolor ==
"marron27") {
724 if (chcolor ==
"marron28") {
728 if (chcolor ==
"bleu33") {
731 if (chcolor ==
"bleu36") {
734 if (chcolor ==
"bleu38") {
737 if (chcolor ==
"bleu39") {
741 if (chcolor ==
"orange41") {
744 if (chcolor ==
"orange42") {
748 if (chcolor ==
"rouge44") {
751 if (chcolor ==
"rouge46") {
754 if (chcolor ==
"rouge47") {
757 if (chcolor ==
"rouge48") {
760 if (chcolor ==
"rouge49") {
763 if (chcolor ==
"rouge50") {
767 if (chcolor ==
"vert31") {
770 if (chcolor ==
"vert32") {
773 if (chcolor ==
"vert36") {
776 if (chcolor ==
"vert37") {
780 if (chcolor ==
"violet") {
784 if (chcolor ==
"turquoise29") {
788 if (chcolor ==
"gris12") {
791 if (chcolor ==
"gris13") {
794 if (chcolor ==
"gris14") {
797 if (chcolor ==
"gris15") {
800 if (chcolor ==
"gris16") {
803 if (chcolor ==
"gris17") {
806 if (chcolor ==
"gris18") {
830 gStyle->SetPalette(1,
nullptr);
833 gStyle->SetOptDate(0);
836 gStyle->SetTitleW(0.5);
837 gStyle->SetTitleH(0.075);
840 gStyle->SetTitleW(0.8);
841 gStyle->SetTitleH(0.075);
845 gStyle->SetTitleW(0.5);
846 gStyle->SetTitleH(0.075);
850 gStyle->SetTitleW(0.2);
851 gStyle->SetTitleH(0.095);
855 gStyle->SetTitleW(0.45);
856 gStyle->SetTitleH(0.08);
860 gStyle->SetTitleW(0.85);
861 gStyle->SetTitleH(0.08);
865 gStyle->SetTitleW(0.225);
866 gStyle->SetTitleH(0.095);
870 gStyle->SetTitleW(0.5);
871 gStyle->SetTitleH(0.08);
875 gStyle->SetOptStat(1110);
879 gStyle->SetStatW(0.55);
880 gStyle->SetStatH(0.2);
885 gStyle->SetStatW(0.375);
886 gStyle->SetStatH(0.180);
887 gStyle->SetStatY(0.9875);
890 gStyle->SetStatW(0.375);
891 gStyle->SetStatH(0.180);
892 gStyle->SetStatY(0.9875);
896 gStyle->SetStatW(0.375);
897 gStyle->SetStatH(0.180);
898 gStyle->SetStatY(0.9875);
903 gStyle->SetMarkerStyle(1);
905 gStyle->SetMarkerStyle(20);
914 gStyle->SetPadBottomMargin(0.125);
915 gStyle->SetPadTopMargin(0.125);
916 gStyle->SetPadLeftMargin(0.125);
917 gStyle->SetPadRightMargin(0.125);
920 gStyle->SetPadBottomMargin(0.125);
921 gStyle->SetPadTopMargin(0.135);
922 gStyle->SetPadLeftMargin(0.135);
923 gStyle->SetPadRightMargin(0.135);
927 gStyle->SetPadBottomMargin(0.145);
928 gStyle->SetPadTopMargin(0.135);
929 gStyle->SetPadLeftMargin(0.125);
930 gStyle->SetPadRightMargin(0.125);
934 gStyle->SetPadBottomMargin(0.120);
935 gStyle->SetPadTopMargin(0.110);
936 gStyle->SetPadLeftMargin(0.130);
937 gStyle->SetPadRightMargin(0.130);
940 gStyle->SetPadBottomMargin(0.145);
941 gStyle->SetPadTopMargin(0.135);
942 gStyle->SetPadLeftMargin(0.125);
943 gStyle->SetPadRightMargin(0.125);
947 gStyle->SetPadBottomMargin(0.145);
948 gStyle->SetPadTopMargin(0.135);
949 gStyle->SetPadLeftMargin(0.105);
950 gStyle->SetPadRightMargin(0.115);
953 gStyle->SetPadBottomMargin((Float_t)0.125);
954 gStyle->SetPadTopMargin((Float_t)0.175);
955 gStyle->SetPadLeftMargin((Float_t)0.115);
956 gStyle->SetPadRightMargin((Float_t)0.05);
960 gStyle->SetPadBottomMargin(0.115);
961 gStyle->SetPadTopMargin(0.155);
962 gStyle->SetPadLeftMargin(0.15);
963 gStyle->SetPadRightMargin(0.05);
967 gStyle->SetPadBottomMargin(0.1275);
968 gStyle->SetPadTopMargin(0.165);
969 gStyle->SetPadLeftMargin(0.15);
970 gStyle->SetPadRightMargin(0.05);
973 if (
HistoType ==
"Evol" && opt_plot ==
"ONLYONE") {
974 gStyle->SetPadBottomMargin(0.110);
975 gStyle->SetPadTopMargin(0.2);
976 gStyle->SetPadLeftMargin(0.115);
977 gStyle->SetPadRightMargin(0.035);
979 if (
HistoType ==
"Evol" && opt_plot ==
"SAME") {
980 gStyle->SetPadBottomMargin(0.110);
981 gStyle->SetPadTopMargin(0.185);
982 gStyle->SetPadLeftMargin(0.115);
983 gStyle->SetPadRightMargin(0.035);
985 if (
HistoType ==
"Evol" && opt_plot ==
"SAME n") {
986 gStyle->SetPadBottomMargin(0.110);
987 gStyle->SetPadTopMargin(0.1);
988 gStyle->SetPadLeftMargin(0.115);
989 gStyle->SetPadRightMargin(0.035);
992 if (
HistoType ==
"EvolProj" && opt_plot ==
"ONLYONE") {
993 gStyle->SetPadBottomMargin(0.1275);
994 gStyle->SetPadTopMargin(0.165);
995 gStyle->SetPadLeftMargin(0.15);
996 gStyle->SetPadRightMargin(0.05);
998 if (
HistoType ==
"EvolProj" && opt_plot ==
"SAME") {
999 gStyle->SetPadBottomMargin(0.110);
1000 gStyle->SetPadTopMargin(0.185);
1001 gStyle->SetPadLeftMargin(0.115);
1002 gStyle->SetPadRightMargin(0.035);
1004 if (
HistoType ==
"EvolProj" && opt_plot ==
"SAME n") {
1005 gStyle->SetPadBottomMargin(0.110);
1006 gStyle->SetPadTopMargin(0.1);
1007 gStyle->SetPadLeftMargin(0.115);
1008 gStyle->SetPadRightMargin(0.035);
1024 Bool_t b_true = kTRUE;
1025 Bool_t b_false = kFALSE;
1027 histo->SetStats(b_false);
1030 histo->SetStats(b_false);
1033 histo->SetStats(b_true);
1042 histo->GetXaxis()->SetTitleOffset((Float_t)1.05);
1043 histo->GetXaxis()->SetTitleSize((Float_t)0.04);
1045 histo->GetXaxis()->SetLabelOffset((Float_t)0.006);
1046 histo->GetXaxis()->SetLabelSize((Float_t)0.04);
1048 histo->GetXaxis()->SetTickLength((Float_t)0.03);
1049 histo->GetXaxis()->SetNdivisions((Int_t)510);
1052 histo->GetYaxis()->SetTitleOffset((Float_t)1.5);
1053 histo->GetYaxis()->SetTitleSize((Float_t)0.04);
1055 histo->GetYaxis()->SetLabelOffset((Float_t)0.01);
1056 histo->GetYaxis()->SetLabelSize((Float_t)0.04);
1058 histo->GetYaxis()->SetTickLength((Float_t)0.03);
1059 histo->GetYaxis()->SetNdivisions((Int_t)510);
1064 histo->GetXaxis()->SetTitleOffset((Float_t)1.05);
1065 histo->GetXaxis()->SetTitleSize((Float_t)0.04);
1067 histo->GetXaxis()->SetLabelOffset((Float_t)0.006);
1068 histo->GetXaxis()->SetLabelSize((Float_t)0.04);
1070 histo->GetXaxis()->SetTickLength((Float_t)0.03);
1071 histo->GetXaxis()->SetNdivisions((Int_t)510);
1074 histo->GetYaxis()->SetTitleOffset((Float_t)1.75);
1075 histo->GetYaxis()->SetTitleSize((Float_t)0.04);
1077 histo->GetYaxis()->SetLabelOffset((Float_t)0.01);
1078 histo->GetYaxis()->SetLabelSize((Float_t)0.04);
1080 histo->GetYaxis()->SetTickLength((Float_t)0.03);
1081 histo->GetYaxis()->SetNdivisions((Int_t)510);
1085 (
HistoType ==
"EvolProj" && !(opt_plot ==
"SAME" || opt_plot ==
"SAME n"))) {
1087 histo->GetXaxis()->SetTitleOffset((Float_t)1.25);
1088 histo->GetXaxis()->SetTitleSize((Float_t)0.04);
1090 histo->GetXaxis()->SetLabelOffset((Float_t)0.005);
1091 histo->GetXaxis()->SetLabelSize((Float_t)0.04);
1093 histo->GetXaxis()->SetTickLength((Float_t)0.03);
1094 histo->GetXaxis()->SetNdivisions((Int_t)510);
1097 histo->GetYaxis()->SetTitleOffset((Float_t)1.75);
1098 histo->GetYaxis()->SetTitleSize((Float_t)0.04);
1100 histo->GetYaxis()->SetLabelOffset((Float_t)0.01);
1101 histo->GetYaxis()->SetLabelSize((Float_t)0.04);
1103 histo->GetYaxis()->SetTickLength((Float_t)0.03);
1104 histo->GetYaxis()->SetNdivisions((Int_t)510);
1107 if (
HistoType ==
"EvolProj" && (opt_plot ==
"SAME" || opt_plot ==
"SAME n")) {
1109 histo->GetXaxis()->SetTitleOffset((Float_t)1.25);
1110 histo->GetXaxis()->SetTitleSize((Float_t)0.04);
1112 histo->GetXaxis()->SetLabelOffset((Float_t)0.005);
1113 histo->GetXaxis()->SetLabelSize((Float_t)0.04);
1115 histo->GetXaxis()->SetTickLength((Float_t)0.03);
1116 histo->GetXaxis()->SetNdivisions((Int_t)510);
1119 histo->GetYaxis()->SetTitleOffset((Float_t)1.25);
1120 histo->GetYaxis()->SetTitleSize((Float_t)0.04);
1122 histo->GetYaxis()->SetLabelOffset((Float_t)0.01);
1123 histo->GetYaxis()->SetLabelSize((Float_t)0.04);
1125 histo->GetYaxis()->SetTickLength((Float_t)0.03);
1126 histo->GetYaxis()->SetNdivisions((Int_t)510);
1131 histo->GetXaxis()->SetTitleOffset((Float_t)1.25);
1132 histo->GetXaxis()->SetTitleSize((Float_t)0.04);
1134 histo->GetXaxis()->SetLabelOffset((Float_t)0.005);
1135 histo->GetXaxis()->SetLabelSize((Float_t)0.04);
1137 histo->GetXaxis()->SetTickLength((Float_t)0.03);
1138 histo->GetXaxis()->SetNdivisions((Int_t)510);
1141 histo->GetYaxis()->SetTitleOffset((Float_t)1.45);
1142 histo->GetYaxis()->SetTitleSize((Float_t)0.04);
1144 histo->GetYaxis()->SetLabelOffset((Float_t)0.01);
1145 histo->GetYaxis()->SetLabelSize((Float_t)0.04);
1147 histo->GetYaxis()->SetTickLength((Float_t)0.03);
1148 histo->GetYaxis()->SetNdivisions((Int_t)510);
1153 histo->GetXaxis()->SetTitleOffset((Float_t)1.7);
1154 histo->GetXaxis()->SetTitleSize((Float_t)0.04);
1156 histo->GetXaxis()->SetLabelOffset((Float_t)0.005);
1157 histo->GetXaxis()->SetLabelSize((Float_t)0.04);
1159 histo->GetXaxis()->SetTickLength((Float_t)0.03);
1160 histo->GetXaxis()->SetNdivisions((Int_t)510);
1163 histo->GetYaxis()->SetTitleOffset((Float_t)1.85);
1164 histo->GetYaxis()->SetTitleSize((Float_t)0.04);
1166 histo->GetYaxis()->SetLabelOffset((Float_t)0.01);
1167 histo->GetYaxis()->SetLabelSize((Float_t)0.04);
1169 histo->GetYaxis()->SetTickLength((Float_t)0.03);
1170 histo->GetYaxis()->SetNdivisions((Int_t)510);
1175 histo->GetXaxis()->SetTitleOffset((Float_t)9999.);
1176 histo->GetXaxis()->SetTitleSize((Float_t)0.05);
1178 histo->GetXaxis()->SetLabelOffset((Float_t)9999.);
1179 histo->GetXaxis()->SetLabelSize((Float_t)0.);
1181 histo->GetXaxis()->SetNdivisions((Int_t)1);
1182 histo->GetXaxis()->SetTickLength((Float_t)0.);
1185 histo->GetYaxis()->SetTitleOffset((Float_t)9999.);
1186 histo->GetYaxis()->SetTitleSize((Float_t)0.05);
1188 histo->GetYaxis()->SetLabelOffset((Float_t)9999.);
1189 histo->GetYaxis()->SetLabelSize((Float_t)0.);
1191 histo->GetYaxis()->SetNdivisions((Int_t)1);
1192 histo->GetYaxis()->SetTickLength((Float_t)0.);
1198 histo->GetXaxis()->SetTitleOffset((Float_t)9999.);
1199 histo->GetXaxis()->SetTitleSize((Float_t)0.075);
1201 histo->GetXaxis()->SetLabelOffset((Float_t)9999.);
1202 histo->GetXaxis()->SetLabelSize((Float_t)0.);
1204 histo->GetXaxis()->SetNdivisions((Int_t)1);
1205 histo->GetXaxis()->SetTickLength((Float_t)0.);
1208 histo->GetYaxis()->SetTitleOffset((Float_t)9999.);
1209 histo->GetYaxis()->SetTitleSize((Float_t)0.075);
1211 histo->GetYaxis()->SetLabelOffset((Float_t)9999.);
1212 histo->GetYaxis()->SetLabelSize((Float_t)0.);
1214 histo->GetYaxis()->SetNdivisions((Int_t)1);
1215 histo->GetYaxis()->SetTickLength((Float_t)0.);
1222 Float_t tit_off = 1.;
1227 if (
opt ==
"Towx") {
1230 if (
opt ==
"Towy") {
1239 if (
opt ==
"SMyInEB") {
1255 if (
opt ==
"Deex") {
1258 if (
opt ==
"Deey") {
1273 Float_t tit_siz = 0.045;
1282 Float_t lab_off = 0.02;
1287 if (
opt ==
"Towx") {
1290 if (
opt ==
"Towy") {
1312 if (
opt ==
"Deex") {
1315 if (
opt ==
"Deey") {
1330 Float_t lab_siz = 0.035;
1349 Float_t tic_siz = 0.;
1353 if (
opt ==
"Deex") {
1356 if (
opt ==
"Deey") {
1381 graph->GetXaxis()->SetTitleOffset((Float_t)1.10);
1382 graph->GetXaxis()->SetTitleSize((Float_t)0.04);
1384 graph->GetXaxis()->SetLabelOffset((Float_t)0.015);
1385 graph->GetXaxis()->SetLabelSize((Float_t)0.04);
1387 graph->GetXaxis()->SetTickLength((Float_t)0.02);
1388 graph->GetXaxis()->SetNdivisions((Int_t)510);
1391 graph->GetYaxis()->SetTitleOffset((Float_t)1.25);
1392 graph->GetYaxis()->SetTitleSize((Float_t)0.04);
1394 graph->GetYaxis()->SetLabelOffset((Float_t)0.01);
1395 graph->GetYaxis()->SetLabelSize((Float_t)0.04);
1397 graph->GetYaxis()->SetTickLength((Float_t)0.03);
1398 graph->GetYaxis()->SetNdivisions((Int_t)510);
1404 if (opt_plot ==
"Dee") {
1407 if (opt_plot ==
"EE") {
1408 Double_t vertic_empty_strip_1 = 1.;
1409 if (DeeNumber == 1) {
1412 if (DeeNumber == 2) {
1415 if (DeeNumber == 3) {
1418 if (DeeNumber == 4) {
1419 offset = vertic_empty_strip_1 + 0.;
1429 if (DeeNumber == 1) {
1432 if (DeeNumber == 2) {
1435 if (DeeNumber == 3) {
1438 if (DeeNumber == 4) {
1448 if (opt_plot ==
"Dee") {
1449 if (DeeNumber == 1) {
1452 if (DeeNumber == 2) {
1455 if (DeeNumber == 3) {
1458 if (DeeNumber == 4) {
1462 if (opt_plot ==
"EE") {
1463 if (DeeNumber == 1) {
1466 if (DeeNumber == 2) {
1469 if (DeeNumber == 3) {
1472 if (DeeNumber == 4) {
1500 TPaveText* title_g1;
1502 if (comment !=
"") {
1505 Double_t pav_gen_xgauche =
BoxLeftX(
"general_comment");
1506 Double_t pav_gen_xdroite =
BoxRightX(
"general_comment");
1507 Double_t pav_gen_ybas =
BoxBottomY(
"general_comment");
1508 Double_t pav_gen_yhaut =
BoxTopY(
"general_comment");
1510 title_g1 =
new TPaveText(pav_gen_xgauche, pav_gen_ybas, pav_gen_xdroite, pav_gen_yhaut);
1513 Option_t* opt_pav =
"arc";
1514 title_g1->SetOption(opt_pav);
1516 TString tit_gen = comment.Data();
1522 title_g1->AddText(tit_gen);
1526 Int_t cTextPaveAlign = 12;
1527 title_g1->SetTextAlign(cTextPaveAlign);
1529 Int_t cTextPaveFont = 40;
1530 title_g1->SetTextFont(cTextPaveFont);
1532 Float_t cTextPaveSize = 0.04;
1533 title_g1->SetTextSize(cTextPaveSize);
1534 Int_t cTextBorderSize = 0;
1535 title_g1->SetBorderSize(cTextBorderSize);
1536 Double_t cTextPaveRadius = 5.;
1537 title_g1->SetCornerRadius(cTextPaveRadius);
1549 const Int_t& nb_of_samples,
1551 const TString& run_type,
1552 const Int_t& first_evt,
1553 const Int_t& last_evt,
1554 const TString& nb_col) {
1560 Double_t pav_bot_left_xgauche =
BoxLeftX(
"bottom_left_box");
1561 Double_t pav_bot_left_xdroite =
BoxRightX(
"bottom_left_box");
1562 Double_t pav_bot_left_ybas =
BoxBottomY(
"bottom_left_box");
1563 Double_t pav_bot_left_yhaut =
BoxTopY(
"bottom_left_box");
1565 TPaveText* com_bot_left =
1566 new TPaveText(pav_bot_left_xgauche, pav_bot_left_ybas, pav_bot_left_xdroite, pav_bot_left_yhaut);
1570 Int_t cTextPaveAlign = 12;
1571 com_bot_left->SetTextAlign(cTextPaveAlign);
1573 Int_t cTextPaveFont = 100;
1574 com_bot_left->SetTextFont(cTextPaveFont);
1576 Float_t cTextPaveSize = 0.025;
1577 com_bot_left->SetTextSize(cTextPaveSize);
1579 Int_t cTextBorderSize = 1;
1580 com_bot_left->SetBorderSize(cTextBorderSize);
1582 if (nb_col ==
"TwoCol") {
1583 cTextPaveSize = 0.035;
1584 com_bot_left->SetTextSize(cTextPaveSize);
1586 com_bot_left->AddText(f_in);
1587 cTextPaveSize = 0.035;
1588 com_bot_left->SetTextSize(cTextPaveSize);
1589 snprintf(f_in,
fgMaxCar,
"Type: %-20s", run_type.Data());
1590 com_bot_left->AddText(f_in);
1591 snprintf(f_in,
fgMaxCar,
"Analysis: %-10s Evts range: %d - %d ", ana_type.Data(), first_evt, last_evt);
1592 com_bot_left->AddText(f_in);
1594 cTextPaveSize = 0.0225;
1595 com_bot_left->SetTextSize(cTextPaveSize);
1597 com_bot_left->AddText(f_in);
1598 snprintf(f_in,
fgMaxCar,
"Type: %-20s", run_type.Data());
1599 com_bot_left->AddText(f_in);
1600 snprintf(f_in,
fgMaxCar,
"Analysis: %-10s ", ana_type.Data());
1601 com_bot_left->AddText(f_in);
1603 snprintf(f_in,
fgMaxCar,
"Samples: %d - %d", un, nb_of_samples);
1604 com_bot_left->AddText(f_in);
1605 snprintf(f_in,
fgMaxCar,
"Evts range: %d - %d", first_evt, last_evt);
1606 com_bot_left->AddText(f_in);
1609 return com_bot_left;
1613 const TString& start_date,
1614 const TString& stop_date,
1615 const TString& nb_col) {
1622 Double_t pav_bot_right_xgauche =
BoxLeftX(
"bottom_right_box");
1623 Double_t pav_bot_right_xdroite =
BoxRightX(
"bottom_right_box");
1624 Double_t pav_bot_right_ybas =
BoxBottomY(
"bottom_right_box");
1625 Double_t pav_bot_right_yhaut =
BoxTopY(
"bottom_right_box");
1626 TPaveText* com_bot_right =
1627 new TPaveText(pav_bot_right_xgauche, pav_bot_right_ybas, pav_bot_right_xdroite, pav_bot_right_yhaut);
1631 Int_t cTextPaveAlign = 12;
1632 com_bot_right->SetTextAlign(cTextPaveAlign);
1634 Int_t cTextPaveFont = 100;
1635 com_bot_right->SetTextFont(cTextPaveFont);
1637 Float_t cTextPaveSize = 0.025;
1638 com_bot_right->SetTextSize(cTextPaveSize);
1640 Int_t cTextBorderSize = 1;
1641 com_bot_right->SetBorderSize(cTextBorderSize);
1643 if (nb_col ==
"TwoCol") {
1644 cTextPaveSize = 0.0325;
1645 com_bot_right->SetTextSize(cTextPaveSize);
1646 snprintf(f_in,
fgMaxCar,
"First evt: %s %8d events ", start_date.Data(), nb_of_evts);
1647 com_bot_right->AddText(f_in);
1648 snprintf(f_in,
fgMaxCar,
"Last evt: %s ", stop_date.Data());
1649 com_bot_right->AddText(f_in);
1651 cTextPaveSize = 0.0225;
1652 com_bot_right->SetTextSize(cTextPaveSize);
1653 snprintf(f_in,
fgMaxCar,
"%d events", nb_of_evts);
1654 com_bot_right->AddText(f_in);
1655 snprintf(f_in,
fgMaxCar,
"First evt: %s ", start_date.Data());
1656 com_bot_right->AddText(f_in);
1657 snprintf(f_in,
fgMaxCar,
"Last evt: %s ", stop_date.Data());
1658 com_bot_right->AddText(f_in);
1661 return com_bot_right;
1665 const Int_t& nb_of_samples,
1666 const Int_t& first_req_evt,
1667 const Int_t& last_req_evt,
1674 Double_t pav_bot_left_xgauche =
BoxLeftX(
"bottom_left_box");
1675 Double_t pav_bot_left_xdroite =
BoxRightX(
"bottom_left_box");
1676 Double_t pav_bot_left_ybas =
BoxBottomY(
"bottom_left_box");
1677 Double_t pav_bot_left_yhaut =
BoxTopY(
"bottom_left_box");
1680 pav_bot_left_xgauche =
BoxLeftX(
"bottom_left_box_evol");
1681 pav_bot_left_xdroite =
BoxRightX(
"bottom_left_box_evol");
1682 pav_bot_left_ybas =
BoxBottomY(
"bottom_left_box_evol");
1683 pav_bot_left_yhaut =
BoxTopY(
"bottom_left_box_evol");
1686 TPaveText* com_bot_left =
1687 new TPaveText(pav_bot_left_xgauche, pav_bot_left_ybas, pav_bot_left_xdroite, pav_bot_left_yhaut);
1691 Int_t cTextPaveAlign = 12;
1692 com_bot_left->SetTextAlign(cTextPaveAlign);
1694 Int_t cTextPaveFont = 100;
1695 com_bot_left->SetTextFont(cTextPaveFont);
1697 Float_t cTextPaveSize = 0.03;
1698 com_bot_left->SetTextSize(cTextPaveSize);
1699 Int_t cTextBorderSize = 1;
1700 com_bot_left->SetBorderSize(cTextBorderSize);
1702 TString analysis_name = ana_type.Data();
1704 snprintf(f_in,
fgMaxCar,
"Analysis: %s", analysis_name.Data());
1705 com_bot_left->AddText(f_in);
1706 snprintf(f_in,
fgMaxCar,
"Samples: 1 - %d", nb_of_samples);
1707 com_bot_left->AddText(f_in);
1708 snprintf(f_in,
fgMaxCar,
"Evts range: %d - %d ", first_req_evt, last_req_evt);
1709 com_bot_left->AddText(f_in);
1711 return com_bot_left;
1715 const TString& start_evol_date,
1716 const Int_t& stop_evol_run,
1717 const TString& stop_evol_date,
1718 const TString& opt_plot,
1725 Double_t pav_border_xgauche =
BoxLeftX(
"bottom_right_box_evol");
1726 Double_t pav_border_xdroite =
BoxRightX(
"bottom_right_box_evol");
1727 Double_t pav_border_ybas =
BoxBottomY(
"bottom_right_box_evol");
1728 Double_t pav_border_yhaut =
BoxTopY(
"bottom_right_box_evol");
1730 if (opt_plot ==
"SAME n") {
1731 pav_border_xgauche =
BoxLeftX(
"bottom_right_box_evpr");
1732 pav_border_xdroite =
BoxRightX(
"bottom_right_box_evpr");
1733 pav_border_ybas =
BoxBottomY(
"top_right_box_EB");
1734 pav_border_yhaut =
BoxTopY(
"top_right_box_EB");
1737 TPaveText* pav_evol_runs =
new TPaveText(pav_border_xgauche, pav_border_ybas, pav_border_xdroite, pav_border_yhaut);
1741 Int_t cTextPaveAlign = 12;
1742 pav_evol_runs->SetTextAlign(cTextPaveAlign);
1745 Int_t cTextPaveFont = 100;
1746 pav_evol_runs->SetTextFont(cTextPaveFont);
1748 Float_t cTextPaveSize = 0.025;
1750 cTextPaveSize = 0.0225;
1753 pav_evol_runs->SetTextSize(cTextPaveSize);
1754 Int_t cTextBorderSize = 1;
1755 pav_evol_runs->SetBorderSize(cTextBorderSize);
1757 if (!((
HistoType ==
"Evol" && opt_plot ==
"SAME n") || (
HistoType ==
"EvolProj" && opt_plot ==
"SAME n"))) {
1758 snprintf(f_in,
fgMaxCar,
"First run: %d", start_evol_run);
1759 pav_evol_runs->AddText(f_in);
1760 snprintf(f_in,
fgMaxCar,
"(%s) ", start_evol_date.Data());
1761 pav_evol_runs->AddText(f_in);
1762 snprintf(f_in,
fgMaxCar,
"Last run: %d", stop_evol_run);
1763 pav_evol_runs->AddText(f_in);
1764 snprintf(f_in,
fgMaxCar,
"(%s) ", stop_evol_date.Data());
1765 pav_evol_runs->AddText(f_in);
1768 if ((
HistoType ==
"Evol" && opt_plot ==
"SAME n") || (
HistoType ==
"EvolProj" && opt_plot ==
"SAME n")) {
1769 snprintf(f_in,
fgMaxCar,
"First run: %d (%s) ", start_evol_run, start_evol_date.Data());
1770 pav_evol_runs->AddText(f_in);
1771 snprintf(f_in,
fgMaxCar,
"Last run: %d (%s)", stop_evol_run, stop_evol_date.Data());
1772 pav_evol_runs->AddText(f_in);
1775 return pav_evol_runs;
1785 Double_t pav_left_xgauche =
BoxLeftX(
"several_plots_box");
1786 Double_t pav_left_xdroite =
BoxRightX(
"several_plots_box");
1787 Double_t pav_left_ybas =
BoxBottomY(
"several_plots_box");
1788 Double_t pav_left_yhaut =
BoxTopY(
"several_plots_box");
1790 if (chopt ==
"sevevol") {
1791 pav_left_xgauche =
BoxLeftX(
"several_evol_box");
1792 pav_left_xdroite =
BoxRightX(
"several_evol_box");
1793 pav_left_ybas =
BoxBottomY(
"several_evol_box");
1794 pav_left_yhaut =
BoxTopY(
"several_evol_box");
1797 pav_left_xgauche =
BoxLeftX(
"several_evpr_box");
1798 pav_left_xdroite =
BoxRightX(
"several_evpr_box");
1799 pav_left_ybas =
BoxBottomY(
"several_evpr_box");
1800 pav_left_yhaut =
BoxTopY(
"several_evpr_box");
1804 TPaveText* com_several =
new TPaveText(pav_left_xgauche, pav_left_ybas, pav_left_xdroite, pav_left_yhaut);
1820 Double_t pav_top_left_xgauche =
BoxLeftX(
"top_left_box_SM");
1821 Double_t pav_top_left_xdroite =
BoxRightX(
"top_left_box_SM");
1822 Double_t pav_top_left_ybas =
BoxBottomY(
"top_left_box_SM");
1823 Double_t pav_top_left_yhaut =
BoxTopY(
"top_left_box_SM");
1825 TPaveText* com_top_left =
1826 new TPaveText(pav_top_left_xgauche, pav_top_left_ybas, pav_top_left_xdroite, pav_top_left_yhaut);
1830 Int_t cTextPaveAlign = 12;
1831 com_top_left->SetTextAlign(cTextPaveAlign);
1833 Int_t cTextPaveFont = 100;
1834 com_top_left->SetTextFont(cTextPaveFont);
1836 Float_t cTextPaveSize = 0.04;
1837 com_top_left->SetTextSize(cTextPaveSize);
1838 Int_t cTextBorderSize = 1;
1839 com_top_left->SetBorderSize(cTextBorderSize);
1848 com_top_left->AddText(f_in);
1850 return com_top_left;
1859 Double_t pav_top_left_xgauche =
BoxLeftX(
"top_left_box_SM");
1860 Double_t pav_top_left_xdroite =
BoxRightX(
"top_left_box_SM");
1861 Double_t pav_top_left_ybas =
BoxBottomY(
"top_left_box_SM");
1862 Double_t pav_top_left_yhaut =
BoxTopY(
"top_left_box_SM");
1864 if (chopt ==
"standard" || (chopt ==
"standGH" && EB_type ==
"EB-")) {
1865 pav_top_left_xgauche =
BoxLeftX(
"top_left_box_EB");
1866 pav_top_left_xdroite =
BoxRightX(
"top_left_box_EB");
1867 pav_top_left_ybas =
BoxBottomY(
"top_left_box_EB");
1868 pav_top_left_yhaut =
BoxTopY(
"top_left_box_EB");
1871 if (chopt ==
"standSM" || chopt ==
"standStex" || (chopt ==
"standGH" && EB_type ==
"EB+")) {
1872 pav_top_left_xgauche =
BoxLeftX(
"top_left_box_SM");
1873 pav_top_left_xdroite =
BoxRightX(
"top_left_box_SM");
1874 pav_top_left_ybas =
BoxBottomY(
"top_left_box_SM");
1875 pav_top_left_yhaut =
BoxTopY(
"top_left_box_SM");
1878 if (chopt ==
"several") {
1879 pav_top_left_xgauche =
BoxLeftX(
"several_plots_box");
1880 pav_top_left_xdroite =
BoxRightX(
"several_plots_box");
1881 pav_top_left_ybas =
BoxBottomY(
"several_plots_box");
1882 pav_top_left_yhaut =
BoxTopY(
"several_plots_box");
1885 if (chopt ==
"sevevol") {
1886 pav_top_left_xgauche =
BoxLeftX(
"several_evol_box");
1887 pav_top_left_xdroite =
BoxRightX(
"several_evol_box");
1888 pav_top_left_ybas =
BoxBottomY(
"several_evol_box");
1889 pav_top_left_yhaut =
BoxTopY(
"several_evol_box");
1892 TPaveText* com_top_left =
1893 new TPaveText(pav_top_left_xgauche, pav_top_left_ybas, pav_top_left_xdroite, pav_top_left_yhaut);
1897 Int_t cTextPaveAlign = 12;
1898 com_top_left->SetTextAlign(cTextPaveAlign);
1900 Int_t cTextPaveFont = 100;
1901 com_top_left->SetTextFont(cTextPaveFont);
1903 Float_t cTextPaveSize = 0.04;
1904 com_top_left->SetTextSize(cTextPaveSize);
1905 Int_t cTextBorderSize = 1;
1906 com_top_left->SetBorderSize(cTextBorderSize);
1908 if (chopt ==
"standard" || chopt ==
"standSM" || chopt ==
"standStex" || chopt ==
"standGH") {
1909 Int_t sm_nb = SM_number;
1910 if (EB_type ==
"EB+") {
1911 snprintf(f_in,
fgMaxCar,
"EB+%d", sm_nb);
1913 if (EB_type ==
"EB-") {
1915 snprintf(f_in,
fgMaxCar,
"EB%d (SM%d)", sm_nb, SM_number);
1917 com_top_left->AddText(f_in);
1920 return com_top_left;
1928 Double_t pav_top_mid_xgauche =
BoxLeftX(
"top_mid_box_EB");
1929 Double_t pav_top_mid_xdroite =
BoxRightX(
"top_mid_box_EB");
1930 Double_t pav_top_mid_ybas =
BoxBottomY(
"top_mid_box_EB");
1931 Double_t pav_top_mid_yhaut =
BoxTopY(
"top_mid_box_EB");
1932 TPaveText* com_top_mid =
new TPaveText(pav_top_mid_xgauche, pav_top_mid_ybas, pav_top_mid_xdroite, pav_top_mid_yhaut);
1936 Int_t cTextPaveAlign = 12;
1937 com_top_mid->SetTextAlign(cTextPaveAlign);
1939 Int_t cTextPaveFont = 100;
1940 com_top_mid->SetTextFont(cTextPaveFont);
1942 Float_t cTextPaveSize = 0.03;
1943 com_top_mid->SetTextSize(cTextPaveSize);
1944 Int_t cTextBorderSize = 1;
1945 com_top_mid->SetBorderSize(cTextBorderSize);
1947 snprintf(f_in,
fgMaxCar,
" Tower: %d ", SMtower_X);
1948 com_top_mid->AddText(f_in);
1958 Double_t pav_top_mid_xgauche =
BoxLeftX(
"top_mid_box_EB");
1959 Double_t pav_top_mid_xdroite =
BoxRightX(
"top_mid_box_EB");
1960 Double_t pav_top_mid_ybas =
BoxBottomY(
"top_mid_box_EB");
1961 Double_t pav_top_mid_yhaut =
BoxTopY(
"top_mid_box_EB");
1962 TPaveText* com_top_mid =
new TPaveText(pav_top_mid_xgauche, pav_top_mid_ybas, pav_top_mid_xdroite, pav_top_mid_yhaut);
1966 Int_t cTextPaveAlign = 12;
1967 com_top_mid->SetTextAlign(cTextPaveAlign);
1969 Int_t cTextPaveFont = 100;
1970 com_top_mid->SetTextFont(cTextPaveFont);
1972 Float_t cTextPaveSize = 0.03;
1973 com_top_mid->SetTextSize(cTextPaveSize);
1974 Int_t cTextBorderSize = 1;
1975 com_top_mid->SetBorderSize(cTextBorderSize);
1977 snprintf(f_in,
fgMaxCar,
" Tower X: %d ", SMtower_X);
1978 com_top_mid->AddText(f_in);
1979 snprintf(f_in,
fgMaxCar,
" Tower Y: %d ", SMtower_Y);
1980 com_top_mid->AddText(f_in);
1986 Int_t arg_AlreadyRead = 0;
1987 Int_t flag_all_samples = 0;
1988 return SetPaveCrystal(StexCrys, StexStinA, StinEcha, arg_AlreadyRead, flag_all_samples);
1992 const Int_t& StexStinA,
1993 const Int_t& StinEcha,
1994 const Int_t& arg_AlreadyRead,
1995 const Int_t& flag_all_samples) {
2001 Double_t pav_top_right_xgauche =
BoxLeftX(
"top_right_box_EB");
2002 Double_t pav_top_right_xdroite =
BoxRightX(
"top_right_box_EB");
2003 Double_t pav_top_right_ybas =
BoxBottomY(
"top_right_box_EB");
2004 Double_t pav_top_right_yhaut =
BoxTopY(
"top_right_box_EB");
2006 pav_top_right_xgauche =
BoxLeftX(
"top_right_box_EE");
2007 pav_top_right_xdroite =
BoxRightX(
"top_right_box_EE");
2008 pav_top_right_ybas =
BoxBottomY(
"top_right_box_EE");
2009 pav_top_right_yhaut =
BoxTopY(
"top_right_box_EE");
2012 TPaveText* com_top_right =
2013 new TPaveText(pav_top_right_xgauche, pav_top_right_ybas, pav_top_right_xdroite, pav_top_right_yhaut);
2017 Int_t cTextPaveAlign = 12;
2018 com_top_right->SetTextAlign(cTextPaveAlign);
2020 Int_t cTextPaveFont = 100;
2021 com_top_right->SetTextFont(cTextPaveFont);
2023 Float_t cTextPaveSize = 0.03;
2024 com_top_right->SetTextSize(cTextPaveSize);
2025 Int_t cTextBorderSize = 1;
2026 com_top_right->SetBorderSize(cTextBorderSize);
2029 if (arg_AlreadyRead == 0 || (arg_AlreadyRead == 1 && flag_all_samples == 0)) {
2030 snprintf(f_in,
fgMaxCar,
"Channel: %d ", StinEcha);
2032 if (arg_AlreadyRead == 1 && flag_all_samples == 1) {
2035 com_top_right->AddText(f_in);
2036 if (arg_AlreadyRead == 0 || (arg_AlreadyRead == 1 && flag_all_samples == 0)) {
2037 snprintf(f_in,
fgMaxCar,
"Crystal in SM: %d ", StexCrys);
2038 com_top_right->AddText(f_in);
2043 Int_t StinEchap = StinEcha + 1;
2044 if (arg_AlreadyRead == 0 || (arg_AlreadyRead == 1 && flag_all_samples == 0)) {
2045 snprintf(f_in,
fgMaxCar,
"Xtal in SC: %d ", StinEchap);
2047 if (arg_AlreadyRead == 1 && flag_all_samples == 1) {
2050 com_top_right->AddText(f_in);
2051 if (arg_AlreadyRead == 0 || (arg_AlreadyRead == 1 && flag_all_samples == 0)) {
2054 if (IY_Dee_crys == 0) {
2058 snprintf(f_in,
fgMaxCar,
"(IX,IY)[Xtal]=(%d,%d)", IX_Dee_crys, IY_Dee_crys);
2059 com_top_right->AddText(f_in);
2063 return com_top_right;
2067 const Int_t& StexStinA,
2068 const Int_t& StinEcha,
2069 const Int_t& iSample) {
2074 Double_t pav_top_right_xgauche =
BoxLeftX(
"top_right_box_EB");
2075 Double_t pav_top_right_xdroite =
BoxRightX(
"top_right_box_EB");
2076 Double_t pav_top_right_ybas =
BoxBottomY(
"top_right_box_EB");
2077 Double_t pav_top_right_yhaut =
BoxTopY(
"top_right_box_EB");
2079 pav_top_right_xgauche =
BoxLeftX(
"top_right_box_EE");
2080 pav_top_right_xdroite =
BoxRightX(
"top_right_box_EE");
2081 pav_top_right_ybas =
BoxBottomY(
"top_right_box_EE");
2082 pav_top_right_yhaut =
BoxTopY(
"top_right_box_EE");
2085 TPaveText* com_top_right =
2086 new TPaveText(pav_top_right_xgauche, pav_top_right_ybas, pav_top_right_xdroite, pav_top_right_yhaut);
2090 Int_t cTextPaveAlign = 12;
2091 com_top_right->SetTextAlign(cTextPaveAlign);
2093 Int_t cTextPaveFont = 100;
2094 com_top_right->SetTextFont(cTextPaveFont);
2096 Float_t cTextPaveSize = 0.03;
2097 com_top_right->SetTextSize(cTextPaveSize);
2098 Int_t cTextBorderSize = 1;
2099 com_top_right->SetBorderSize(cTextBorderSize);
2102 snprintf(f_in,
fgMaxCar,
" Channel: %d ", StinEcha);
2103 com_top_right->AddText(f_in);
2104 snprintf(f_in,
fgMaxCar,
" Crystal in SM: %d ", StexCrys);
2105 com_top_right->AddText(f_in);
2109 Int_t StinEchap = StinEcha + 1;
2110 snprintf(f_in,
fgMaxCar,
" Channel: %d ", StinEchap);
2111 com_top_right->AddText(f_in);
2114 if (IY_Dee_crys == 0) {
2118 snprintf(f_in,
fgMaxCar,
"(IX,IY)[Xtal]=(%d,%d)", IX_Dee_crys, IY_Dee_crys);
2119 com_top_right->AddText(f_in);
2122 Int_t iSample_p = iSample + 1;
2123 snprintf(f_in,
fgMaxCar,
" Sample: %d ", iSample_p);
2124 com_top_right->AddText(f_in);
2126 return com_top_right;
2133 Double_t pav_bot_xgauche =
BoxLeftX(
"bottom_left_box");
2134 Double_t pav_bot_xdroite =
BoxRightX(
"bottom_right_box");
2135 Double_t pav_bot_ybas =
BoxBottomY(
"bottom_left_box");
2136 Double_t pav_bot_yhaut =
BoxTopY(
"bottom_left_box");
2137 TPaveText* com_bot_mid =
new TPaveText(pav_bot_xgauche, pav_bot_ybas, pav_bot_xdroite, pav_bot_yhaut);
2145 TText*
t1 = com_bot_mid->AddText(
" <= IP (#eta = 0) (#eta = +85) => ");
2146 t1->SetTextColor(couleur_noir);
2150 TText*
t2 = com_bot_mid->AddText(
" <= (#eta = -85) IP (#eta = 0) => ");
2151 t2->SetTextColor(couleur_noir);
2155 TText*
t3 =
nullptr;
2157 t3 = com_bot_mid->AddText(
" <=== LVRB ");
2159 t3 = com_bot_mid->AddText(
" LVRB ===> ");
2161 if (
t3 !=
nullptr) {
2162 t3->SetTextColor(couleur_rouge);
2167 TText* t4 =
nullptr;
2169 t4 = com_bot_mid->AddText(
" LVRB ===> ");
2171 t4 = com_bot_mid->AddText(
" <=== LVRB ");
2173 if (t4 !=
nullptr) {
2174 t4->SetTextColor(couleur_bleu_fonce);
2186 if (chtype_number ==
"crystal") {
2189 if (chtype_number ==
"lvrb_top") {
2192 if (chtype_number ==
"lvrb_bottom") {
2212 Double_t pav_top_left_xgauche =
BoxLeftX(
"top_left_box_EE");
2213 Double_t pav_top_left_xdroite =
BoxRightX(
"top_left_box_EE");
2214 Double_t pav_top_left_ybas =
BoxBottomY(
"top_left_box_EE");
2215 Double_t pav_top_left_yhaut =
BoxTopY(
"top_left_box_EE");
2217 if (chopt ==
"standard" || chopt ==
"standGH") {
2218 pav_top_left_xgauche =
BoxLeftX(
"top_left_box_EE");
2219 pav_top_left_xdroite =
BoxRightX(
"top_left_box_EE");
2220 pav_top_left_ybas =
BoxBottomY(
"top_left_box_EE");
2221 pav_top_left_yhaut =
BoxTopY(
"top_left_box_EE");
2224 if (chopt ==
"standDee" || chopt ==
"standStex") {
2225 pav_top_left_xgauche =
BoxLeftX(
"top_left_box_Dee");
2226 pav_top_left_xdroite =
BoxRightX(
"top_left_box_Dee");
2227 pav_top_left_ybas =
BoxBottomY(
"top_left_box_Dee");
2228 pav_top_left_yhaut =
BoxTopY(
"top_left_box_Dee");
2231 if (chopt ==
"several") {
2232 pav_top_left_xgauche =
BoxLeftX(
"several_plots_box");
2233 pav_top_left_xdroite =
BoxRightX(
"several_plots_box");
2234 pav_top_left_ybas =
BoxBottomY(
"several_plots_box");
2235 pav_top_left_yhaut =
BoxTopY(
"several_plots_box");
2237 if (chopt ==
"sevevol") {
2238 pav_top_left_xgauche =
BoxLeftX(
"several_evol_box");
2239 pav_top_left_xdroite =
BoxRightX(
"several_evol_box");
2240 pav_top_left_ybas =
BoxBottomY(
"several_evol_box");
2241 pav_top_left_yhaut =
BoxTopY(
"several_evol_box");
2244 TPaveText* com_top_left =
2245 new TPaveText(pav_top_left_xgauche, pav_top_left_ybas, pav_top_left_xdroite, pav_top_left_yhaut);
2249 Int_t cTextPaveAlign = 12;
2250 com_top_left->SetTextAlign(cTextPaveAlign);
2252 Int_t cTextPaveFont = 100;
2253 com_top_left->SetTextFont(cTextPaveFont);
2255 Float_t cTextPaveSize = 0.04;
2256 com_top_left->SetTextSize(cTextPaveSize);
2257 Int_t cTextBorderSize = 1;
2258 com_top_left->SetBorderSize(cTextBorderSize);
2260 if (chopt ==
"standard") {
2261 snprintf(f_in,
fgMaxCar,
" Dee: %d", DeeNumber);
2262 com_top_left->AddText(f_in);
2263 snprintf(f_in,
fgMaxCar,
" (%s)", DeeType.Data());
2264 com_top_left->AddText(f_in);
2267 if (chopt ==
"standDee" || chopt ==
"standStex" || chopt ==
"standGH") {
2268 snprintf(f_in,
fgMaxCar,
" Dee: %d (%s) ", DeeNumber, DeeType.Data());
2269 com_top_left->AddText(f_in);
2272 return com_top_left;
2280 Double_t pav_top_mid_xgauche =
BoxLeftX(
"top_mid_box_EE");
2281 Double_t pav_top_mid_xdroite =
BoxRightX(
"top_mid_box_EE");
2282 Double_t pav_top_mid_ybas =
BoxBottomY(
"top_mid_box_EE");
2283 Double_t pav_top_mid_yhaut =
BoxTopY(
"top_mid_box_EE");
2284 TPaveText* com_top_mid =
new TPaveText(pav_top_mid_xgauche, pav_top_mid_ybas, pav_top_mid_xdroite, pav_top_mid_yhaut);
2288 Int_t cTextPaveAlign = 12;
2289 com_top_mid->SetTextAlign(cTextPaveAlign);
2291 Int_t cTextPaveFont = 100;
2292 com_top_mid->SetTextFont(cTextPaveFont);
2294 Float_t cTextPaveSize = 0.03;
2295 com_top_mid->SetTextSize(cTextPaveSize);
2296 Int_t cTextBorderSize = 1;
2297 com_top_mid->SetBorderSize(cTextBorderSize);
2301 "Sector: S%d, SC: %d",
2304 com_top_mid->AddText(f_in);
2306 com_top_mid->AddText(f_in);
2308 com_top_mid->AddText(f_in);
2318 Double_t pav_top_mid_xgauche =
BoxLeftX(
"top_mid_box_EE");
2319 Double_t pav_top_mid_xdroite =
BoxRightX(
"top_mid_box_EE");
2320 Double_t pav_top_mid_ybas =
BoxBottomY(
"top_mid_box_EE");
2321 Double_t pav_top_mid_yhaut =
BoxTopY(
"top_mid_box_EE");
2322 TPaveText* com_top_mid =
new TPaveText(pav_top_mid_xgauche, pav_top_mid_ybas, pav_top_mid_xdroite, pav_top_mid_yhaut);
2326 Int_t cTextPaveAlign = 12;
2327 com_top_mid->SetTextAlign(cTextPaveAlign);
2329 Int_t cTextPaveFont = 100;
2330 com_top_mid->SetTextFont(cTextPaveFont);
2332 Float_t cTextPaveSize = 0.03;
2333 com_top_mid->SetTextSize(cTextPaveSize);
2334 Int_t cTextBorderSize = 1;
2335 com_top_mid->SetBorderSize(cTextBorderSize);
2337 snprintf(f_in,
fgMaxCar,
"SC X: %d", DeeSC_X);
2338 com_top_mid->AddText(f_in);
2339 snprintf(f_in,
fgMaxCar,
"SC Y: %d", DeeSC_Y);
2340 com_top_mid->AddText(f_in);
2349 Double_t pav_bot_xgauche =
BoxRightX(
"bottom_mid_box");
2350 Double_t pav_bot_xdroite =
BoxLeftX(
"bottom_mid_box");
2351 Double_t pav_bot_ybas =
BoxBottomY(
"bottom_left_box");
2352 Double_t pav_bot_yhaut =
BoxTopY(
"bottom_left_box");
2353 TPaveText* com_bot_mid =
new TPaveText(pav_bot_xgauche, pav_bot_ybas, pav_bot_xdroite, pav_bot_yhaut);
2360 com_bot_mid->SetTextSize(0.0325);
2362 if (DeeNumber == 1) {
2363 com_bot_mid->AddText(
" y ");
2364 com_bot_mid->AddText(
" #uparrow ");
2365 com_bot_mid->AddText(
" (Near) x #leftarrow #otimes z (Far) ");
2367 if (DeeNumber == 2) {
2368 com_bot_mid->AddText(
" y ");
2369 com_bot_mid->AddText(
" #uparrow ");
2370 com_bot_mid->AddText(
" (Near) x #leftarrow #otimes z (Far) ");
2372 if (DeeNumber == 3) {
2373 com_bot_mid->AddText(
" y ");
2374 com_bot_mid->AddText(
" #uparrow ");
2375 com_bot_mid->AddText(
" (Far) z (#bullet) #rightarrow x (Near) ");
2377 if (DeeNumber == 4) {
2378 com_bot_mid->AddText(
" y ");
2379 com_bot_mid->AddText(
" #uparrow ");
2380 com_bot_mid->AddText(
" (Far) z (#bullet) #rightarrow x (Near) ");
2393 TPaveText* pav_text =
nullptr;
2395 if (StexNumber > 0) {
2398 pav_text =
SetPaveSM(chopt, StexNumber, EB_type);
2402 pav_text =
SetPaveDee(chopt, StexNumber, dee_type);
2405 if (StexNumber == 0) {
2413 TPaveText* pav_text =
nullptr;
2418 pav_text =
SetPaveSC(StinNumber, StexNumber);
2424 TPaveText* pav_text =
nullptr;
2449 if (HistoCode ==
"D_NOE_ChNb" || HistoCode ==
"D_Ped_ChNb" || HistoCode ==
"D_TNo_ChNb" ||
2450 HistoCode ==
"D_LFN_ChNb" || HistoCode ==
"D_HFN_ChNb" || HistoCode ==
"D_MCs_ChNb" ||
2451 HistoCode ==
"D_SCs_ChNb") {
2457 if (HistoCode ==
"D_NOE_ChDs" || HistoCode ==
"D_Ped_ChDs" || HistoCode ==
"D_TNo_ChDs" ||
2458 HistoCode ==
"D_LFN_ChDs" || HistoCode ==
"D_HFN_ChDs" || HistoCode ==
"D_MCs_ChDs" ||
2459 HistoCode ==
"D_SCs_ChDs") {
2464 if (HistoCode ==
"D_MSp_SpNb" || HistoCode ==
"D_SSp_SpNb") {
2469 if (HistoCode ==
"D_MSp_SpDs" || HistoCode ==
"D_SSp_SpDs") {
2474 if (HistoCode ==
"D_Adc_EvNb") {
2478 if (HistoCode ==
"D_Adc_EvDs") {
2483 if (HistoCode ==
"H_Ped_Date" || HistoCode ==
"H_TNo_Date" || HistoCode ==
"H_MCs_Date" ||
2484 HistoCode ==
"H_LFN_Date" || HistoCode ==
"H_HFN_Date" || HistoCode ==
"H_SCs_Date") {
2489 if (HistoCode ==
"H_Ped_RuDs" || HistoCode ==
"H_TNo_RuDs" || HistoCode ==
"H_MCs_RuDs" ||
2490 HistoCode ==
"H_LFN_RuDs" || HistoCode ==
"H_HFN_RuDs" || HistoCode ==
"H_SCs_RuDs") {
2505 XVarHisto.Resize(MaxCar);
2506 XVarHisto =
"(no X variable info)";
2509 if (StexNumber == 0 &&
SubDet ==
"EB") {
2510 XVarHisto =
"Tower number";
2512 if (StexNumber == 0 &&
SubDet ==
"EE") {
2513 XVarHisto =
"SC number";
2515 if (StexNumber != 0) {
2516 XVarHisto =
"Xtal number";
2520 XVarHisto =
"Bin number";
2524 XVarHisto =
"Sample number";
2527 XVarHisto =
"Total noise";
2531 XVarHisto =
"Event number";
2535 XVarHisto =
"ADC count";
2543 XVarHisto =
"Bin number";
2558 YVarHisto.Resize(MaxCar);
2559 YVarHisto =
"(no Y variable info)";
2562 if (HistoCode ==
"D_NOE_ChNb") {
2563 YVarHisto =
"Nb of events";
2565 if (HistoCode ==
"D_Ped_ChNb") {
2566 YVarHisto =
"Pedestal";
2568 if (HistoCode ==
"D_TNo_ChNb") {
2569 YVarHisto =
"Total Noise";
2571 if (HistoCode ==
"D_MCs_ChNb") {
2572 YVarHisto =
"Mean Cor(s,s')";
2574 if (HistoCode ==
"D_LFN_ChNb") {
2575 YVarHisto =
"Low Freq. Noise";
2577 if (HistoCode ==
"D_HFN_ChNb") {
2578 YVarHisto =
"High Freq. Noise";
2580 if (HistoCode ==
"D_SCs_ChNb") {
2581 YVarHisto =
"Sigma Cor(s,s')";
2586 if (StexNumber == 0 &&
SubDet ==
"EB") {
2587 YVarHisto =
"Number of towers";
2589 if (StexNumber == 0 &&
SubDet ==
"EE") {
2590 YVarHisto =
"Number of SCs";
2592 if (StexNumber != 0) {
2593 YVarHisto =
"Number of Xtals";
2598 YVarHisto =
"ADC count";
2601 YVarHisto =
"Number of samples";
2605 YVarHisto =
"ADC count";
2609 YVarHisto =
"Number of events";
2613 YVarHisto =
"Number of runs";
2617 if (HistoCode ==
"H_Ped_Date") {
2618 YVarHisto =
"Pedestal";
2620 if (HistoCode ==
"H_TNo_Date") {
2621 YVarHisto =
"Total Noise";
2623 if (HistoCode ==
"H_MCs_Date") {
2624 YVarHisto =
"Mean Cor(s,s')";
2626 if (HistoCode ==
"H_LFN_Date") {
2627 YVarHisto =
"Low Freq. Noise";
2629 if (HistoCode ==
"H_HFN_Date") {
2630 YVarHisto =
"High Freq. Noise";
2632 if (HistoCode ==
"H_SCs_Date") {
2633 YVarHisto =
"Sigma Cor(s,s')";
2651 chqname.Resize(MaxCar);
2652 chqname =
"(no quantity name info)";
2654 if (chqcode ==
"D_NOE_ChNb") {
2655 chqname =
"Number of events";
2657 if (chqcode ==
"D_NOE_ChDs") {
2658 chqname =
"Nb of events";
2660 if (chqcode ==
"D_Ped_ChNb") {
2661 chqname =
"Pedestal";
2663 if (chqcode ==
"D_Ped_ChDs") {
2664 chqname =
"Pedestal";
2666 if (chqcode ==
"D_TNo_ChNb") {
2667 chqname =
"Total Noise";
2669 if (chqcode ==
"D_TNo_ChDs") {
2670 chqname =
"Total Noise";
2672 if (chqcode ==
"D_MCs_ChNb") {
2673 chqname =
"Mean Cor(s,s')";
2675 if (chqcode ==
"D_MCs_ChDs") {
2676 chqname =
"Mean Cor(s,s')";
2678 if (chqcode ==
"D_LFN_ChNb") {
2679 chqname =
"Low Freq. Noise";
2681 if (chqcode ==
"D_LFN_ChDs") {
2682 chqname =
"Low Freq. Noise";
2684 if (chqcode ==
"D_HFN_ChNb") {
2685 chqname =
"High Freq. Noise";
2687 if (chqcode ==
"D_HFN_ChDs") {
2688 chqname =
"High Freq. Noise";
2690 if (chqcode ==
"D_SCs_ChNb") {
2691 chqname =
"Sigma Cor(s,s')";
2693 if (chqcode ==
"D_SCs_ChDs") {
2694 chqname =
"Sigma Cor(s,s')";
2696 if (chqcode ==
"D_MSp_SpNb") {
2697 chqname =
"Sample means";
2699 if (chqcode ==
"D_MSp_SpDs") {
2700 chqname =
"Sample means";
2702 if (chqcode ==
"D_SSp_SpNb") {
2703 chqname =
"Sample sigmas";
2705 if (chqcode ==
"D_SSp_SpDs") {
2706 chqname =
"Sample sigmas";
2708 if (chqcode ==
"D_Adc_EvNb") {
2709 chqname =
"Sample ADC";
2711 if (chqcode ==
"D_Adc_EvDs") {
2712 chqname =
"Sample ADC distribution";
2714 if (chqcode ==
"H_Ped_Date") {
2715 chqname =
"Pedestal";
2717 if (chqcode ==
"H_TNo_Date") {
2718 chqname =
"Total Noise";
2720 if (chqcode ==
"H_MCs_Date") {
2721 chqname =
"Mean Cor(s,s')";
2723 if (chqcode ==
"H_LFN_Date") {
2724 chqname =
"Low Freq. Noise";
2726 if (chqcode ==
"H_HFN_Date") {
2727 chqname =
"High Freq. Noise";
2729 if (chqcode ==
"H_SCs_Date") {
2730 chqname =
"Sigma Cor(s,s')";
2732 if (chqcode ==
"H_Ped_RuDs") {
2733 chqname =
"Pedestal";
2735 if (chqcode ==
"H_TNo_RuDs") {
2736 chqname =
"Total Noise";
2738 if (chqcode ==
"H_MCs_RuDs") {
2739 chqname =
"Mean Cor(s,s')";
2741 if (chqcode ==
"H_LFN_RuDs") {
2742 chqname =
"Low Freq. Noise";
2744 if (chqcode ==
"H_HFN_RuDs") {
2745 chqname =
"High Freq. Noise";
2747 if (chqcode ==
"H_SCs_RuDs") {
2748 chqname =
"Sigma Cor(s,s')";
2754 Double_t vmin = (Double_t)0.;
2756 if (chqcode ==
"H2LFccMosMatrix") {
2757 vmin = (Double_t)-1.;
2759 if (chqcode ==
"H2HFccMosMatrix") {
2760 vmin = (Double_t)-1.;
2762 if (chqcode ==
"H2CorccInStins") {
2763 vmin = (Double_t)-1.;
2766 if (chqcode ==
"D_NOE_ChNb") {
2767 vmin = (Double_t)0.;
2769 if (chqcode ==
"D_Ped_ChNb") {
2770 vmin = (Double_t)0.;
2772 if (chqcode ==
"D_TNo_ChNb") {
2773 vmin = (Double_t)0.;
2775 if (chqcode ==
"D_MCs_ChNb") {
2776 vmin = (Double_t)-1.;
2778 if (chqcode ==
"D_LFN_ChNb") {
2779 vmin = (Double_t)0.;
2781 if (chqcode ==
"D_HFN_ChNb") {
2782 vmin = (Double_t)0.;
2784 if (chqcode ==
"D_SCs_ChNb") {
2785 vmin = (Double_t)-1.;
2788 if (chqcode ==
"D_NOE_ChDs") {
2789 vmin = (Double_t)0.1;
2791 if (chqcode ==
"D_Ped_ChDs") {
2792 vmin = (Double_t)0.1;
2794 if (chqcode ==
"D_TNo_ChDs") {
2795 vmin = (Double_t)0.1;
2797 if (chqcode ==
"D_MCs_ChDs") {
2798 vmin = (Double_t)0.1;
2800 if (chqcode ==
"D_LFN_ChDs") {
2801 vmin = (Double_t)0.1;
2803 if (chqcode ==
"D_HFN_ChDs") {
2804 vmin = (Double_t)0.1;
2806 if (chqcode ==
"D_SCs_ChDs") {
2807 vmin = (Double_t)0.1;
2810 if (chqcode ==
"D_MSp_SpNb") {
2811 vmin = (Double_t)0.;
2813 if (chqcode ==
"D_MSp_SpDs") {
2814 vmin = (Double_t)0.1;
2816 if (chqcode ==
"D_SSp_SpNb") {
2817 vmin = (Double_t)0.;
2819 if (chqcode ==
"D_SSp_SpDs") {
2820 vmin = (Double_t)0.1;
2823 if (chqcode ==
"D_Adc_EvNb") {
2824 vmin = (Double_t)0.;
2826 if (chqcode ==
"D_Adc_EvDs") {
2827 vmin = (Double_t)0.1;
2830 if (chqcode ==
"H_Ped_Date") {
2831 vmin = (Double_t)0.;
2833 if (chqcode ==
"H_TNo_Date") {
2834 vmin = (Double_t)0.;
2836 if (chqcode ==
"H_MCs_Date") {
2837 vmin = (Double_t)-1.;
2839 if (chqcode ==
"H_LFN_Date") {
2840 vmin = (Double_t)0.;
2842 if (chqcode ==
"H_HFN_Date") {
2843 vmin = (Double_t)0.;
2845 if (chqcode ==
"H_SCs_Date") {
2846 vmin = (Double_t)0.;
2849 if (chqcode ==
"H_Ped_RuDs") {
2850 vmin = (Double_t)0.1;
2852 if (chqcode ==
"H_TNo_RuDs") {
2853 vmin = (Double_t)0.1;
2855 if (chqcode ==
"H_MCs_RuDs") {
2856 vmin = (Double_t)0.1;
2858 if (chqcode ==
"H_LFN_RuDs") {
2859 vmin = (Double_t)0.1;
2861 if (chqcode ==
"H_HFN_RuDs") {
2862 vmin = (Double_t)0.1;
2864 if (chqcode ==
"H_SCs_RuDs") {
2865 vmin = (Double_t)0.1;
2872 Double_t vmax = (Double_t)0.;
2875 if (chqcode ==
"H2LFccMosMatrix") {
2876 vmax = (Double_t)1.;
2878 if (chqcode ==
"H2HFccMosMatrix") {
2879 vmax = (Double_t)1.;
2881 if (chqcode ==
"H2CorccInStins") {
2882 vmax = (Double_t)1.;
2885 if (chqcode ==
"D_NOE_ChNb") {
2886 vmax = (Double_t)500.;
2888 if (chqcode ==
"D_Ped_ChNb") {
2889 vmax = (Double_t)500.;
2891 if (chqcode ==
"D_TNo_ChNb") {
2892 vmax = (Double_t)2.5;
2894 if (chqcode ==
"D_LFN_ChNb") {
2895 vmax = (Double_t)2.5;
2897 if (chqcode ==
"D_HFN_ChNb") {
2898 vmax = (Double_t)2.5;
2900 if (chqcode ==
"D_MCs_ChNb") {
2901 vmax = (Double_t)1.;
2903 if (chqcode ==
"D_SCs_ChNb") {
2904 vmax = (Double_t)1.5;
2907 if (chqcode ==
"D_NOE_ChDs") {
2908 vmax = (Double_t)5000.;
2910 if (chqcode ==
"D_Ped_ChDs") {
2911 vmax = (Double_t)5000.;
2913 if (chqcode ==
"D_TNo_ChDs") {
2914 vmax = (Double_t)5000.;
2916 if (chqcode ==
"D_LFN_ChDs") {
2917 vmax = (Double_t)5000.;
2919 if (chqcode ==
"D_HFN_ChDs") {
2920 vmax = (Double_t)5000.;
2922 if (chqcode ==
"D_MCs_ChDs") {
2923 vmax = (Double_t)5000.;
2925 if (chqcode ==
"D_SCs_ChDs") {
2926 vmax = (Double_t)5000.;
2929 if (chqcode ==
"D_MSp_SpNb") {
2930 vmax = (Double_t)500.;
2932 if (chqcode ==
"D_MSp_SpDs") {
2933 vmax = (Double_t)10.;
2935 if (chqcode ==
"D_SSp_SpNb") {
2936 vmax = (Double_t)5.;
2938 if (chqcode ==
"D_SSp_SpDs") {
2939 vmax = (Double_t)10.;
2942 if (chqcode ==
"D_Adc_EvNb") {
2943 vmax = (Double_t)500.;
2945 if (chqcode ==
"D_Adc_EvDs") {
2946 vmax = (Double_t)150.;
2949 if (chqcode ==
"H_Ped_Date") {
2950 vmax = (Double_t)500.;
2952 if (chqcode ==
"H_TNo_Date") {
2953 vmax = (Double_t)5.;
2955 if (chqcode ==
"H_LFN_Date") {
2956 vmax = (Double_t)5.;
2958 if (chqcode ==
"H_HFN_Date") {
2959 vmax = (Double_t)5.;
2961 if (chqcode ==
"H_MCs_Date") {
2962 vmax = (Double_t)1.;
2964 if (chqcode ==
"H_SCs_Date") {
2965 vmax = (Double_t)0.5;
2968 if (chqcode ==
"H_Ped_RuDs") {
2969 vmax = (Double_t)1000.;
2971 if (chqcode ==
"H_TNo_RuDs") {
2972 vmax = (Double_t)1000.;
2974 if (chqcode ==
"H_LFN_RuDs") {
2975 vmax = (Double_t)1000.;
2977 if (chqcode ==
"H_HFN_RuDs") {
2978 vmax = (Double_t)1000.;
2980 if (chqcode ==
"H_MCs_RuDs") {
2981 vmax = (Double_t)1000.;
2983 if (chqcode ==
"H_SCs_RuDs") {
2984 vmax = (Double_t)1000.;
2989 if (chqcode ==
"H2LFccMosMatrix") {
2990 vmax = (Double_t)1.;
2992 if (chqcode ==
"H2HFccMosMatrix") {
2993 vmax = (Double_t)1.;
2995 if (chqcode ==
"H2CorccInStins") {
2996 vmax = (Double_t)0.05;
2999 if (chqcode ==
"D_NOE_ChNb") {
3000 vmax = (Double_t)500.;
3002 if (chqcode ==
"D_Ped_ChNb") {
3003 vmax = (Double_t)500.;
3005 if (chqcode ==
"D_TNo_ChNb") {
3006 vmax = (Double_t)5.;
3008 if (chqcode ==
"D_LFN_ChNb") {
3009 vmax = (Double_t)5.;
3011 if (chqcode ==
"D_HFN_ChNb") {
3012 vmax = (Double_t)5.;
3014 if (chqcode ==
"D_MCs_ChNb") {
3015 vmax = (Double_t)1.;
3017 if (chqcode ==
"D_SCs_ChNb") {
3018 vmax = (Double_t)2.5;
3021 if (chqcode ==
"D_NOE_ChDs") {
3022 vmax = (Double_t)1000.;
3024 if (chqcode ==
"D_Ped_ChDs") {
3025 vmax = (Double_t)1000.;
3027 if (chqcode ==
"D_TNo_ChDs") {
3028 vmax = (Double_t)1000.;
3030 if (chqcode ==
"D_LFN_ChDs") {
3031 vmax = (Double_t)1000.;
3033 if (chqcode ==
"D_HFN_ChDs") {
3034 vmax = (Double_t)1000.;
3036 if (chqcode ==
"D_MCs_ChDs") {
3037 vmax = (Double_t)1000.;
3039 if (chqcode ==
"D_SCs_ChDs") {
3040 vmax = (Double_t)1000.;
3043 if (chqcode ==
"D_MSp_SpNb") {
3044 vmax = (Double_t)500.;
3046 if (chqcode ==
"D_MSp_SpDs") {
3047 vmax = (Double_t)1000.;
3049 if (chqcode ==
"D_SSp_SpNb") {
3050 vmax = (Double_t)5.;
3052 if (chqcode ==
"D_SSp_SpDs") {
3053 vmax = (Double_t)100.;
3056 if (chqcode ==
"D_Adc_EvNb") {
3057 vmax = (Double_t)500.;
3059 if (chqcode ==
"D_Adc_EvDs") {
3060 vmax = (Double_t)1000.;
3063 if (chqcode ==
"H_Ped_Date") {
3064 vmax = (Double_t)500.;
3066 if (chqcode ==
"H_TNo_Date") {
3067 vmax = (Double_t)5.;
3069 if (chqcode ==
"H_LFN_Date") {
3070 vmax = (Double_t)5.;
3072 if (chqcode ==
"H_HFN_Date") {
3073 vmax = (Double_t)5.;
3075 if (chqcode ==
"H_MCs_Date") {
3076 vmax = (Double_t)1.;
3078 if (chqcode ==
"H_SCs_Date") {
3079 vmax = (Double_t)0.5;
3082 if (chqcode ==
"H_Ped_RuDs") {
3083 vmax = (Double_t)1000.;
3085 if (chqcode ==
"H_TNo_RuDs") {
3086 vmax = (Double_t)1000.;
3088 if (chqcode ==
"H_LFN_RuDs") {
3089 vmax = (Double_t)1000.;
3091 if (chqcode ==
"H_HFN_RuDs") {
3092 vmax = (Double_t)1000.;
3094 if (chqcode ==
"H_MCs_RuDs") {
3095 vmax = (Double_t)1000.;
3097 if (chqcode ==
"H_SCs_RuDs") {
3098 vmax = (Double_t)1000.;
3113 TString StandardDetectorCode =
"?";
3115 if (UserDetector ==
"Super-module" || UserDetector ==
"SuperModule" || UserDetector ==
"super-module" ||
3116 UserDetector ==
"SM" || UserDetector ==
" " || UserDetector ==
"")
3118 StandardDetectorCode =
"SM";
3121 if (UserDetector ==
"DEE" || UserDetector ==
"Dee") {
3122 StandardDetectorCode =
"Dee";
3125 if (UserDetector ==
"Ecal barrel" || UserDetector ==
"EcalBarrel" || UserDetector ==
"ecal barrel" ||
3126 UserDetector ==
"Barrel" || UserDetector ==
"barrel" || UserDetector ==
"EB") {
3127 StandardDetectorCode =
"EB";
3130 if (UserDetector ==
"Ecal endcap" || UserDetector ==
"EcalEndcap" || UserDetector ==
"ecal endcap" ||
3131 UserDetector ==
"Endcap" || UserDetector ==
"endcap" || UserDetector ==
"EE") {
3132 StandardDetectorCode =
"EE";
3135 if (StandardDetectorCode ==
"?") {
3136 std::cout <<
"*TEcnaParHistos::BuildStandardDetectorCode(...)> UserDetector = " << UserDetector
3137 <<
" : code not found." <<
fTTBELL << std::endl;
3141 return StandardDetectorCode;
3146 TString StandardPlotOption =
"?";
3148 if (CallingMethod ==
"1D" || CallingMethod ==
"2DS" || CallingMethod ==
"Time") {
3149 if (UserPlotOption ==
"ONLY ONE" || UserPlotOption ==
"only one" || UserPlotOption ==
"onlyone" ||
3150 UserPlotOption ==
"Only one" || UserPlotOption ==
"OnlyOne" || UserPlotOption ==
"ONLYONE" ||
3151 UserPlotOption ==
fOnlyOnePlot || UserPlotOption ==
" " || UserPlotOption ==
"")
3156 if (UserPlotOption ==
"SAME" || UserPlotOption ==
"Same" || UserPlotOption ==
fSeveralPlot) {
3160 if (UserPlotOption ==
"SAME n" || UserPlotOption ==
"Same n" || UserPlotOption ==
fSameOnePlot) {
3170 if (CallingMethod ==
"1DX") {
3171 if (UserPlotOption ==
"ALL XTALS IN TOWER" || UserPlotOption ==
"ALL CHANNELS IN TOWER" ||
3172 UserPlotOption ==
"AllXtalsInTower" || UserPlotOption ==
"AllChannelsInTower" ||
3173 UserPlotOption ==
"ALL XTALS IN TOW" || UserPlotOption ==
"ALL CHANNELS IN TOW" ||
3174 UserPlotOption ==
"AllXtalsInTow" || UserPlotOption ==
"AllChannelsInTow" ||
3175 UserPlotOption ==
"ALL XTALS IN SC" || UserPlotOption ==
"ALL CHANNELS IN SC" ||
3176 UserPlotOption ==
"AllXtalsInSC" || UserPlotOption ==
"AllChannelsInSC" || UserPlotOption ==
"SAME IN TOWER" ||
3177 UserPlotOption ==
"SameInTower" || UserPlotOption ==
"SAME IN TOW" || UserPlotOption ==
"SameInTow" ||
3178 UserPlotOption ==
"SAME IN SC" || UserPlotOption ==
"SameInSC" || UserPlotOption ==
"Same in tower" ||
3179 UserPlotOption ==
"Same in tow" || UserPlotOption ==
"Same in SC" || UserPlotOption ==
"SameInSC" ||
3186 if (CallingMethod ==
"2D") {
3187 if (UserPlotOption ==
"COLZ" || UserPlotOption ==
" " || UserPlotOption ==
"")
3189 StandardPlotOption =
"COLZ";
3191 if (UserPlotOption ==
"BOX") {
3192 StandardPlotOption =
"BOX";
3194 if (UserPlotOption ==
"TEXT") {
3195 StandardPlotOption =
"TEXT";
3197 if (UserPlotOption ==
"CONTZ") {
3198 StandardPlotOption =
"CONTZ";
3200 if (UserPlotOption ==
"LEGO2Z") {
3201 StandardPlotOption =
"LEGO2Z";
3203 if (UserPlotOption ==
"SURF1Z") {
3204 StandardPlotOption =
"SURF1Z";
3206 if (UserPlotOption ==
"SURF2Z") {
3207 StandardPlotOption =
"SURF2Z";
3209 if (UserPlotOption ==
"SURF3Z") {
3210 StandardPlotOption =
"SURF3Z";
3212 if (UserPlotOption ==
"SURF4") {
3213 StandardPlotOption =
"SURF4";
3215 if (UserPlotOption ==
"ASCII") {
3216 StandardPlotOption =
"ASCII";
3221 if (StandardPlotOption ==
"?") {
3222 std::cout <<
"*TEcnaParHistos::BuildStandardPlotOption(...)> UserPlotOption = " << UserPlotOption
3223 <<
" : code not found." <<
fTTBELL << std::endl;
3227 return StandardPlotOption;
3233 TString StandardHistoCode =
"?";
3234 if (CallingMethod ==
"1D" || CallingMethod ==
"2DS" || CallingMethod ==
"Time") {
3236 if (UserHistoCode ==
"Tower" || UserHistoCode ==
"tower" || UserHistoCode ==
"tow" ||
3237 UserHistoCode ==
"Tower number" || UserHistoCode ==
"tower number" || UserHistoCode ==
"tow nb" ||
3238 UserHistoCode ==
"Tower#" || UserHistoCode ==
"tower#" || UserHistoCode ==
"tow#" || UserHistoCode ==
"Tow#" ||
3239 UserHistoCode ==
"Tow") {
3240 StandardHistoCode =
"Tow";
3243 if (UserHistoCode ==
"Super crystal" || UserHistoCode ==
"SuperCrystal" || UserHistoCode ==
"SuperXtal" ||
3244 UserHistoCode ==
"Super crystal number" || UserHistoCode ==
"SuperCrystalNumber" ||
3245 UserHistoCode ==
"SuperXtalNumber" || UserHistoCode ==
"Super crystal nb" || UserHistoCode ==
"SuperCrystal#" ||
3246 UserHistoCode ==
"SuperXtal#" || UserHistoCode ==
"SC#" || UserHistoCode ==
"SC") {
3247 StandardHistoCode =
"SC";
3250 if (UserHistoCode ==
"Crystal" || UserHistoCode ==
"crystal" || UserHistoCode ==
"Xtal" ||
3251 UserHistoCode ==
"Crystal number" || UserHistoCode ==
"crystal number" || UserHistoCode ==
"Xtal number" ||
3252 UserHistoCode ==
"Crystal#" || UserHistoCode ==
"crystal#" || UserHistoCode ==
"Xtal#" ||
3253 UserHistoCode ==
"Xtal") {
3254 StandardHistoCode =
"Xtal";
3257 if (StandardHistoCode ==
"Tow" || StandardHistoCode ==
"SC" || StandardHistoCode ==
"Xtal") {
3258 StandardHistoCode =
"XtalORStin";
3261 if (UserHistoCode ==
"Sample number" || UserHistoCode ==
"SampleNumber" || UserHistoCode ==
"Sample#" ||
3262 UserHistoCode ==
"Samp#" || UserHistoCode ==
"Sample" || UserHistoCode ==
"sample" || UserHistoCode ==
"Smp") {
3263 StandardHistoCode =
"Smp";
3266 if (UserHistoCode ==
"Event" || UserHistoCode ==
"event" || UserHistoCode ==
"Event number" ||
3267 UserHistoCode ==
"event number" || UserHistoCode ==
"EventNumber" || UserHistoCode ==
"Event#" ||
3268 UserHistoCode ==
"EvtNumber" || UserHistoCode ==
"Evt#" || UserHistoCode ==
"Evt number" ||
3269 UserHistoCode ==
"evt number" || UserHistoCode ==
"Evt") {
3270 StandardHistoCode =
"Evt";
3274 if (StandardHistoCode ==
"?") {
3280 if (StandardHistoCode ==
"?") {
3281 std::cout <<
"*TEcnaParHistos::BuildStandard1DHistoCodeX(...)> UserHistoCode = " << UserHistoCode
3282 <<
" : code not found." <<
fTTBELL << std::endl;
3286 return StandardHistoCode;
3292 TString StandardHistoCode =
"?";
3294 if (CallingMethod ==
"1D" || CallingMethod ==
"2DS" || CallingMethod ==
"Time") {
3296 if (UserHistoCode ==
"Number of crystals" || UserHistoCode ==
"NumberOfCrystals" ||
3297 UserHistoCode ==
"Nb of crystals" || UserHistoCode ==
"NbOfCrystals" || UserHistoCode ==
"Number of xtals" ||
3298 UserHistoCode ==
"NumberOfXtals" || UserHistoCode ==
"Nb of xtals" || UserHistoCode ==
"NbOfXtals" ||
3299 UserHistoCode ==
"nox" || UserHistoCode ==
"NOX") {
3300 StandardHistoCode =
"NOX";
3303 if (UserHistoCode ==
"Number of samples" || UserHistoCode ==
"NumberOfSamples" ||
3304 UserHistoCode ==
"Nb of samples" || UserHistoCode ==
"NbOfSamples" || UserHistoCode ==
"nos" ||
3305 UserHistoCode ==
"NOS") {
3306 StandardHistoCode =
"NOS";
3309 if (UserHistoCode ==
"Number of runs" || UserHistoCode ==
"NumberOfRuns" || UserHistoCode ==
"Nb of runs" ||
3310 UserHistoCode ==
"NbOfRuns" || UserHistoCode ==
"nor" || UserHistoCode ==
"NOR") {
3311 StandardHistoCode =
"NOR";
3315 if (StandardHistoCode ==
"?") {
3320 if (StandardHistoCode ==
"?") {
3321 std::cout <<
"*TEcnaParHistos::BuildStandard1DHistoCodeY(...)> UserHistoCode = " << UserHistoCode
3322 <<
" : code not found." <<
fTTBELL << std::endl;
3326 return StandardHistoCode;
3332 TString StandardHistoCode =
"?";
3335 if (UserHistoCode ==
"Number of events" || UserHistoCode ==
"Nb of evts" || UserHistoCode ==
"NumberbOfEvents" ||
3336 UserHistoCode ==
"NbOfEvts" || UserHistoCode ==
"number of events" || UserHistoCode ==
"noe" ||
3337 UserHistoCode ==
"NOE" || UserHistoCode ==
" " || UserHistoCode ==
"")
3339 StandardHistoCode =
"NOE";
3342 if (UserHistoCode ==
"Pedestals" || UserHistoCode ==
"Pedestal" || UserHistoCode ==
"pedestals" ||
3343 UserHistoCode ==
"pedestal" || UserHistoCode ==
"ped" || UserHistoCode ==
"Ped") {
3344 StandardHistoCode =
"Ped";
3347 if (UserHistoCode ==
"Total noise" || UserHistoCode ==
"TotalNoise" || UserHistoCode ==
"total noise" ||
3348 UserHistoCode ==
"TN" || UserHistoCode ==
"tn" || UserHistoCode ==
"TNo") {
3349 StandardHistoCode =
"TNo";
3352 if (UserHistoCode ==
"Low frequency noise" || UserHistoCode ==
"LowFrequencyNoise" || UserHistoCode ==
"LF noise" ||
3353 UserHistoCode ==
"LFNoise" || UserHistoCode ==
"low frequency noise" || UserHistoCode ==
"lfn" ||
3354 UserHistoCode ==
"LFN") {
3355 StandardHistoCode =
"LFN";
3358 if (UserHistoCode ==
"High frequency noise" || UserHistoCode ==
"HighFrequencyNoise" || UserHistoCode ==
"HF noise" ||
3359 UserHistoCode ==
"HFNoise" || UserHistoCode ==
"high frequency noise" || UserHistoCode ==
"hfn" ||
3360 UserHistoCode ==
"HFN") {
3361 StandardHistoCode =
"HFN";
3364 if (UserHistoCode ==
"Mean correlations between samples" || UserHistoCode ==
"MeanCorrelationsBetweenSamples" ||
3365 UserHistoCode ==
"Correlations between samples" || UserHistoCode ==
"CorrelationsBetweenSamples" ||
3366 UserHistoCode ==
"Mean corss" || UserHistoCode ==
"MeanCorss" || UserHistoCode ==
"Corss" ||
3367 UserHistoCode ==
"corss" || UserHistoCode ==
"Css" || UserHistoCode ==
"css" ||
3368 UserHistoCode ==
"mean correlations between samples" || UserHistoCode ==
"mcs" || UserHistoCode ==
"MCs") {
3369 StandardHistoCode =
"MCs";
3372 if (UserHistoCode ==
"Sigma of correlations between samples" ||
3373 UserHistoCode ==
"SigmaOfCorrelationsBetweenSamples" || UserHistoCode ==
"Sigma corss" ||
3374 UserHistoCode ==
"SigmaCorss" || UserHistoCode ==
"SigCorss" || UserHistoCode ==
"sigcorss" ||
3375 UserHistoCode ==
"SCss" || UserHistoCode ==
"scss" || UserHistoCode ==
"sigma of correlations between samples" ||
3376 UserHistoCode ==
"scs" || UserHistoCode ==
"SCs") {
3377 StandardHistoCode =
"SCs";
3380 if (UserHistoCode ==
"Sample mean" || UserHistoCode ==
"SampleMean" || UserHistoCode ==
"Sample average" ||
3381 UserHistoCode ==
"SampleAverage" || UserHistoCode ==
"SampMean" || UserHistoCode ==
"SampAverage" ||
3382 UserHistoCode ==
"MSp") {
3383 StandardHistoCode =
"MSp";
3386 if (UserHistoCode ==
"Sample sigma" || UserHistoCode ==
"SampleSigma" || UserHistoCode ==
"Sigma of samples" ||
3387 UserHistoCode ==
"SigmaOfSamples" || UserHistoCode ==
"SampSigma" || UserHistoCode ==
"SSp") {
3388 StandardHistoCode =
"SSp";
3391 if (UserHistoCode ==
"date" || UserHistoCode ==
"Date" || UserHistoCode ==
"time" || UserHistoCode ==
"Time") {
3392 StandardHistoCode =
"Time";
3395 if (UserHistoCode ==
"ADC value" || UserHistoCode ==
"ADCValue" || UserHistoCode ==
"Adc value" ||
3396 UserHistoCode ==
"AdcValue" || UserHistoCode ==
"Sample ADC" || UserHistoCode ==
"SampleAdc" ||
3397 UserHistoCode ==
"ADC" || UserHistoCode ==
"Adc") {
3398 StandardHistoCode =
"Adc";
3402 if (StandardHistoCode ==
"?") {
3403 std::cout <<
"*TEcnaParHistos::BuildStandard1DHistoCodeXY(...)> UserHistoCode = " << UserHistoCode
3404 <<
" : code not found." <<
fTTBELL << std::endl;
3408 return StandardHistoCode;
3414 TString StandardHistoCode =
"?";
3415 if (CallingMethod ==
"2D") {
3417 if (UserHistoCode ==
"Correlation" || UserHistoCode ==
"Correlations" || UserHistoCode ==
"correlation" ||
3418 UserHistoCode ==
"correlations" || UserHistoCode ==
"Correl" || UserHistoCode ==
"correl" ||
3419 UserHistoCode ==
"cor" || UserHistoCode ==
"Cor" || UserHistoCode ==
" " || UserHistoCode ==
"")
3421 StandardHistoCode =
"Cor";
3424 if (UserHistoCode ==
"Covariance" || UserHistoCode ==
"Covariances" || UserHistoCode ==
"covariance" ||
3425 UserHistoCode ==
"covariances" || UserHistoCode ==
"Covar" || UserHistoCode ==
"covar" ||
3426 UserHistoCode ==
"cov" || UserHistoCode ==
"Cov") {
3427 StandardHistoCode =
"Cov";
3431 if (StandardHistoCode ==
"?") {
3432 std::cout <<
"*TEcnaParHistos::BuildStandardCovOrCorCode(...)> UserHistoCode = " << UserHistoCode
3433 <<
" : code not found." <<
fTTBELL << std::endl;
3437 return StandardHistoCode;
3443 TString StandardHistoCode =
"?";
3444 if (CallingMethod ==
"2D") {
3446 if (UserHistoCode ==
"Samples" || UserHistoCode ==
"Between samples" || UserHistoCode ==
"samples" ||
3447 UserHistoCode ==
"between samples" || UserHistoCode ==
"BetweenSamples" || UserHistoCode ==
"Samp" ||
3448 UserHistoCode ==
"samp" || UserHistoCode ==
"ss" || UserHistoCode ==
"Mss") {
3449 StandardHistoCode =
"Mss";
3452 if (UserHistoCode ==
"LF channels" || UserHistoCode ==
"LF between channels" || UserHistoCode ==
"LFChannels" ||
3453 UserHistoCode ==
"LFBetweenChannels" || UserHistoCode ==
"LFChan" || UserHistoCode ==
"lfchan" ||
3454 UserHistoCode ==
"LFcc" || UserHistoCode ==
"lfcc" || UserHistoCode ==
"MccLF") {
3455 StandardHistoCode =
"MccLF";
3458 if (UserHistoCode ==
"HF channels" || UserHistoCode ==
"HF between channels" || UserHistoCode ==
"HFChannels" ||
3459 UserHistoCode ==
"HFBetweenChannels" || UserHistoCode ==
"HFChan" || UserHistoCode ==
"hfchan" ||
3460 UserHistoCode ==
"HFcc" || UserHistoCode ==
"hfcc" || UserHistoCode ==
"MccHF") {
3461 StandardHistoCode =
"MccHF";
3464 if (UserHistoCode ==
"LF towers" || UserHistoCode ==
"LF between towers" || UserHistoCode ==
"LFTowers" ||
3465 UserHistoCode ==
"LFBetweenTowers" || UserHistoCode ==
"LFTow" || UserHistoCode ==
"lftow" ||
3466 UserHistoCode ==
"LFtt" || UserHistoCode ==
"lftt" || UserHistoCode ==
"LF SCs" ||
3467 UserHistoCode ==
"LF between SCs" || UserHistoCode ==
"LFSCs" || UserHistoCode ==
"LFBetweenSCs" ||
3468 UserHistoCode ==
"LFSuperXtals" || UserHistoCode ==
"lfsc" || UserHistoCode ==
"LFSC" ||
3469 UserHistoCode ==
"lfsx" || UserHistoCode ==
"MttLF") {
3470 StandardHistoCode =
"MttLF";
3473 if (UserHistoCode ==
"HF towers" || UserHistoCode ==
"HF between towers" || UserHistoCode ==
"HFTowers" ||
3474 UserHistoCode ==
"HFBetweenTowers" || UserHistoCode ==
"HFTow" || UserHistoCode ==
"hftow" ||
3475 UserHistoCode ==
"HFtt" || UserHistoCode ==
"hftt" || UserHistoCode ==
"HF SCs" ||
3476 UserHistoCode ==
"HF between SCs" || UserHistoCode ==
"HFSCs" || UserHistoCode ==
"HFBetweenSCs" ||
3477 UserHistoCode ==
"HFSuperXtals" || UserHistoCode ==
"hfsc" || UserHistoCode ==
"HFSC" ||
3478 UserHistoCode ==
"hfsx" || UserHistoCode ==
"MttHF") {
3479 StandardHistoCode =
"MttHF";
3484 if (StandardHistoCode ==
"?") {
3485 std::cout <<
"*TEcnaParHistos::BuildStandardBetweenWhatCode(...)> UserHistoCode = " << UserHistoCode
3486 <<
" : code not found." <<
fTTBELL << std::endl;
3490 return StandardHistoCode;
3498 if (TypeOfCode ==
"DetectorCode") {
3499 std::cout <<
"*--------------------------------------- Standard detector codes:" << std::endl;
3500 std::cout <<
" EB (ECAL Barrel) " << std::endl;
3501 std::cout <<
" EE (ECAL Endcap) " << std::endl;
3502 std::cout <<
" SM (Barrel Super Module) " << std::endl;
3503 std::cout <<
" Dee (Encap Dee) " << std::endl;
3504 std::cout <<
" Other codes are available" << std::endl;
3505 std::cout <<
" See source file: TEcnaParHistos::BuildStandardDetectorCode(...)." << std::endl;
3506 std::cout <<
"*----------------------------------------------------------------" << std::endl;
3509 if (TypeOfCode ==
"PlotOption") {
3510 std::cout <<
"*--------------------------------------- Standard plot options:" << std::endl;
3511 std::cout <<
" All ROOT DRAW options and: " << std::endl;
3512 std::cout <<
" (nothing) " << std::endl;
3515 std::cout <<
" Other codes are available" << std::endl;
3516 std::cout <<
" See source file: TEcnaParHistos::BuildStandardPlotOption(...)." << std::endl;
3517 std::cout <<
"*--------------------------------------------------------------" << std::endl;
3520 if (TypeOfCode ==
"1DHistoCodeX") {
3521 std::cout <<
"*---------------------- Standard 1D histo codes for X coordinate:" << std::endl;
3522 std::cout <<
" Tow (SM tower) " << std::endl;
3523 std::cout <<
" SC (Dee super crystal) " << std::endl;
3524 std::cout <<
" Xtal (crystal) " << std::endl;
3525 std::cout <<
" Smp (Adc sample) " << std::endl;
3526 std::cout <<
" Evt (event) " << std::endl;
3527 std::cout <<
" Other codes are available" << std::endl;
3528 std::cout <<
" See source file: TEcnaParHistos::BuildStandard1DHistoCodeX(...)." << std::endl;
3529 std::cout <<
"*----------------------------------------------------------------" << std::endl;
3532 if (TypeOfCode ==
"1DHistoCodeY") {
3533 std::cout <<
"*---------------------- Standard 1D histo codes for Y coordinate;" << std::endl;
3534 std::cout <<
" NOX (number of crystals) " << std::endl;
3535 std::cout <<
" NOS (number of samples) " << std::endl;
3536 std::cout <<
" NOR (number of runs) " << std::endl;
3537 std::cout <<
" Other codes are available" << std::endl;
3538 std::cout <<
" See source file: TEcnaParHistos::BuildStandard1DHistoCodeY(...)." << std::endl;
3539 std::cout <<
"*----------------------------------------------------------------" << std::endl;
3542 if (TypeOfCode ==
"1DHistoCodeXY") {
3543 std::cout <<
"*------------------ Standard 1D histo codes for X or Y coordinate;" << std::endl;
3544 std::cout <<
" NOE (number of events) " << std::endl;
3545 std::cout <<
" Ped (pedestal) " << std::endl;
3546 std::cout <<
" TNo (total noise) " << std::endl;
3547 std::cout <<
" LFN (low frequency noise) " << std::endl;
3548 std::cout <<
" HFN (high frequency noise) " << std::endl;
3549 std::cout <<
" MCs (mean correlation between samples) " << std::endl;
3550 std::cout <<
" SCs (sigma of correlations between samples) " << std::endl;
3551 std::cout <<
" MSp (sample mean) " << std::endl;
3552 std::cout <<
" SSp (sample sigma) " << std::endl;
3553 std::cout <<
" Time (time, date) " << std::endl;
3554 std::cout <<
" Adc (ADC sample value) " << std::endl;
3555 std::cout <<
" Other codes are available" << std::endl;
3556 std::cout <<
" See source file: TEcnaParHistos::BuildStandard1DHistoCodeXY(...)." << std::endl;
3557 std::cout <<
"*-----------------------------------------------------------------" << std::endl;
3560 if (TypeOfCode ==
"CovOrCorCode") {
3561 std::cout <<
"*-------- Standard codes for matrix type (correlation or covariance);" << std::endl;
3562 std::cout <<
" Cor (correlation) " << std::endl;
3563 std::cout <<
" cov (covariance) " << std::endl;
3564 std::cout <<
" Other codes are available" << std::endl;
3565 std::cout <<
" See source file: TEcnaParHistos::BuildStandardCovOrCorCode(...)." << std::endl;
3566 std::cout <<
"*--------------------------------------------------------------------" << std::endl;
3569 if (TypeOfCode ==
"BetweenWhatCode") {
3570 std::cout <<
"*-------- Standard codes for quantities in correlation or covariance;" << std::endl;
3571 std::cout <<
" Mss (between samples) " << std::endl;
3572 std::cout <<
" MccLF (low frequency between channels) " << std::endl;
3573 std::cout <<
" MccHF (high frequency between channels) " << std::endl;
3574 std::cout <<
" MttLF (low frequency between towers [if EB] or SC [if EE]) " << std::endl;
3575 std::cout <<
" MttLF (high frequency between towers [if EB] or SC [if EE]) " << std::endl;
3576 std::cout <<
" Other codes are available" << std::endl;
3577 std::cout <<
" See source file: TEcnaParHistos::BuildStandardBetweenWhatCode(...)." << std::endl;
3578 std::cout <<
"*--------------------------------------------------------------------" << std::endl;
3585 TString TechHistoCode =
"?";
3588 if (StandardHistoCode ==
"NOE") {
3589 TechHistoCode =
"D_NOE_ChNb";
3591 if (StandardHistoCode ==
"Ped") {
3592 TechHistoCode =
"D_Ped_ChNb";
3594 if (StandardHistoCode ==
"TNo") {
3595 TechHistoCode =
"D_TNo_ChNb";
3597 if (StandardHistoCode ==
"LFN") {
3598 TechHistoCode =
"D_LFN_ChNb";
3600 if (StandardHistoCode ==
"HFN") {
3601 TechHistoCode =
"D_HFN_ChNb";
3603 if (StandardHistoCode ==
"MCs") {
3604 TechHistoCode =
"D_MCs_ChNb";
3606 if (StandardHistoCode ==
"SCs") {
3607 TechHistoCode =
"D_SCs_ChNb";
3610 if (TechHistoCode ==
"?") {
3611 std::cout <<
"*TEcnaParHistos::GetTechHistoCode(...)> StandardHistoCode = " << StandardHistoCode
3612 <<
" : code not found " <<
fTTBELL << std::endl;
3614 return TechHistoCode;
3619 TString TechHistoCode =
"?";
3622 if (X_Quantity ==
"XtalORStin" && Y_Quantity ==
"NOE") {
3623 TechHistoCode =
"D_NOE_ChNb";
3625 if (X_Quantity ==
"XtalORStin" && Y_Quantity ==
"Ped") {
3626 TechHistoCode =
"D_Ped_ChNb";
3628 if (X_Quantity ==
"XtalORStin" && Y_Quantity ==
"TNo") {
3629 TechHistoCode =
"D_TNo_ChNb";
3631 if (X_Quantity ==
"XtalORStin" && Y_Quantity ==
"LFN") {
3632 TechHistoCode =
"D_LFN_ChNb";
3634 if (X_Quantity ==
"XtalORStin" && Y_Quantity ==
"HFN") {
3635 TechHistoCode =
"D_HFN_ChNb";
3637 if (X_Quantity ==
"XtalORStin" && Y_Quantity ==
"MCs") {
3638 TechHistoCode =
"D_MCs_ChNb";
3640 if (X_Quantity ==
"XtalORStin" && Y_Quantity ==
"SCs") {
3641 TechHistoCode =
"D_SCs_ChNb";
3644 if (X_Quantity ==
"NOE" && Y_Quantity ==
"NOX") {
3645 TechHistoCode =
"D_NOE_ChDs";
3647 if (X_Quantity ==
"Ped" && Y_Quantity ==
"NOX") {
3648 TechHistoCode =
"D_Ped_ChDs";
3650 if (X_Quantity ==
"TNo" && Y_Quantity ==
"NOX") {
3651 TechHistoCode =
"D_TNo_ChDs";
3653 if (X_Quantity ==
"LFN" && Y_Quantity ==
"NOX") {
3654 TechHistoCode =
"D_LFN_ChDs";
3656 if (X_Quantity ==
"HFN" && Y_Quantity ==
"NOX") {
3657 TechHistoCode =
"D_HFN_ChDs";
3659 if (X_Quantity ==
"MCs" && Y_Quantity ==
"NOX") {
3660 TechHistoCode =
"D_MCs_ChDs";
3662 if (X_Quantity ==
"SCs" && Y_Quantity ==
"NOX") {
3663 TechHistoCode =
"D_SCs_ChDs";
3666 if (X_Quantity ==
"Smp" && Y_Quantity ==
"MSp") {
3667 TechHistoCode =
"D_MSp_SpNb";
3669 if (X_Quantity ==
"MSp" && Y_Quantity ==
"NOS") {
3670 TechHistoCode =
"D_MSp_SpDs";
3672 if (X_Quantity ==
"Smp" && Y_Quantity ==
"SSp") {
3673 TechHistoCode =
"D_SSp_SpNb";
3675 if (X_Quantity ==
"SSp" && Y_Quantity ==
"NOS") {
3676 TechHistoCode =
"D_SSp_SpDs";
3679 if (X_Quantity ==
"Evt" && Y_Quantity ==
"Adc") {
3680 TechHistoCode =
"D_Adc_EvNb";
3682 if (X_Quantity ==
"Adc" && Y_Quantity ==
"NOE") {
3683 TechHistoCode =
"D_Adc_EvDs";
3687 if (X_Quantity ==
"Time" && Y_Quantity ==
"Ped") {
3688 TechHistoCode =
"H_Ped_Date";
3690 if (X_Quantity ==
"Ped" && Y_Quantity ==
"NOR") {
3691 TechHistoCode =
"H_Ped_RuDs";
3694 if (X_Quantity ==
"Time" && Y_Quantity ==
"TNo") {
3695 TechHistoCode =
"H_TNo_Date";
3697 if (X_Quantity ==
"TNo" && Y_Quantity ==
"NOR") {
3698 TechHistoCode =
"H_TNo_RuDs";
3701 if (X_Quantity ==
"Time" && Y_Quantity ==
"LFN") {
3702 TechHistoCode =
"H_LFN_Date";
3704 if (X_Quantity ==
"LFN" && Y_Quantity ==
"NOR") {
3705 TechHistoCode =
"H_LFN_RuDs";
3708 if (X_Quantity ==
"Time" && Y_Quantity ==
"HFN") {
3709 TechHistoCode =
"H_HFN_Date";
3711 if (X_Quantity ==
"HFN" && Y_Quantity ==
"NOR") {
3712 TechHistoCode =
"H_HFN_RuDs";
3715 if (X_Quantity ==
"Time" && Y_Quantity ==
"MCs") {
3716 TechHistoCode =
"H_MCs_Date";
3718 if (X_Quantity ==
"MCs" && Y_Quantity ==
"NOR") {
3719 TechHistoCode =
"H_MCs_RuDs";
3722 if (X_Quantity ==
"Time" && Y_Quantity ==
"SCs") {
3723 TechHistoCode =
"H_SCs_Date";
3725 if (X_Quantity ==
"SCs" && Y_Quantity ==
"NOR") {
3726 TechHistoCode =
"H_SCs_RuDs";
3729 if (TechHistoCode ==
"?") {
3730 std::cout <<
"TEcnaParHistos::GetTechHistoCode(...)> HistoCode not found. X_Quantity = " << X_Quantity
3731 <<
", Y_Quantity = " << Y_Quantity << std::endl;
3733 return TechHistoCode;
TPaveText * SetPaveTowersXY(const Int_t &, const Int_t &)
TPaveText * SetPaveSCsXY(const Int_t &, const Int_t &)
void SetViewHistoStats(TH1D *, const TString &)
Color_t SetColorsForNumbers(const TString &)
TString BuildStandard1DHistoCodeX(const TString &, const TString &)
TPaveText * SetPaveStinsXY(const Int_t &, const Int_t &)
TString GetSCQuadFrom1DeeSCEcna(const Int_t &)
TString BuildStandardPlotOption(const TString &, const TString &)
Float_t AxisTitleOffset()
Int_t GetCodePlotAllXtalsInStin()
void SetViewHistoPadMargins(const TString &, const TString &)
TString GetCodeSameOnePlot()
Double_t fMarginAutoMinMax
TString BuildStandard1DHistoCodeXY(const TString &)
TPaveText * SetPaveSM(const TString &, const Int_t &, const TString &)
TString BuildStandard1DHistoCodeY(const TString &, const TString &)
Float_t DeeNameOffsetX(const Int_t &)
TString fAllXtalsInStinPlot
TString GetSMHalfBarrel(const Int_t &)
Int_t fMaxNbOfRunsInLists
TString GetEEDeeType(const Int_t &)
UInt_t CanvasFormatH(const TString &)
TPaveText * SetPaveEvolRuns(const Int_t &, const TString &, const Int_t &, const TString &, const TString &, const TString &)
Double_t GetYminDefaultValue(const TString &)
Double_t BoxLeftX(const TString &)
UInt_t SetCanvasWidth(const TString &, const TString &)
void SetViewHistoOffsets(TH1D *, const TString &, const TString &)
TPaveText * SetPaveLVRB(const Int_t &, const Int_t &)
void SetViewHistoStyle(const TString &)
TString GetXVarHisto(const TString &, const TString &, const Int_t &)
Double_t GetYmaxDefaultValue(const TString &)
Float_t DeeNumberOffsetX(const TString &, const Int_t &)
TString BuildStandardBetweenWhatCode(const TString &, const TString &)
TPaveText * SetPaveNbOfEvts(const Int_t &, const TString &, const TString &, const TString &)
Bool_t RegisterPointer(const TString &, const Long_t &)
TString GetTowerLvrbType(const Int_t &)
TPaveText * SetPaveEvolNbOfEvtsAna(const TString &, const Int_t &, const Int_t &, const Int_t &, const TString &)
TPaveText * SetPaveStex(const TString &, const Int_t &)
TString BuildStandardDetectorCode(const TString &)
Float_t AxisLabelOffset()
UInt_t CanvasFormatW(const TString &)
TString GetCodeSeveralPlot()
Int_t MaxNbOfRunsInLists()
TString GetCodeAllXtalsInStinPlot()
Color_t ColorTab(const Int_t &)
TPaveText * SetPaveCxyz(const Int_t &)
UInt_t SetCanvasHeight(const TString &, const TString &)
TString GetQuantityName(const TString &)
Float_t DeeOffsetX(const TString &, const Int_t &)
Int_t GetDSSCFrom1DeeSCEcna(const Int_t &, const Int_t &, const Int_t &)
TPaveText * SetPaveGeneralComment(const TString &)
TString GetHistoType(const TString &)
TPaveText * SetPaveTower(const Int_t &)
Int_t GetDSFrom1DeeSCEcna(const Int_t &, const Int_t &)
Int_t GetDeeSCConsFrom1DeeSCEcna(const Int_t &, const Int_t &)
Int_t fPlotAllXtalsInStin
TPaveText * SetPaveCrystal(const Int_t &, const Int_t &, const Int_t &)
TString GetYVarHisto(const TString &, const TString &, const Int_t &)
Color_t ColorDefinition(const TString &)
TPaveText * SetPaveStin(const Int_t &, const Int_t &)
TPaveText * SetPaveAnalysisRun(const TString &, const Int_t &, const Int_t &, const TString &, const Int_t &, const Int_t &, const TString &)
TString GetTechHistoCode(const TString &)
Double_t BoxTopY(const TString &)
TString BuildStandardCovOrCorCode(const TString &, const TString &)
void SetColorPalette(const TString &)
TPaveText * SetPaveDee(const TString &, const Int_t &, const TString &)
Int_t GetNbOfRunsDisplayed()
TPaveText * SetPaveCrystalSample(const Int_t &, const Int_t &, const Int_t &, const Int_t &)
TPaveText * SetOptionSamePaveBorder(const TString &, const TString &)
void SetEcalSubDetector(const TString &)
TString GetCodeOnlyOnePlot()
Double_t GetMarginAutoMinMax()
~TEcnaParHistos() override
Double_t BoxRightX(const TString &)
TString GetEcalSubDetector()
Int_t MaxStinHocoInStex()
TEcnaNumbering * fEcalNumbering
TPaveText * SetPaveSC(const Int_t &, const Int_t &)
Double_t BoxBottomY(const TString &)
void SetViewGraphOffsets(TGraph *, const TString &)
void ListOfStandardCodes(const TString &)
Long_t GetPointerValue(const TString &)
TPaveText * SetPaveStas()