68 std::cout <<
"*TEcnaHistos> WRONG MANAGEMENT OF ALLOCATIONS: fCnew = " <<
fCnew <<
", fCdelete = " <<
fCdelete 78 std::cout <<
"*TEcnaHistos> WRONG MANAGEMENT OF ROOT ALLOCATIONS: fCnewRoot = " <<
fCnewRoot 81 std::cout <<
"*TEcnaHistos> BRAVO! GOOD MANAGEMENT OF ROOT ALLOCATIONS:" 108 Long_t i_this = (Long_t)
this;
118 if (iCnaParCout == 0) {
126 Long_t iCnaParPaths = pObjectManager->
GetPointerValue(
"TEcnaParPaths");
127 if (iCnaParPaths == 0) {
147 Long_t iEcalNumbering = pObjectManager->
GetPointerValue(
"TEcnaNumbering");
148 if (iEcalNumbering == 0) {
156 Long_t iCnaParHistos = pObjectManager->
GetPointerValue(
"TEcnaParHistos");
157 if (iCnaParHistos == 0) {
166 if (iCnaWrite == 0) {
175 if (iMyRootFile == 0) {
665 fFapFileRuns =
"(file with list of runs parameters: no info)";
764 const Int_t& xArgNbOfSamples,
765 const Int_t& xArgRunNumber,
766 const Int_t& xArgFirstReqEvtNumber,
767 const Int_t& xArgLastReqEvtNumber,
768 const Int_t& xArgReqNbOfEvts,
769 const Int_t& xArgStexNumber) {
816 if (option_scale ==
"LOG") {
822 if (option_scale ==
"LOG") {
828 if (!(option_palette ==
"Rainbow" || option_palette ==
"rainbow")) {
831 if (option_palette ==
"Rainbow" || option_palette ==
"rainbow") {
903 const TString& UserCorOrCov,
904 const TString& UserBetweenWhat) {
905 PlotMatrix(read_matrix_corcc, UserCorOrCov, UserBetweenWhat,
"");
909 const TString& UserCorOrCov,
910 const TString& UserBetweenWhat,
911 const TString& UserPlotOption) {
912 TString CallingMethod =
"2D";
919 if (BetweenWhat !=
"?" && CorOrCov !=
"?") {
920 if (BetweenWhat ==
"MttLF" || BetweenWhat ==
"MttHF") {
924 if (BetweenWhat ==
"MccLF") {
927 if (BetweenWhat ==
"MccHF") {
933 std::cout <<
"!TEcnaHistos::PlotMatrix(...)> Histo cannot be reached." <<
fTTBELL << std::endl;
938 PlotMatrix(UserCorOrCov, UserBetweenWhat,
"");
942 const TString& UserBetweenWhat,
943 const TString& UserPlotOption) {
944 TString CallingMethod =
"2D";
951 if (BetweenWhat !=
"?" && CorOrCov !=
"?") {
952 if (BetweenWhat ==
"MttLF" || BetweenWhat ==
"MttHF") {
955 if (BetweenWhat ==
"MccLF") {
958 if (BetweenWhat ==
"MccHF") {
964 std::cout <<
"!TEcnaHistos::PlotMatrix(...)> Histo cannot be reached." <<
fTTBELL << std::endl;
971 const TString& UserCorOrCov,
972 const TString& UserBetweenWhat,
974 const Int_t& arg_n2) {
975 PlotMatrix(read_matrix, UserCorOrCov, UserBetweenWhat, arg_n1, arg_n2,
"");
979 const TString& UserCorOrCov,
980 const TString& UserBetweenWhat,
983 const TString& UserPlotOption) {
984 TString CallingMethod =
"2D";
991 if (BetweenWhat !=
"?" && CorOrCov !=
"?") {
992 if (BetweenWhat ==
"MccLF" || BetweenWhat ==
"MccHF") {
993 Int_t cStexStin_A = arg_n1;
994 Int_t cStexStin_B = arg_n2;
999 if (BetweenWhat ==
"Mss") {
1000 Int_t n1StexStin = arg_n1;
1001 Int_t i0StinEcha = arg_n2;
1011 std::cout <<
"!TEcnaHistos::PlotMatrix(...)> Histo cannot be reached." <<
fTTBELL << std::endl;
1016 const TString& UserBetweenWhat,
1017 const Int_t& arg_n1,
1018 const Int_t& arg_n2) {
1019 PlotMatrix(UserCorOrCov, UserBetweenWhat, arg_n1, arg_n2,
"");
1023 const TString& UserBetweenWhat,
1024 const Int_t& arg_n1,
1025 const Int_t& arg_n2,
1026 const TString& UserPlotOption) {
1027 TString CallingMethod =
"2D";
1034 if (StandardBetweenWhat !=
"?" && StandardCorOrCov !=
"?") {
1035 if (StandardBetweenWhat ==
"MccLF" || StandardBetweenWhat ==
"MccHF") {
1036 Int_t cStexStin_A = arg_n1;
1037 Int_t cStexStin_B = arg_n2;
1044 StandardBetweenWhat,
1045 StandardPlotOption);
1048 if (StandardBetweenWhat ==
"Mss") {
1049 Int_t n1StexStin = arg_n1;
1050 Int_t i0StinEcha = arg_n2;
1061 StandardBetweenWhat,
1062 StandardPlotOption);
1067 std::cout <<
"!TEcnaHistos::PlotMatrix(...)> Histo cannot be reached." <<
fTTBELL << std::endl;
1078 TString CallingMethod =
"2DS";
1081 if (StandardHistoCode !=
"?") {
1084 if (StandardDetectorCode !=
"?") {
1090 if (StandardDetectorCode ==
"SM" || StandardDetectorCode ==
"Dee") {
1093 if (StandardDetectorCode ==
"EB" || StandardDetectorCode ==
"EE") {
1099 std::cout <<
"!TEcnaHistos::PlotDetector(...)> Histo cannot be reached." <<
fTTBELL << std::endl;
1104 std::cout <<
"!TEcnaHistos::PlotDetector(...)> Histo cannot be reached." <<
fTTBELL << std::endl;
1109 TString CallingMethod =
"2DS";
1112 if (StandardHistoCode !=
"?") {
1115 if (StandardDetectorCode !=
"?") {
1123 if (StandardDetectorCode ==
"SM" || StandardDetectorCode ==
"Dee") {
1126 if (StandardDetectorCode ==
"EB" || StandardDetectorCode ==
"EE") {
1132 std::cout <<
"!TEcnaHistos::PlotDetector(...)> Histo cannot be reached." <<
fTTBELL << std::endl;
1137 std::cout <<
"!TEcnaHistos::PlotDetector(...)> Histo cannot be reached." <<
fTTBELL << std::endl;
1147 const TString& User_X_Quantity,
1148 const TString& User_Y_Quantity,
1149 const TString& UserDetector) {
1150 Plot1DHisto(InputHisto, User_X_Quantity, User_Y_Quantity, UserDetector,
"");
1154 const TString& User_X_Quantity,
1155 const TString& User_Y_Quantity,
1156 const TString& UserDetector,
1157 const TString& UserPlotOption) {
1158 TString CallingMethod =
"1D";
1165 if (Standard_X_Quantity !=
"?" && Standard_Y_Quantity !=
"?") {
1171 if (StandardDetectorCode !=
"?") {
1172 if (StandardDetectorCode ==
"EB" || StandardDetectorCode ==
"EE") {
1179 std::cout <<
"!TEcnaHistos::Plot1DHisto(...)> Histo cannot be reached." <<
fTTBELL << std::endl;
1184 std::cout <<
"!TEcnaHistos::Plot1DHisto(...)> Histo cannot be reached." <<
fTTBELL << std::endl;
1189 const TString& User_Y_Quantity,
1190 const TString& UserDetector) {
1191 Plot1DHisto(User_X_Quantity, User_Y_Quantity, UserDetector,
"");
1195 const TString& User_Y_Quantity,
1196 const TString& UserDetector,
1197 const TString& UserPlotOption) {
1198 TString CallingMethod =
"1D";
1205 if (Standard_X_Quantity !=
"?" && Standard_Y_Quantity !=
"?") {
1208 if (StandardDetectorCode !=
"?") {
1209 if (StandardDetectorCode ==
"EB" || StandardDetectorCode ==
"EE") {
1216 std::cout <<
"!TEcnaHistos::Plot1DHisto(...)> Histo cannot be reached." <<
fTTBELL << std::endl;
1221 std::cout <<
"!TEcnaHistos::Plot1DHisto(...)> Histo cannot be reached." <<
fTTBELL << std::endl;
1230 const TString& User_X_Quantity,
1231 const TString& User_Y_Quantity,
1232 const Int_t& n1StexStin) {
1233 Plot1DHisto(InputHisto, User_X_Quantity, User_Y_Quantity, n1StexStin,
"");
1237 const TString& User_X_Quantity,
1238 const TString& User_Y_Quantity,
1239 const Int_t& n1StexStin,
1240 const TString& UserPlotOption) {
1241 TString CallingMethod =
"1DX";
1243 Int_t i0StinEcha = 0;
1244 Plot1DHisto(InputHisto, User_X_Quantity, User_Y_Quantity, n1StexStin, i0StinEcha, StandardPlotOption);
1249 const TString& User_X_Quantity,
1250 const TString& User_Y_Quantity,
1251 const Int_t& n1StexStin,
1252 const Int_t& i0StinEcha) {
1253 Plot1DHisto(InputHisto, User_X_Quantity, User_Y_Quantity, n1StexStin, i0StinEcha,
"");
1257 const TString& User_X_Quantity,
1258 const TString& User_Y_Quantity,
1259 const Int_t& n1StexStin,
1260 const Int_t& i0StinEcha,
1261 const TString& UserPlotOption) {
1262 TString CallingMethod =
"1D";
1269 if (Standard_X_Quantity !=
"?" && Standard_Y_Quantity !=
"?") {
1276 if (Standard_X_Quantity ==
"Smp" && Standard_Y_Quantity ==
"MSp") {
1279 if (Standard_X_Quantity ==
"MSp" && Standard_Y_Quantity ==
"NOS") {
1282 if (Standard_X_Quantity ==
"Smp" && Standard_Y_Quantity ==
"SSp") {
1285 if (Standard_X_Quantity ==
"SSp" && Standard_Y_Quantity ==
"NOS") {
1292 std::cout <<
"!TEcnaHistos::Plot1DHisto(...)> Histo cannot be reached." <<
fTTBELL << std::endl;
1297 const TString& User_Y_Quantity,
1298 const Int_t& n1StexStin,
1299 const Int_t& i0StinEcha) {
1300 Plot1DHisto(User_X_Quantity, User_Y_Quantity, n1StexStin, i0StinEcha,
"");
1304 const TString& User_Y_Quantity,
1305 const Int_t& n1StexStin,
1306 const Int_t& i0StinEcha,
1307 const TString& UserPlotOption) {
1308 TString CallingMethod =
"1D";
1315 if (Standard_X_Quantity !=
"?" && Standard_Y_Quantity !=
"?") {
1321 if (Standard_X_Quantity ==
"Smp" && Standard_Y_Quantity ==
"MSp") {
1324 if (Standard_X_Quantity ==
"MSp" && Standard_Y_Quantity ==
"NOS") {
1327 if (Standard_X_Quantity ==
"Smp" && Standard_Y_Quantity ==
"SSp") {
1330 if (Standard_X_Quantity ==
"SSp" && Standard_Y_Quantity ==
"NOS") {
1337 std::cout <<
"!TEcnaHistos::Plot1DHisto(...)> Histo cannot be reached." <<
fTTBELL << std::endl;
1342 const TString& User_X_Quantity,
1343 const TString& User_Y_Quantity,
1344 const Int_t& n1StexStin,
1345 const Int_t& i0StinEcha,
1346 const Int_t& n1Sample) {
1347 Plot1DHisto(InputHisto, User_X_Quantity, User_Y_Quantity, n1StexStin, i0StinEcha, n1Sample,
"");
1351 const TString& User_X_Quantity,
1352 const TString& User_Y_Quantity,
1353 const Int_t& n1StexStin,
1354 const Int_t& i0StinEcha,
1355 const Int_t& n1Sample,
1356 const TString& UserPlotOption) {
1357 TString CallingMethod =
"1D";
1366 if (Standard_X_Quantity !=
"?" && Standard_Y_Quantity !=
"?") {
1367 Int_t i0Sample = n1Sample - 1;
1369 ViewHisto(InputHisto,
fAlreadyRead, n1StexStin, i0StinEcha, i0Sample, TechHistoCode, StandardPlotOption);
1373 std::cout <<
"!TEcnaHistos::Plot1DHisto(...)> Histo cannot be reached." <<
fTTBELL << std::endl;
1378 const TString& User_Y_Quantity,
1379 const Int_t& n1StexStin,
1380 const Int_t& i0StinEcha,
1381 const Int_t& n1Sample) {
1382 Plot1DHisto(User_X_Quantity, User_Y_Quantity, n1StexStin, i0StinEcha, n1Sample,
"");
1386 const TString& User_Y_Quantity,
1387 const Int_t& n1StexStin,
1388 const Int_t& i0StinEcha,
1389 const Int_t& n1Sample,
1390 const TString& UserPlotOption) {
1391 TString CallingMethod =
"1D";
1398 Int_t i0Sample = n1Sample - 1;
1400 if (Standard_X_Quantity !=
"?" && Standard_Y_Quantity !=
"?") {
1406 std::cout <<
"!TEcnaHistos::Plot1DHisto(...)> Histo cannot be reached." <<
fTTBELL << std::endl;
1416 const TString& User_Y_Quantity,
1417 const TString& list_of_run_file_name,
1418 const Int_t& StexStin_A,
1419 const Int_t& i0StinEcha) {
1420 PlotHistory(User_X_Quantity, User_Y_Quantity, list_of_run_file_name, StexStin_A, i0StinEcha,
"");
1424 const TString& User_Y_Quantity,
1425 const TString& list_of_run_file_name,
1426 const Int_t& StexStin_A,
1427 const Int_t& i0StinEcha,
1428 const TString& UserPlotOption) {
1429 TString CallingMethod =
"Time";
1436 if (Standard_X_Quantity !=
"?" && Standard_Y_Quantity !=
"?") {
1438 ViewHistime(list_of_run_file_name, StexStin_A, i0StinEcha, TechHistoCode, StandardPlotOption);
1442 std::cout <<
"!TEcnaHistos::PlotHistory(...)> Histo cannot be reached." <<
fTTBELL << std::endl;
1491 const Int_t& arg_AlreadyRead,
1492 const Int_t& StexStin_A,
1493 const Int_t& StexStin_B,
1494 const Int_t& MatrixBinIndex,
1495 const TString& CorOrCov,
1496 const TString& BetweenWhat,
1497 const TString& PlotOption) {
1500 if ((
fFapStexNumber > 0) && (fFapStexNumber <= fEcal->MaxStexInStas())) {
1501 Bool_t OKArray = kFALSE;
1502 Bool_t OKData = kFALSE;
1516 if (OKArray == kTRUE) {
1523 vStin(
i) = (Double_t)0.;
1536 if (arg_AlreadyRead >= 1) {
1551 if (OKArray == kTRUE)
1555 if (OKData == kTRUE) {
1558 Int_t Stin_X_ok = 0;
1559 Int_t Stin_Y_ok = 0;
1570 if (vStin(index_Stin) == StexStin_A) {
1573 if (vStin(index_Stin) == StexStin_B) {
1578 if (Stin_X_ok == 1 && Stin_Y_ok == 1) {
1580 Int_t ReadMatSize = -1;
1581 Int_t i0StinEcha = -1;
1587 i0StinEcha = (Int_t)MatrixBinIndex;
1604 ((BetweenWhat ==
fBetweenSamples) && (i0StinEcha >= 0) && (i0StinEcha < fEcal->MaxCrysInStin()))) {
1605 TMatrixD read_matrix(ReadMatSize, ReadMatSize);
1606 for (Int_t
i = 0;
i - ReadMatSize < 0;
i++) {
1607 for (Int_t
j = 0;
j - ReadMatSize < 0;
j++) {
1608 read_matrix(
i,
j) = (Double_t)0.;
1612 Bool_t OKData = kFALSE;
1652 read_matrix = arg_read_matrix;
1656 if (OKData == kTRUE) {
1659 if (PlotOption ==
"ASCII") {
1660 WriteMatrixAscii(BetweenWhat, CorOrCov, StexStin_A, MatrixBinIndex, ReadMatSize, read_matrix);
1666 sprintf(f_in_mat_tit,
"Covariance(Sample, Sample')");
1669 sprintf(f_in_mat_tit,
"Correlation(Sample, Sample')");
1674 sprintf(f_in_mat_tit,
"Mean LF |Cor(Xtal,Xtal')| for each (Tower,Tower')");
1677 sprintf(f_in_mat_tit,
"Mean HF |Cor(Xtal,Xtal')| for each (Tower,Tower')");
1682 sprintf(f_in_mat_tit,
"Mean LF |Cor(Xtal,Xtal')| for each (SC,SC')");
1685 sprintf(f_in_mat_tit,
"Mean HF |Cor(Xtal,Xtal')| for each (SC,SC')");
1691 sprintf(f_in_mat_tit,
"LF Cor(Xtal,Xtal') matrix elts for (Tow,Tow')");
1694 sprintf(f_in_mat_tit,
"LF Cor(Xtal,Xtal') matrix elts for (SC,SC')");
1699 sprintf(f_in_mat_tit,
"HF Cor(Xtal,Xtal') matrix elts for (Tow,Tow')");
1702 sprintf(f_in_mat_tit,
"LF Cor(Xtal,Xtal') matrix elts for (SC,SC')");
1707 TString axis_x_var_name;
1708 TString axis_y_var_name;
1715 sprintf(f_in_axis_x,
" %s number ",
fFapStinName.Data());
1718 sprintf(f_in_axis_x,
" %s number for construction ",
fFapStinName.Data());
1721 axis_x_var_name = f_in_axis_x;
1722 axis_y_var_name = f_in_axis_x;
1725 axis_x_var_name =
" Sample ";
1726 axis_y_var_name =
" Sample ";
1729 sprintf(f_in_axis_x,
" Crystal %s %d ",
fFapStinName.Data(), StexStin_A);
1730 sprintf(f_in_axis_y,
" Crystal %s %d ",
fFapStinName.Data(), StexStin_B);
1731 axis_x_var_name = f_in_axis_x;
1732 axis_y_var_name = f_in_axis_y;
1735 Int_t nb_binx = MatSize;
1736 Int_t nb_biny = MatSize;
1737 Axis_t xinf_bid = (Axis_t)0.;
1738 Axis_t xsup_bid = (Axis_t)MatSize;
1739 Axis_t yinf_bid = (Axis_t)0.;
1740 Axis_t ysup_bid = (Axis_t)MatSize;
1752 new TH2D(
"bidim", f_in_mat_tit, nb_binx, xinf_bid, xsup_bid, nb_biny, yinf_bid, ysup_bid);
1756 h_fbid0->GetXaxis()->SetTitle(axis_x_var_name);
1757 h_fbid0->GetYaxis()->SetTitle(axis_y_var_name);
1761 for (Int_t
i = 0;
i < ReadMatSize;
i++) {
1762 for (Int_t
j = 0;
j < ReadMatSize;
j++) {
1767 if (xi_bid > 0 && xj_bid > 0) {
1768 Int_t xi_bid_m = xi_bid - 1;
1769 Int_t xj_bid_m = xj_bid - 1;
1770 h_fbid0->Fill(xi_bid_m, xj_bid_m, read_matrix(
i,
j));
1775 for (Int_t
i = 0;
i - ReadMatSize < 0;
i++) {
1776 Double_t
xi = (Double_t)
i;
1777 for (Int_t
j = 0;
j < ReadMatSize;
j++) {
1778 Double_t xj = (Double_t)
j;
1779 Double_t mat_val = (Double_t)read_matrix(
i,
j);
1780 h_fbid0->Fill(xi, xj, (Double_t)mat_val);
1787 TString quantity_code =
"D_MCs_ChNb";
1790 quantity_code =
"D_MCs_ChNb";
1794 quantity_code =
"H2LFccMosMatrix";
1797 quantity_code =
"H2HFccMosMatrix";
1801 quantity_code =
"H2LFccMosMatrix";
1804 quantity_code =
"H2HFccMosMatrix";
1808 quantity_code =
"H2HFccMosMatrix";
1877 HistoType =
"(no quantity type info)";
1879 if (PlotOption ==
"COLZ") {
1882 if (PlotOption ==
"BOX") {
1885 if (PlotOption ==
"TEXT") {
1888 if (PlotOption ==
"CONTZ") {
1891 if (PlotOption ==
"LEGO2Z") {
1894 if (PlotOption ==
"SURF1Z") {
1897 if (PlotOption ==
"SURF2Z") {
1900 if (PlotOption ==
"SURF3Z") {
1903 if (PlotOption ==
"SURF4") {
1918 TString name_cov_cor;
1922 name_cov_cor =
"Covariance";
1925 name_cov_cor =
"Correlation";
1928 TString name_chan_samp;
1930 name_chan_samp =
"?";
1933 name_chan_samp =
"LFccMos";
1936 name_chan_samp =
"HFccMos";
1940 name_chan_samp =
"LF_cc";
1943 name_chan_samp =
"HF_cc";
1947 name_chan_samp =
"Between_Samples";
1954 name_visu = PlotOption;
1958 "%s_%s_%s_S1_%d_R%d_%d_%d_%s%d_%s",
1959 name_cov_cor.Data(),
1960 name_chan_samp.Data(),
1973 "%s_%s_%s_S1_%d_R%d_%d_%d_%s%d_%sX%d_%sY%d_%s",
1974 name_cov_cor.Data(),
1975 name_chan_samp.Data(),
1992 "%s_%s_%s_S1_%d_R%d_%d_%d_%s%d_%sX%d_%sY%d_ElecChannel_%d_%s",
1993 name_cov_cor.Data(),
1994 name_chan_samp.Data(),
2013 TCanvas* MainCanvas =
new TCanvas(f_in, f_in, canv_w, canv_h);
2040 MainCanvas->Divide(1, 1, x_margin, y_margin);
2045 gPad->SetLogy(logy);
2047 gPad->SetGrid(1, 1);
2049 h_fbid0->DrawCopy(PlotOption);
2050 h_fbid0->SetStats(
true);
2068 std::cout <<
"*TEcnaHistos::ViewMatrix(...)> *ERROR* ==> Wrong channel number in " <<
fFapStinName.Data()
2069 <<
". Value = " << i0StinEcha <<
" (required range: [0, " <<
fEcal->
MaxCrysInStin() - 1 <<
"] )" 2084 if (Stin_X_ok != 1) {
2086 std::cout <<
"*TEcnaHistos::ViewMatrix(...)> *ERROR* =====> " <<
fFapStinName.Data() <<
" " << StexStin_A
2087 <<
", " <<
fFapStinName.Data() <<
" not found. Available numbers = ";
2098 <<
fFapStinName.Data() <<
" not found. Available numbers = ";
2107 if (Stin_Y_ok != 1) {
2109 std::cout <<
"*TEcnaHistos::ViewMatrix(...)> *ERROR* =====> " <<
fFapStinName.Data() <<
" " << StexStin_B
2110 <<
", " <<
fFapStinName.Data() <<
" not found. Available numbers = ";
2121 <<
fFapStinName.Data() <<
" not found. Available numbers = ";
2134 std::cout <<
"!TEcnaHistos::ViewMatrix(...)> *ERROR* =====> " 2135 <<
" Histo not available." <<
fTTBELL << std::endl;
2142 std::cout <<
"!TEcnaHistos::ViewMatrix(...)> *ERROR* =====> " 2143 <<
" ROOT file not found" <<
fTTBELL << std::endl;
2183 if ((
fFapStexNumber > 0) && fFapStexNumber <= fEcal->MaxStexInStas()) {
2184 Int_t StexStin = cStexStin;
2210 vStin(
i) = (Double_t)0.;
2219 if (vStin(index_Stin) == StexStin) {
2233 sprintf(f_in_mat_tit,
"Xtal's Cov(s,s') matrices in %s.",
fFapStinName.Data());
2236 sprintf(f_in_mat_tit,
"Xtal's Cor(s,s') matrices in %s.",
fFapStinName.Data());
2241 Int_t nb_binx = GeoBidSize;
2242 Int_t nb_biny = GeoBidSize;
2243 Axis_t xinf_bid = (Axis_t)0.;
2244 Axis_t xsup_bid = (Axis_t)GeoBidSize;
2245 Axis_t yinf_bid = (Axis_t)0.;
2246 Axis_t ysup_bid = (Axis_t)GeoBidSize;
2252 new TH2D(
"geobidim_ViewStin", f_in_mat_tit, nb_binx, xinf_bid, xsup_bid, nb_biny, yinf_bid, ysup_bid);
2262 TMatrixD read_matrix(ReadMatSize, ReadMatSize);
2263 for (Int_t
i = 0;
i - ReadMatSize < 0;
i++) {
2264 for (Int_t
j = 0;
j - ReadMatSize < 0;
j++) {
2265 read_matrix(
i,
j) = (Double_t)0.;
2269 Int_t i_data_exist = 0;
2286 for (Int_t i_samp = 0; i_samp < ReadMatSize; i_samp++) {
2288 for (Int_t j_samp = 0; j_samp < ReadMatSize; j_samp++) {
2290 h_geo_bid->Fill((Double_t)i_xgeo, (Double_t)j_ygeo, (Double_t)read_matrix(i_samp, j_samp));
2298 TString quantity_code =
"D_MCs_ChNb";
2300 quantity_code =
"D_MCs_ChNb";
2303 quantity_code =
"H2HFccMosMatrix";
2350 if (i_data_exist > 0) {
2361 TString name_cov_cor;
2365 name_cov_cor =
"CovSS_Matrices_in_";
2368 name_cov_cor =
"CorSS_Matrices_in_";
2376 "%s_%s_%s_S1_%d_R%d_%d_%d_%s%d_%s%d_%s",
2377 name_cov_cor.Data(),
2392 TCanvas* MainCanvas =
new TCanvas(f_in, f_in, canv_w, canv_h);
2410 MainCanvas->Divide(1, 1, x_margin, y_margin);
2414 gPad->SetLogy(logy);
2416 h_geo_bid->DrawCopy(
"COLZ");
2426 h_geo_bid->SetStats(
true);
2431 h_geo_bid->Delete();
2432 h_geo_bid =
nullptr;
2435 std::cout <<
"!TEcnaHistos::ViewStin(...)> *ERROR* =====> " <<
fFapStinName.Data() <<
" " << cStexStin
2437 <<
" Available numbers = ";
2458 std::cout <<
"!TEcnaHistos::ViewStin(...)> *ERROR* =====> " 2459 <<
" ROOT file not found" <<
fTTBELL << std::endl;
2495 if ((SMNumber > 0) && (SMNumber <= fEcal->MaxSMInEB())) {
2505 Int_t nx_gbins = nb_bins * size_eta;
2506 Int_t ny_gbins = nb_bins * size_phi;
2508 Axis_t xinf_gbid = (Axis_t)0.;
2510 Axis_t yinf_gbid = (Axis_t)0.;
2513 TString fg_name =
"M0' crystals";
2514 TString fg_tit =
"Xtal numbering (chan. in tow, chan. in SM, Xtal in SM, hashed)";
2518 h_gbid =
new TH2D(fg_name.Data(), fg_tit.Data(), nx_gbins, xinf_gbid, xsup_gbid, ny_gbins, yinf_gbid, ysup_gbid);
2536 gStyle->SetPalette(1,
nullptr);
2552 TCanvas* MainCanvas =
new TCanvas(f_in, f_in, canv_w, canv_h);
2562 MainCanvas->Divide(1, 1, x_margin, y_margin);
2568 Bool_t b_true =
true;
2569 Bool_t b_false =
false;
2572 gStyle->SetMarkerColor(couleur_rouge);
2575 gPad->SetLogy(logy);
2579 h_gbid->SetStats(b_false);
2580 h_gbid->DrawCopy(
"COLZ");
2588 TText* text_elec_num =
new TText();
2590 if (TowerLvrbType ==
"top") {
2591 text_elec_num->SetTextColor(couleur_rouge);
2593 if (TowerLvrbType ==
"bottom") {
2594 text_elec_num->SetTextColor(couleur_bleu_fonce);
2596 text_elec_num->SetTextSize(0.04);
2599 TText* text_sme_num =
new TText();
2601 if (TowerLvrbType ==
"top") {
2602 text_sme_num->SetTextColor(couleur_rouge);
2604 if (TowerLvrbType ==
"bottom") {
2605 text_sme_num->SetTextColor(couleur_bleu_fonce);
2607 text_sme_num->SetTextSize(0.03);
2610 TText* text_sm_num =
new TText();
2612 text_sm_num->SetTextColor(couleur_noir);
2613 text_sm_num->SetTextSize(0.03);
2616 TText* text_hsd_num =
new TText();
2618 text_hsd_num->SetTextColor(couleur_noir);
2619 text_hsd_num->SetTextSize(0.03);
2624 Double_t off_set = (Double_t)1.;
2629 Int_t i_xgeo =
GetXSampInStin(SMNumber, n1SMTow, i_chan, i_samp);
2630 Int_t i_ygeo =
GetYSampInStin(SMNumber, n1SMTow, i_chan, i_samp);
2632 Double_t xgi = i_xgeo + 3. * off_set;
2633 Double_t ygj = i_ygeo + 7. * off_set;
2635 Double_t xgi_sme = i_xgeo + 3. * off_set;
2636 Double_t ygj_sme = i_ygeo + 5. * off_set;
2638 Double_t xgi_sm = i_xgeo + 3. * off_set;
2639 Double_t ygj_sm = i_ygeo + 3. * off_set;
2641 Double_t xgi_hsd = i_xgeo + 3. * off_set;
2642 Double_t ygj_hsd = i_ygeo + 1. * off_set;
2654 sprintf(f_in_elec,
"%d", i_chan);
2655 text_elec_num->DrawText(xgi, ygj, f_in_elec);
2657 sprintf(f_in_sme,
"%d", i_crys_sme);
2658 text_sme_num->DrawText(xgi_sme, ygj_sme, f_in_sme);
2660 sprintf(f_in_sm,
"%d", i_crys_sm);
2661 text_sm_num->DrawText(xgi_sm, ygj_sm, f_in_sm);
2663 sprintf(f_in_hsd,
"%d", i_crys_hsd);
2664 text_sm_num->DrawText(xgi_hsd, ygj_hsd, f_in_hsd);
2666 text_sm_num->Delete();
2667 text_sm_num =
nullptr;
2669 text_sme_num->Delete();
2670 text_sme_num =
nullptr;
2672 text_elec_num->Delete();
2673 text_elec_num =
nullptr;
2675 text_hsd_num->Delete();
2676 text_hsd_num =
nullptr;
2679 ViewStinGrid(SMNumber, n1SMTow, MatSize, size_eta, size_phi,
"CrystalNumbering");
2682 h_gbid->SetStats(b_true);
2689 std::cout <<
"!TEcnaHistos::TowerCrystalNumbering(...)> SM = " << SMNumber <<
". Out of range ( range = [1," 2704 if ((DeeNumber > 0) && (DeeNumber <= fEcal->MaxDeeInEE())) {
2716 Int_t nx_gbins = nb_bins * size_IX;
2717 Int_t ny_gbins = nb_bins * size_IY;
2719 Axis_t xinf_gbid = (Axis_t)0.;
2721 Axis_t yinf_gbid = (Axis_t)0.;
2724 TString fg_name =
"crystalnbring";
2725 TString fg_tit =
"Xtal numbering for construction";
2728 h_gbid =
new TH2D(fg_name.Data(), fg_tit.Data(), nx_gbins, xinf_gbid, xsup_gbid, ny_gbins, yinf_gbid, ysup_gbid);
2745 gStyle->SetPalette(1,
nullptr);
2759 TCanvas* MainCanvas =
new TCanvas(f_in, f_in, canv_w, canv_h);
2770 MainCanvas->Divide(1, 1, x_margin, y_margin);
2776 Bool_t b_true =
true;
2777 Bool_t b_false =
false;
2780 gStyle->SetMarkerColor(couleur_rouge);
2783 gPad->SetLogy(logy);
2786 h_gbid->SetStats(b_false);
2788 h_gbid->DrawCopy(
"COLZ");
2795 Color_t couleur_SC =
GetSCColor(DeeEndcap, DeeDir, SCQuadType);
2798 TText* text_elec_num =
new TText();
2800 text_elec_num->SetTextColor(couleur_SC);
2801 text_elec_num->SetTextSize(0.06);
2810 Int_t i_xgeo =
GetXSampInStin(DeeNumber, n1DeeSCEcna, i_chan, i_samp);
2811 Int_t i_ygeo =
GetYSampInStin(DeeNumber, n1DeeSCEcna, i_chan, i_samp);
2813 Double_t xgi = i_xgeo + off_set;
2814 Double_t ygj = i_ygeo + 2 * off_set;
2817 Int_t i_chan_p = i_chan + 1;
2818 sprintf(f_in_elec,
"%d", i_chan_p);
2819 text_elec_num->DrawText(xgi, ygj, f_in_elec);
2821 text_elec_num->Delete();
2822 text_elec_num =
nullptr;
2828 h_gbid->SetStats(b_true);
2835 std::cout <<
"!TEcnaHistos::SCCrystalNumbering(...)> Dee = " << DeeNumber <<
". Out of range ( range = [1," 2847 const Int_t& StexStin,
2848 const Int_t& i0StinEcha,
2849 const Int_t& i_samp) {
2857 if ((btype ==
"EB+" && ctype ==
"bottom") || (btype ==
"EB-" && ctype ==
"top")) {
2861 if ((btype ==
"EB+" && ctype ==
"top") || (btype ==
"EB-" && ctype ==
"bottom")) {
2868 if (DeeDir ==
"right") {
2871 if (DeeDir ==
"left") {
2882 const Int_t& StexStin,
2883 const Int_t& i0StinEcha,
2884 const Int_t& j_samp) {
2895 if ((btype ==
"EB+" && ctype ==
"top") || (btype ==
"EB-" && ctype ==
"bottom")) {
2896 if (i0StinEcha >= 0 && i0StinEcha <= 4) {
2899 if (i0StinEcha >= 5 && i0StinEcha <= 9) {
2902 if (i0StinEcha >= 10 && i0StinEcha <= 14) {
2905 if (i0StinEcha >= 15 && i0StinEcha <= 19) {
2908 if (i0StinEcha >= 20 && i0StinEcha <= 24) {
2913 if ((btype ==
"EB+" && ctype ==
"bottom") || (btype ==
"EB-" && ctype ==
"top")) {
2914 if (i0StinEcha >= 0 && i0StinEcha <= 4) {
2917 if (i0StinEcha >= 5 && i0StinEcha <= 9) {
2920 if (i0StinEcha >= 10 && i0StinEcha <= 14) {
2923 if (i0StinEcha >= 15 && i0StinEcha <= 19) {
2926 if (i0StinEcha >= 20 && i0StinEcha <= 24) {
2946 const Int_t& StexStin,
2947 const Int_t& MatSize,
2948 const Int_t& size_Hoco,
2949 const Int_t& size_Veco,
2950 const TString& chopt) {
2954 ViewTowerGrid(StexNumber, StexStin, MatSize, size_Hoco, size_Veco, chopt);
2957 ViewSCGrid(StexNumber, StexStin, MatSize, size_Hoco, size_Veco, chopt);
2969 const Int_t& n1SMTow,
2970 const Int_t& MatSize,
2971 const Int_t& size_eta,
2972 const Int_t& size_phi,
2973 const TString& chopt) {
2976 Double_t xline = 0.;
2978 Double_t yline_bot = 0.;
2979 Double_t yline_top = (Double_t)(MatSize * size_eta);
2981 for (Int_t
i = 0;
i < size_eta;
i++) {
2982 xline = xline + (Double_t)MatSize;
2984 lin =
new TLine(xline, yline_bot, xline, yline_top);
2990 Double_t xline_left = 0;
2991 Double_t xline_right = (Double_t)(MatSize * size_eta);
2993 Double_t yline = -(Double_t)MatSize;
2995 for (Int_t
j = 0;
j < size_eta + 1;
j++) {
2996 yline = yline + (Double_t)MatSize;
2998 lin =
new TLine(xline_left, yline, xline_right, yline);
3023 TGaxis* sup_axis_x =
nullptr;
3025 if (x_direction ==
"-x")
3027 sup_axis_x =
new TGaxis(
3028 -(Float_t)MatSize, (Float_t)0, (Float_t)(size_eta * MatSize), (Float_t)0.,
"f1", size_eta,
"BCS", 0.);
3030 std::cout <<
"TEcnaHistosEB::ViewTowerGrid()> non foreseen case. eta with -x direction." <<
fTTBELL << std::endl;
3033 if (x_direction ==
"x")
3036 new TGaxis((Float_t)0., (Float_t)0., (Float_t)(size_eta * MatSize), (Float_t)0.,
"f1", size_eta,
"CS", 0.);
3040 sup_axis_x->SetTitle(x_var_name);
3041 sup_axis_x->SetTitleSize(tit_siz_x);
3042 sup_axis_x->SetTitleOffset(tit_off_x);
3043 sup_axis_x->SetLabelSize(lab_siz_x);
3044 sup_axis_x->SetLabelOffset(lab_off_x);
3045 sup_axis_x->SetTickSize(tic_siz_x);
3046 sup_axis_x->Draw(
"SAME");
3055 if (chopt ==
"CrystalNumbering") {
3062 new TF1(
"f2", y_direction.Data(), phi_min, phi_max);
3064 TGaxis* sup_axis_y =
nullptr;
3066 if (y_direction ==
"-x")
3068 sup_axis_y =
new TGaxis((Float_t)(size_eta * MatSize),
3070 (Float_t)(size_eta * MatSize),
3071 (Float_t)(size_phi * MatSize),
3079 if (y_direction ==
"x")
3082 new TGaxis((Float_t)0., (Float_t)0., (Float_t)0., (Float_t)(size_phi * MatSize),
"f2", size_phi,
"BCS", 0.);
3086 sup_axis_y->SetTitle(y_var_name);
3087 sup_axis_y->SetTitleSize(tit_siz_y);
3088 sup_axis_y->SetTitleOffset(tit_off_y);
3089 sup_axis_y->SetLabelSize(lab_siz_y);
3090 sup_axis_y->SetLabelOffset(lab_off_y);
3091 sup_axis_y->SetTickSize(tic_siz_y);
3092 sup_axis_y->Draw(
"SAME");
3102 new TF1(
"f3", jy_direction.Data(), j_phi_min, j_phi_max);
3104 TGaxis* sup_axis_jy =
nullptr;
3107 new TGaxis((Float_t)0., (Float_t)0., (Float_t)0., (Float_t)(size_phi * MatSize),
"f3", size_phi,
"SC", 0.);
3110 sup_axis_jy->SetTitle(jy_var_name);
3111 sup_axis_jy->SetTitleSize(tit_siz_y);
3112 sup_axis_jy->SetTitleOffset(tit_off_y);
3113 sup_axis_jy->SetLabelSize(lab_siz_y);
3114 sup_axis_jy->SetLabelOffset(lab_off_y);
3115 sup_axis_jy->SetTickSize(tic_siz_y);
3116 sup_axis_jy->Draw(
"SAME");
3126 const Int_t& n1DeeSCEcna,
3127 const Int_t& MatSize,
3128 const Int_t& size_IX,
3129 const Int_t& size_IY,
3130 const TString& chopt) {
3133 Double_t xline = 0.;
3135 Double_t yline_bot = 0.;
3136 Double_t yline_top = (Double_t)(MatSize * size_IX);
3138 for (Int_t
i = 0;
i < size_IX;
i++) {
3139 xline = xline + (Double_t)MatSize;
3141 lin =
new TLine(xline, yline_bot, xline, yline_top);
3147 Double_t xline_left = 0;
3148 Double_t xline_right = (Double_t)(MatSize * size_IX);
3150 Double_t yline = -(Double_t)MatSize;
3152 for (Int_t
j = 0;
j < size_IX + 1;
j++) {
3153 yline = yline + (Double_t)MatSize;
3155 lin =
new TLine(xline_left, yline, xline_right, yline);
3168 Float_t axis_x_inf = 0;
3169 Float_t axis_x_sup = 0;
3170 Float_t axis_y_inf = 0;
3171 Float_t axis_y_sup = 0;
3172 Int_t axis_nb_div = 1;
3173 Double_t IX_values_min = 0;
3174 Double_t IX_values_max = 0;
3175 Option_t* axis_chopt =
"CS";
3183 TString StrDee =
"iIXSC";
3184 if (DeeNumber == 1) {
3187 if (DeeNumber == 2) {
3190 if (DeeNumber == 3) {
3193 if (DeeNumber == 4) {
3200 TGaxis* sup_axis_x =
nullptr;
3206 axis_x_sup = size_IX * MatSize;
3208 axis_nb_div = size_IX;
3209 IX_values_min = -IX_min;
3210 IX_values_max = -IX_max;
3217 axis_x_sup = size_IX * MatSize;
3219 axis_nb_div = size_IX;
3220 IX_values_min = IX_min;
3221 IX_values_max = IX_max;
3228 axis_x_sup = size_IX * MatSize;
3230 axis_nb_div = size_IX;
3231 IX_values_min = IX_min;
3232 IX_values_max = IX_max;
3239 axis_x_sup = size_IX * MatSize;
3241 axis_nb_div = size_IX;
3242 IX_values_min = -IX_min;
3243 IX_values_max = -IX_max;
3247 new TF1(
"f1", x_direction.Data(), IX_values_min, IX_values_max);
3249 sup_axis_x =
new TGaxis(axis_x_inf, axis_y_inf, axis_x_sup, axis_y_sup,
"f1", axis_nb_div, axis_chopt, 0.);
3252 sup_axis_x->SetTitle(x_var_name);
3253 sup_axis_x->SetTitleSize(tit_siz_x);
3254 sup_axis_x->SetTitleOffset(tit_off_x);
3255 sup_axis_x->SetLabelSize(lab_siz_x);
3256 sup_axis_x->SetLabelOffset(lab_off_x);
3257 sup_axis_x->SetTickSize(tic_siz_x);
3258 sup_axis_x->Draw(
"SAME");
3274 new TF1(
"f2", jy_direction.Data(), j_IY_min, j_IY_max);
3277 TGaxis* sup_axis_jy =
3278 new TGaxis((Float_t)0., (Float_t)0., (Float_t)0., (Float_t)(size_IY * MatSize),
"f2", size_IY,
"CS", 0.);
3281 sup_axis_jy->SetTitle(jy_var_name);
3282 sup_axis_jy->SetTitleSize(tit_siz_y);
3283 sup_axis_jy->SetTitleOffset(tit_off_y);
3284 sup_axis_jy->SetLabelSize(lab_siz_y);
3285 sup_axis_jy->SetLabelOffset(lab_off_y);
3286 sup_axis_jy->SetTickSize(tic_siz_y);
3287 sup_axis_jy->Draw();
3308 Bool_t OKFileExists = kFALSE;
3309 Bool_t OKData = kFALSE;
3311 Int_t n1StexStin = -1;
3325 OKFileExists = kTRUE;
3328 if (OKFileExists == kTRUE) {
3339 if (arg_AlreadyRead >= 1) {
3340 OKFileExists = kTRUE;
3343 if (OKFileExists == kTRUE) {
3348 sprintf(f_in_mat_tit,
"?");
3350 if (HistoCode ==
"D_NOE_ChNb") {
3351 sprintf(f_in_mat_tit,
"Number of events");
3353 if (HistoCode ==
"D_Ped_ChNb") {
3354 sprintf(f_in_mat_tit,
"Pedestals");
3356 if (HistoCode ==
"D_TNo_ChNb") {
3357 sprintf(f_in_mat_tit,
"Total noise");
3359 if (HistoCode ==
"D_MCs_ChNb") {
3360 sprintf(f_in_mat_tit,
"Mean cor(s,s')");
3362 if (HistoCode ==
"D_LFN_ChNb") {
3363 sprintf(f_in_mat_tit,
"Low frequency noise");
3365 if (HistoCode ==
"D_HFN_ChNb") {
3366 sprintf(f_in_mat_tit,
"High frequency noise");
3368 if (HistoCode ==
"D_SCs_ChNb") {
3369 sprintf(f_in_mat_tit,
"Sigma of cor(s,s')");
3376 Int_t nb_binx = GeoBidSizeHoco;
3377 Int_t nb_biny = GeoBidSizeVeco;
3378 Axis_t xinf_bid = (Axis_t)0.;
3379 Axis_t xsup_bid = (Axis_t)GeoBidSizeHoco;
3380 Axis_t yinf_bid = (Axis_t)0.;
3381 Axis_t ysup_bid = (Axis_t)GeoBidSizeVeco;
3383 TString axis_x_var_name =
" #Hoco ";
3384 TString axis_y_var_name =
" #Veco ";
3389 new TH2D(
"geobidim_ViewStex", f_in_mat_tit, nb_binx, xinf_bid, xsup_bid, nb_biny, yinf_bid, ysup_bid);
3397 partial_histp(
i) = (Double_t)0.;
3401 if (HistoCode ==
"D_NOE_ChNb") {
3404 if (HistoCode ==
"D_Ped_ChNb") {
3407 if (HistoCode ==
"D_TNo_ChNb") {
3410 if (HistoCode ==
"D_MCs_ChNb") {
3413 if (HistoCode ==
"D_LFN_ChNb") {
3416 if (HistoCode ==
"D_HFN_ChNb") {
3419 if (HistoCode ==
"D_SCs_ChNb") {
3426 if (arg_AlreadyRead >= 1) {
3427 partial_histp = arg_read_histo;
3432 TMatrixD read_matrix(nb_binx, nb_biny);
3433 for (Int_t
i = 0;
i < nb_binx;
i++) {
3434 for (Int_t
j = 0;
j < nb_biny;
j++) {
3435 read_matrix(
i,
j) = (Double_t)0.;
3439 if (OKData == kTRUE) {
3446 if (arg_AlreadyRead >= 1) {
3447 n1StexStin = i0StexStinEcna + 1;
3450 if (n1StexStin != -1) {
3457 if (i_xgeo >= 0 && i_xgeo < nb_binx && i_ygeo >= 0 && i_ygeo < nb_biny) {
3458 read_matrix(i_xgeo, i_ygeo) = partial_histp(iStexEcha);
3459 h_geo_bid->Fill((Double_t)i_xgeo, (Double_t)i_ygeo, (Double_t)read_matrix(i_xgeo, i_ygeo));
3530 TString name_cov_cor;
3534 if (HistoCode ==
"D_NOE_ChNb") {
3535 name_cov_cor =
"Nb_Of_D_Adc_EvDs";
3537 if (HistoCode ==
"D_Ped_ChNb") {
3538 name_cov_cor =
"Pedestals";
3540 if (HistoCode ==
"D_TNo_ChNb") {
3541 name_cov_cor =
"Total_noise";
3543 if (HistoCode ==
"D_MCs_ChNb") {
3544 name_cov_cor =
"Mean_Corss";
3546 if (HistoCode ==
"D_LFN_ChNb") {
3547 name_cov_cor =
"Low_Fq_Noise";
3549 if (HistoCode ==
"D_HFN_ChNb") {
3550 name_cov_cor =
"High_Fq_Noise";
3552 if (HistoCode ==
"D_SCs_ChNb") {
3553 name_cov_cor =
"Sigma_Corss";
3560 TString flag_already_read;
3562 flag_already_read =
"?";
3563 sprintf(f_in,
"M%d", arg_AlreadyRead);
3564 flag_already_read = f_in;
3567 "%s_%s_S1_%d_R%d_%d_%d_%s%d_%s_HocoVeco_R%s",
3568 name_cov_cor.Data(),
3577 flag_already_read.Data());
3586 TCanvas* MainCanvas =
new TCanvas(f_in, f_in, canv_w, canv_h);
3604 Double_t x_margin = x_low;
3605 Double_t y_margin = y_low;
3606 MainCanvas->Divide(1, 1, x_margin, y_margin);
3613 TVirtualPad* main_subpad = gPad;
3614 main_subpad->SetPad(x_low, y_low, x_up, y_up);
3618 h_geo_bid->GetXaxis()->SetTitle(axis_x_var_name);
3619 h_geo_bid->GetYaxis()->SetTitle(axis_y_var_name);
3621 h_geo_bid->DrawCopy(
"COLZ");
3629 Bool_t b_true =
true;
3630 h_geo_bid->SetStats(b_true);
3631 h_geo_bid->Delete();
3632 h_geo_bid =
nullptr;
3641 std::cout <<
"!TEcnaHistos::ViewStex(...)> *ERROR* =====> " 3642 <<
" ROOT file not found" <<
fTTBELL << std::endl;
3684 sprintf(f_in_mat_tit,
"LF Cor(Xtal,Xtal') for each tower in SM");
3687 sprintf(f_in_mat_tit,
"HF Cor(Xtal,Xtal') for each tower in SM");
3690 sprintf(f_in_mat_tit,
"LF Cor(Xtal,Xtal') for each SC in Dee");
3693 sprintf(f_in_mat_tit,
"HF Cor(Xtal,Xtal') for each SC in Dee");
3700 Int_t nb_binx = GeoBidSizeHoco;
3701 Int_t nb_biny = GeoBidSizeVeco;
3702 Axis_t xinf_bid = (Axis_t)0.;
3703 Axis_t xsup_bid = (Axis_t)GeoBidSizeHoco;
3704 Axis_t yinf_bid = (Axis_t)0.;
3705 Axis_t ysup_bid = (Axis_t)GeoBidSizeVeco;
3707 TString axis_x_var_name =
" #Hoco ";
3708 TString axis_y_var_name =
" #varVeco ";
3713 Stin_numbers(
i) = (Double_t)0.;
3724 partial_matrix(
i,
j) = (Double_t)0.;
3739 TH2D* h_geo_bid =
new TH2D(
3740 "geobidim_HocoVecoLHFCorcc", f_in_mat_tit, nb_binx, xinf_bid, xsup_bid, nb_biny, yinf_bid, ysup_bid);
3747 Int_t n1StexStin = (Int_t)Stin_numbers(i0StexStinEcna);
3751 if (n1StexStin != -1) {
3756 Int_t i_xgeo = offset_x + i0StinEcha;
3757 Int_t i_ygeo = offset_y + j0StinEcha;
3759 if (i_xgeo >= 0 && i_xgeo < nb_binx && i_ygeo >= 0 && i_ygeo < nb_biny) {
3763 h_geo_bid->Fill((Double_t)i_xgeo, (Double_t)i_ygeo, (Double_t)partial_matrix(iEcha, jEcha));
3772 TString HistoCode =
"H2CorccInStins";
3826 TString name_cov_cor;
3829 name_cov_cor =
"StexLFCorcc";
3832 name_cov_cor =
"StexHFCorcc";
3840 "%s_%s_S1_%d_R%d_%d_%d_Stex%s%d_%s_HocoVeco",
3841 name_cov_cor.Data(),
3858 TCanvas* MainCanvas =
new TCanvas(f_in, f_in, canv_w, canv_h);
3877 Double_t x_margin = x_low;
3878 Double_t y_margin = y_low;
3879 MainCanvas->Divide(1, 1, x_margin, y_margin);
3886 TVirtualPad* main_subpad = gPad;
3887 main_subpad->SetPad(x_low, y_low, x_up, y_up);
3890 h_geo_bid->GetXaxis()->SetTitle(axis_x_var_name);
3891 h_geo_bid->GetYaxis()->SetTitle(axis_y_var_name);
3893 h_geo_bid->DrawCopy(
"COLZ");
3901 Bool_t b_true =
true;
3902 h_geo_bid->SetStats(b_true);
3903 h_geo_bid->Delete();
3904 h_geo_bid =
nullptr;
3914 std::cout <<
"!TEcnaHistos::StexHocoVecoLHFCorcc(...)> *ERROR* =====> " 3915 <<
" ROOT file not found" <<
fTTBELL << std::endl;
3934 if (ctype ==
"EB-") {
3942 if (DeeDir ==
"right") {
3945 if (DeeDir ==
"left") {
3964 if (ctype ==
"EB-") {
4037 if ((SMNumber > 0) && (SMNumber <= fEcal->MaxSMInEB())) {
4041 Int_t nb_binx = GeoBidSizeEta;
4042 Int_t nb_biny = GeoBidSizePhi;
4043 Axis_t xinf_bid = (Axis_t)0.;
4044 Axis_t xsup_bid = (Axis_t)GeoBidSizeEta;
4045 Axis_t yinf_bid = (Axis_t)0.;
4046 Axis_t ysup_bid = (Axis_t)GeoBidSizePhi;
4048 TString axis_x_var_name =
" #eta ";
4049 TString axis_y_var_name =
" #varphi ";
4056 if (SMNumber <= fEcal->MaxSMPhiInEB()) {
4057 sprintf(f_in_mat_tit,
" SM tower numbering");
4060 sprintf(f_in_mat_tit,
" SM tower numbering ");
4066 new TH2D(
"grid_bidim_eta_phi", f_in_mat_tit, nb_binx, xinf_bid, xsup_bid, nb_biny, yinf_bid, ysup_bid);
4068 h_empty_bid->Reset();
4070 h_empty_bid->GetXaxis()->SetTitle(axis_x_var_name);
4071 h_empty_bid->GetYaxis()->SetTitle(axis_y_var_name);
4091 sprintf(f_in,
"tower_numbering_for_SuperModule_SM%d", SMNumber);
4095 TCanvas* MainCanvas =
new TCanvas(f_in, f_in, canv_w, canv_h);
4107 MainCanvas->Divide(1, 1, x_margin, y_margin);
4110 h_empty_bid->DrawCopy(
"COL");
4116 Bool_t b_true =
true;
4117 h_empty_bid->SetStats(b_true);
4119 h_empty_bid->Delete();
4120 h_empty_bid =
nullptr;
4126 std::cout <<
"!TEcnaHistos::SMTowerNumbering(...)> SM = " << SMNumber <<
". Out of range ( range = [1," 4135 gStyle->SetTitleW(0.2);
4136 gStyle->SetTitleH(0.07);
4146 gStyle->SetTextSize(0.075);
4149 Int_t y_channel = 12;
4150 Int_t x_channel = 12;
4156 TText* text_SMtow_num =
new TText();
4161 text_SMtow_num->SetTextColor(couleur_rouge);
4164 text_SMtow_num->SetTextColor(couleur_bleu_fonce);
4174 Double_t y_from_phi =
4180 sprintf(f_in,
"%d", i_SMtow);
4181 text_SMtow_num->DrawText(x_from_eta, y_from_phi, f_in);
4184 text_SMtow_num->Delete();
4185 text_SMtow_num =
nullptr;
4189 Double_t offset_tow_tex_eta = (Double_t)8.;
4190 Double_t offset_tow_tex_phi = (Double_t)15.;
4193 Double_t x_legend = (Double_t)0.;
4194 Double_t y_legend = (Double_t)0.;
4199 gStyle->SetTextSize(0.075);
4200 gStyle->SetTextColor(couleur_rouge);
4205 x_legend = x_legend + offset_tow_tex_eta;
4206 y_legend = y_legend + offset_tow_tex_phi;
4209 x_legend = -x_legend + offset_tow_tex_eta;
4210 y_legend = y_legend + offset_tow_tex_phi;
4213 sprintf(f_in,
"xx");
4214 TText* text_legend_rouge =
new TText(x_legend, y_legend, f_in);
4216 text_legend_rouge->Draw();
4217 gStyle->SetTextSize(0.05);
4218 x_legend = x_legend - (Double_t)3.5;
4219 y_legend = y_legend - (Double_t)2.;
4220 sprintf(f_in,
" LVRB ");
4221 TText* text_legend_rouge_expl =
new TText(x_legend, y_legend, f_in);
4223 text_legend_rouge_expl->Draw();
4224 y_legend = y_legend - (Double_t)1.75;
4226 sprintf(f_in,
" <--- ");
4229 sprintf(f_in,
" ---> ");
4231 TText* text_legend_rouge_expm =
new TText(x_legend, y_legend, f_in);
4233 text_legend_rouge_expm->Draw();
4237 gStyle->SetTextSize(0.075);
4238 gStyle->SetTextColor(couleur_bleu_fonce);
4243 x_legend = x_legend + offset_tow_tex_eta;
4244 y_legend = y_legend + offset_tow_tex_phi / 3;
4247 x_legend = -x_legend + offset_tow_tex_eta;
4248 y_legend = y_legend + offset_tow_tex_phi / 3;
4251 sprintf(f_in,
"xx");
4252 TText* text_legend_bleu =
new TText(x_legend, y_legend, f_in);
4254 text_legend_bleu->Draw();
4256 gStyle->SetTextSize(0.05);
4257 x_legend = x_legend - (Double_t)3.5;
4258 y_legend = y_legend - (Double_t)2.;
4259 sprintf(f_in,
" LVRB ");
4260 TText* text_legend_bleu_expl =
new TText(x_legend, y_legend, f_in);
4262 text_legend_bleu_expl->Draw();
4263 y_legend = y_legend - (Double_t)1.75;
4265 sprintf(f_in,
" ---> ");
4268 sprintf(f_in,
" <--- ");
4270 TText* text_legend_bleu_expm =
new TText(x_legend, y_legend, f_in);
4272 text_legend_bleu_expm->Draw();
4275 gStyle->SetTextColor(couleur_noir);
4285 if (c_option ==
"corcc") {
4290 Int_t nb_binx = GeoBidSizeEta;
4291 Int_t nb_biny = GeoBidSizePhi;
4292 Axis_t xinf_bid = (Axis_t)0.;
4293 Axis_t xsup_bid = (Axis_t)GeoBidSizeEta;
4294 Axis_t yinf_bid = (Axis_t)0.;
4295 Axis_t ysup_bid = (Axis_t)GeoBidSizePhi;
4301 if (c_option ==
"corcc") {
4305 Int_t max_x = nb_binx / size_eta;
4306 Int_t max_y = nb_biny / size_phi;
4309 Double_t yline = (Double_t)yinf_bid;
4311 Double_t xline_left = (Double_t)xinf_bid;
4312 Double_t xline_right = (Double_t)xsup_bid;
4314 for (Int_t
j = 0;
j < max_y;
j++) {
4315 yline = yline + (Double_t)size_phi;
4317 lin =
new TLine(xline_left, yline, xline_right, yline);
4324 Double_t xline = (Double_t)xinf_bid - (Double_t)size_eta;
4326 Double_t yline_bot = (Double_t)yinf_bid;
4327 Double_t yline_top = (Double_t)ysup_bid;
4333 gStyle->SetTextColor(coul_textmodu);
4334 gStyle->SetTextSize(0.075);
4338 for (Int_t
i = 0;
i < max_x;
i++) {
4339 xline = xline + (Double_t)size_eta;
4341 lin =
new TLine(xline, yline_bot, xline, yline_top);
4346 lin->SetLineWidth(2);
4347 lin->SetLineColor(coul_surligne);
4350 lin->SetLineWidth(2);
4351 lin->SetLineColor(coul_surligne);
4360 sprintf(f_in,
"M4");
4363 sprintf(f_in,
"M3");
4366 sprintf(f_in,
"M2");
4369 sprintf(f_in,
"M1");
4372 TText* text_num_module =
new TText(xline + 1, yline_top + 1, f_in);
4374 text_num_module->Draw();
4379 sprintf(f_in,
"M1");
4382 sprintf(f_in,
"M2");
4385 sprintf(f_in,
"M3");
4388 sprintf(f_in,
"M4");
4391 TText* text_num_module =
new TText(xline, yline_top + 1, f_in);
4393 text_num_module->Draw();
4401 if (c_option ==
"corcc") {
4424 TGaxis* sup_axis_x =
nullptr;
4426 if (x_direction ==
"-x")
4428 sup_axis_x =
new TGaxis(
4429 (Float_t)0., (Float_t)0., (Float_t)(size_eta_sm * MatSize), (Float_t)0.,
"f1", size_eta_sm,
"SC", 0.);
4433 if (x_direction ==
"x")
4435 sup_axis_x =
new TGaxis(
4436 (Float_t)0., (Float_t)0., (Float_t)(size_eta_sm * MatSize), (Float_t)0.,
"f1", size_eta_sm,
"SC", 0.);
4440 sup_axis_x->SetTitle(x_var_name);
4441 sup_axis_x->SetTitleSize(tit_siz_x);
4442 sup_axis_x->SetTitleOffset(tit_off_x);
4443 sup_axis_x->SetLabelSize(lab_siz_x);
4444 sup_axis_x->SetLabelOffset(lab_off_x);
4445 sup_axis_x->SetTickSize(tic_siz_x);
4446 sup_axis_x->Draw(
"SAME");
4461 new TF1(
"f2", y_direction.Data(), phi_min, phi_max);
4463 TGaxis* sup_axis_y =
nullptr;
4465 if (y_direction ==
"-x")
4467 sup_axis_y =
new TGaxis(-(Float_t)1.5 * (Float_t)size_eta,
4469 -(Float_t)1.5 * (Float_t)size_eta,
4470 (Float_t)(size_phi_sm * MatSize),
4478 if (y_direction ==
"x")
4480 sup_axis_y =
new TGaxis(-(Float_t)1.5 * (Float_t)size_eta,
4482 -(Float_t)1.5 * (Float_t)size_eta,
4483 (Float_t)(size_phi_sm * MatSize),
4491 sup_axis_y->SetTitle(y_var_name);
4492 sup_axis_y->SetTitleSize(tit_siz_y);
4493 sup_axis_y->SetTitleOffset(tit_off_y);
4494 sup_axis_y->SetLabelSize(lab_siz_y);
4495 sup_axis_y->SetLabelOffset(lab_off_y);
4496 sup_axis_y->SetTickSize(tic_siz_y);
4497 sup_axis_y->Draw(
"SAME");
4503 TString jy_var_name =
" ";
4506 new TF1(
"f3", jy_direction.Data(), jphi_min, jphi_max);
4508 TGaxis* sup_axis_jy =
nullptr;
4511 sup_axis_jy =
new TGaxis(
4512 (Float_t)0., (Float_t)0., (Float_t)0., (Float_t)(size_phi_sm * MatSize),
"f3", (Int_t)size_phi_sm,
"SC", 0.);
4515 if (jy_direction ==
"-x")
4520 if (jy_direction ==
"x")
4527 sup_axis_jy->SetTitle(jy_var_name);
4528 sup_axis_jy->SetTitleSize(tit_siz_y);
4529 sup_axis_jy->SetTitleOffset(tit_off_y);
4530 sup_axis_jy->SetLabelSize(lab_siz_y);
4531 sup_axis_jy->SetLabelOffset(lab_off_y);
4532 sup_axis_jy->SetTickSize(tic_siz_y);
4533 sup_axis_jy->Draw(
"SAME");
4545 if ((DeeNumber > 0) && (DeeNumber <= fEcal->MaxDeeInEE())) {
4549 Int_t nb_binx = GeoBidSizeIX;
4550 Int_t nb_biny = GeoBidSizeIY;
4551 Axis_t xinf_bid = (Axis_t)0.;
4552 Axis_t xsup_bid = (Axis_t)GeoBidSizeIX;
4553 Axis_t yinf_bid = (Axis_t)0.;
4554 Axis_t ysup_bid = (Axis_t)GeoBidSizeIY;
4556 TString axis_x_var_name =
" IX ";
4557 TString axis_y_var_name =
" IY ";
4564 sprintf(f_in_mat_tit,
" Dee SC numbering ");
4569 new TH2D(
"grid_bidim_IX_IY", f_in_mat_tit, nb_binx, xinf_bid, xsup_bid, nb_biny, yinf_bid, ysup_bid);
4572 h_empty_bid->Reset();
4574 h_empty_bid->GetXaxis()->SetTitle(axis_x_var_name);
4575 h_empty_bid->GetYaxis()->SetTitle(axis_y_var_name);
4594 sprintf(f_in,
"SC_numbering_for_Dee_Dee%d", DeeNumber);
4596 TCanvas* MainCanvas =
new TCanvas(f_in, f_in, canv_w, canv_h);
4612 Double_t x_margin = x_low;
4613 Double_t y_margin = y_low;
4615 MainCanvas->Divide(1, 1, x_margin, y_margin);
4619 TVirtualPad* main_subpad = gPad;
4620 main_subpad->SetPad(x_low, y_low, x_up, y_up);
4622 h_empty_bid->DrawCopy(
"COL");
4629 Bool_t b_true =
true;
4630 h_empty_bid->SetStats(b_true);
4632 h_empty_bid->Delete();
4633 h_empty_bid =
nullptr;
4638 std::cout <<
"!TEcnaHistos::DeeSCNumbering(...)> Dee = " << DeeNumber <<
". Out of range ( range = [1," 4647 gStyle->SetTitleW(0.4);
4648 gStyle->SetTitleH(0.08);
4655 gStyle->SetTextSize(0.0325);
4658 Int_t x_channel = 0;
4659 TText* text_DSSC_num =
new TText();
4661 TText* text_DeeSCCons_num =
new TText();
4667 if (SCQuadType ==
"top" && DeeDir ==
"right") {
4670 if (SCQuadType ==
"top" && DeeDir ==
"left") {
4673 if (SCQuadType ==
"bottom" && DeeDir ==
"left") {
4676 if (SCQuadType ==
"bottom" && DeeDir ==
"right") {
4679 Int_t i_SCEcha = (Int_t)x_channel;
4681 Double_t x_from_IX = (Double_t)
GetXCrysInStex(DeeNumber, n1DeeSCEcna, i_SCEcha);
4682 Double_t y_from_IY = (Double_t)
GetYCrysInStex(DeeNumber, n1DeeSCEcna, i_SCEcha);
4683 Double_t y_from_IYp = y_from_IY + (Double_t)1.;
4684 Double_t y_from_IYm = y_from_IY - (Double_t)1.;
4687 Color_t couleur_SC =
GetSCColor(DeeEndcap, DeeDir, SCQuadType);
4688 text_DSSC_num->SetTextColor(couleur_SC);
4689 text_DeeSCCons_num->SetTextColor((Color_t)1);
4696 !(i_DeeSCCons == 33 && n1DeeSCEcna == 60) && !(i_DeeSCCons == 33 && n1DeeSCEcna == 119) &&
4698 !(i_DeeSCCons == 29 && n1DeeSCEcna == 32) &&
4699 !(i_DeeSCCons == 29 && n1DeeSCEcna == 138) && !(i_DeeSCCons == 29 && n1DeeSCEcna == 157) &&
4700 !(i_DeeSCCons == 58 && n1DeeSCEcna == 176) && !(i_DeeSCCons == 58 && n1DeeSCEcna == 193) &&
4702 !(i_DeeSCCons == 149 && n1DeeSCEcna == 188) &&
4704 !(i_DeeSCCons == 112 && n1DeeSCEcna == 29) && !(i_DeeSCCons == 112 && n1DeeSCEcna == 144) &&
4705 !(i_DeeSCCons == 112 && n1DeeSCEcna == 165) && !(i_DeeSCCons == 119 && n1DeeSCEcna == 102) &&
4706 !(i_DeeSCCons == 119 && n1DeeSCEcna == 123) &&
4708 !(i_DeeSCCons == 132 && n1DeeSCEcna == 41) &&
4711 !(i_DeeSCCons == 182 && n1DeeSCEcna == 60) && !(i_DeeSCCons == 182 && n1DeeSCEcna == 119) &&
4713 !(i_DeeSCCons == 178 && n1DeeSCEcna == 32) &&
4714 !(i_DeeSCCons == 178 && n1DeeSCEcna == 138) && !(i_DeeSCCons == 178 && n1DeeSCEcna == 157) &&
4715 !(i_DeeSCCons == 207 && n1DeeSCEcna == 176) && !(i_DeeSCCons == 207 && n1DeeSCEcna == 193) &&
4717 !(i_DeeSCCons == 298 && n1DeeSCEcna == 188) &&
4719 !(i_DeeSCCons == 261 && n1DeeSCEcna == 29) &&
4720 !(i_DeeSCCons == 261 && n1DeeSCEcna == 144) && !(i_DeeSCCons == 261 && n1DeeSCEcna == 165) &&
4721 !(i_DeeSCCons == 268 && n1DeeSCEcna == 102) && !(i_DeeSCCons == 268 && n1DeeSCEcna == 123) &&
4723 !(i_DeeSCCons == 281 && n1DeeSCEcna == 41)) {
4724 sprintf(f_in,
"%d", i_DSSC);
4725 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4726 sprintf(f_in,
"%d", i_DeeSCCons);
4727 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4732 if (i_DeeSCCons == 33 && n1DeeSCEcna == 60) {
4733 sprintf(f_in,
"30a");
4734 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4735 sprintf(f_in,
"33a");
4736 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4738 if (i_DeeSCCons == 33 && n1DeeSCEcna == 119) {
4739 sprintf(f_in,
"30b");
4740 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4741 sprintf(f_in,
"33b");
4742 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4745 if (i_DeeSCCons == 29 && n1DeeSCEcna == 32) {
4746 sprintf(f_in,
" 3c-25c");
4747 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4748 sprintf(f_in,
"29c-58c");
4749 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4751 if (i_DeeSCCons == 29 && n1DeeSCEcna == 138) {
4752 sprintf(f_in,
"3a");
4753 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4754 sprintf(f_in,
"29a");
4755 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4757 if (i_DeeSCCons == 29 && n1DeeSCEcna == 157) {
4758 sprintf(f_in,
"3b");
4759 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4760 sprintf(f_in,
"29b");
4761 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4764 if (i_DeeSCCons == 58 && n1DeeSCEcna == 176) {
4765 sprintf(f_in,
"25a");
4766 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4767 sprintf(f_in,
"58a");
4768 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4770 if (i_DeeSCCons == 58 && n1DeeSCEcna == 193) {
4771 sprintf(f_in,
"25b");
4772 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4773 sprintf(f_in,
"58b");
4774 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4777 if (i_DeeSCCons == 149 && n1DeeSCEcna == 188) {
4778 sprintf(f_in,
"34a");
4779 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4780 sprintf(f_in,
"149a");
4781 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4784 if (i_DeeSCCons == 112 && n1DeeSCEcna == 29) {
4785 sprintf(f_in,
" 14a-21a");
4786 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4787 sprintf(f_in,
"112a-119a");
4788 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4790 if (i_DeeSCCons == 112 && n1DeeSCEcna == 144) {
4791 sprintf(f_in,
"14c");
4792 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4793 sprintf(f_in,
"112c");
4794 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4796 if (i_DeeSCCons == 112 && n1DeeSCEcna == 165) {
4797 sprintf(f_in,
"14b");
4798 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4799 sprintf(f_in,
"112b");
4800 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4803 if (i_DeeSCCons == 119 && n1DeeSCEcna == 102) {
4804 sprintf(f_in,
"21c");
4805 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4806 sprintf(f_in,
"119c");
4807 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4809 if (i_DeeSCCons == 119 && n1DeeSCEcna == 123) {
4810 sprintf(f_in,
"21b");
4811 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4812 sprintf(f_in,
"119b");
4813 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4816 if (i_DeeSCCons == 132 && n1DeeSCEcna == 41) {
4817 sprintf(f_in,
"3a");
4818 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4819 sprintf(f_in,
"132a");
4820 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4824 if (i_DeeSCCons == 182 && n1DeeSCEcna == 60) {
4825 sprintf(f_in,
"30a");
4826 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4827 sprintf(f_in,
"182a");
4828 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4830 if (i_DeeSCCons == 182 && n1DeeSCEcna == 119) {
4831 sprintf(f_in,
"30b");
4832 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4833 sprintf(f_in,
"182b");
4834 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4837 if (i_DeeSCCons == 178 && n1DeeSCEcna == 32) {
4838 sprintf(f_in,
" 3c-25c");
4839 text_DSSC_num->DrawText(x_from_IX - 6, y_from_IYp, f_in);
4840 sprintf(f_in,
"178c-207c");
4841 text_DeeSCCons_num->DrawText(x_from_IX - 6, y_from_IYm, f_in);
4843 if (i_DeeSCCons == 178 && n1DeeSCEcna == 138) {
4844 sprintf(f_in,
"3a");
4845 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4846 sprintf(f_in,
"178a");
4847 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4849 if (i_DeeSCCons == 178 && n1DeeSCEcna == 157) {
4850 sprintf(f_in,
"3b");
4851 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4852 sprintf(f_in,
"178b");
4853 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4856 if (i_DeeSCCons == 207 && n1DeeSCEcna == 176) {
4857 sprintf(f_in,
"25a");
4858 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4859 sprintf(f_in,
"207a");
4860 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4862 if (i_DeeSCCons == 207 && n1DeeSCEcna == 193) {
4863 sprintf(f_in,
"25b");
4864 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4865 sprintf(f_in,
"207b");
4866 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4869 if (i_DeeSCCons == 298 && n1DeeSCEcna == 188) {
4870 sprintf(f_in,
"34a");
4871 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4872 sprintf(f_in,
"298a");
4873 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4876 if (i_DeeSCCons == 261 && n1DeeSCEcna == 29) {
4877 sprintf(f_in,
" 14a-21a");
4878 text_DSSC_num->DrawText(x_from_IX - 6, y_from_IYp, f_in);
4879 sprintf(f_in,
"261a-268a");
4880 text_DeeSCCons_num->DrawText(x_from_IX - 6, y_from_IYm, f_in);
4882 if (i_DeeSCCons == 261 && n1DeeSCEcna == 144) {
4883 sprintf(f_in,
"14c");
4884 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4885 sprintf(f_in,
"261c");
4886 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4888 if (i_DeeSCCons == 261 && n1DeeSCEcna == 165) {
4889 sprintf(f_in,
"14b");
4890 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4891 sprintf(f_in,
"261b");
4892 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4895 if (i_DeeSCCons == 268 && n1DeeSCEcna == 102) {
4896 sprintf(f_in,
"21c");
4897 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4898 sprintf(f_in,
"268c");
4899 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4901 if (i_DeeSCCons == 268 && n1DeeSCEcna == 123) {
4902 sprintf(f_in,
"21b");
4903 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4904 sprintf(f_in,
"268b");
4905 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4908 if (i_DeeSCCons == 281 && n1DeeSCEcna == 41) {
4909 sprintf(f_in,
"20a");
4910 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4911 sprintf(f_in,
"281a");
4912 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4921 sprintf(f_in,
"color: nb in Data Sector, black: nb for construction");
4923 Int_t y_colors = -14;
4925 TText* text_colors =
new TText(x_colors, y_colors, f_in);
4927 text_colors->SetTextSize(0.03);
4928 text_colors->SetTextColor(coul_textcolors);
4929 text_colors->Draw();
4932 gStyle->SetTextColor(couleur_noir);
4942 if (c_option ==
"corcc") {
4947 Int_t nb_binx = GeoBidSizeIX;
4948 Int_t nb_biny = GeoBidSizeIY;
4949 Axis_t xinf_bid = (Axis_t)0.;
4950 Axis_t xsup_bid = (Axis_t)GeoBidSizeIX;
4952 Axis_t yinf_bid = (Axis_t)0.;
4953 Axis_t ysup_bid = (Axis_t)GeoBidSizeIY;
4954 Double_t ymid_bid = (Double_t)(ysup_bid - yinf_bid) / 2.;
4961 if (c_option ==
"corcc") {
4966 Int_t max_x = nb_binx / size_IX;
4967 Int_t max_y = nb_biny / size_IY;
4968 Int_t max_yd = max_y / 2;
4972 Int_t coefcc_x = (Int_t)1;
4973 Int_t coefcc_y = (Int_t)1;
4974 if (c_option ==
"corcc") {
4980 Double_t yline = (Double_t)yinf_bid - (Double_t)size_IY;
4982 Double_t xline_beg = (Double_t)xinf_bid;
4983 Double_t xline_end = (Double_t)xsup_bid;
4986 Int_t x_min[11] = {11, 11, 7, 0, 0, 0, 0, 0, 0, 0, 0};
4987 Int_t x_max[11] = {50, 50, 47, 45, 45, 42, 37, 35, 30, 15, 50};
4988 for (Int_t
i = 0;
i < 11;
i++) {
4989 x_min[
i] = coefcc_x * x_min[
i];
4990 x_max[
i] = coefcc_x * x_max[
i];
4993 for (Int_t
j = 0;
j < max_y;
j++) {
4996 if (DeeNumber == 1 || DeeNumber == 3) {
4997 xline_beg = xinf_bid + (Double_t)x_min[10 -
j];
4998 xline_end = xinf_bid + (Double_t)x_max[10 -
j];
5000 if (DeeNumber == 2 || DeeNumber == 4) {
5001 xline_beg = xsup_bid - (Double_t)x_max[10 -
j];
5002 xline_end = xsup_bid - (Double_t)x_min[10 -
j];
5008 if (DeeNumber == 1 || DeeNumber == 3) {
5009 xline_beg = xinf_bid + (Double_t)x_min[0];
5010 xline_end = xinf_bid + (Double_t)x_max[0];
5012 if (DeeNumber == 2 || DeeNumber == 4) {
5013 xline_beg = xsup_bid - (Double_t)x_max[0];
5014 xline_end = xsup_bid - (Double_t)x_min[0];
5020 if (DeeNumber == 1 || DeeNumber == 3) {
5021 xline_beg = xinf_bid + (Double_t)x_min[
j - 10];
5022 xline_end = xinf_bid + (Double_t)x_max[
j - 10];
5024 if (DeeNumber == 2 || DeeNumber == 4) {
5025 xline_beg = xsup_bid - (Double_t)x_max[
j - 10];
5026 xline_end = xsup_bid - (Double_t)x_min[
j - 10];
5030 yline = yline + (Double_t)size_IY;
5032 lin =
new TLine(xline_beg, yline, xline_end, yline);
5040 Double_t xline = (Double_t)xinf_bid - (Double_t)size_IX;
5042 Double_t yline_haut_bot = (Double_t)ymid_bid;
5043 Double_t yline_haut_top = (Double_t)ysup_bid;
5045 Double_t yline_bas_bot = (Double_t)yinf_bid;
5046 Double_t yline_bas_top = (Double_t)ymid_bid;
5050 Int_t y_min[11] = {0, 11, 7, 0, 0, 0, 0, 0, 0, 0, 0};
5051 Int_t y_max[11] = {50, 50, 47, 45, 45, 42, 38, 35, 30, 15, 10};
5052 for (Int_t
i = 0;
i < 11;
i++) {
5053 y_min[
i] = coefcc_y * y_min[
i];
5054 y_max[
i] = coefcc_y * y_max[
i];
5057 gStyle->SetTextSize(0.075);
5059 for (Int_t
i = 0;
i <= max_x;
i++) {
5060 if (DeeNumber == 1 || DeeNumber == 3) {
5061 yline_haut_bot = ymid_bid + (Double_t)y_min[
i];
5062 yline_haut_top = ymid_bid + (Double_t)y_max[
i];
5064 if (DeeNumber == 2 || DeeNumber == 4) {
5065 yline_haut_bot = ymid_bid + (Double_t)y_min[10 -
i];
5066 yline_haut_top = ymid_bid + (Double_t)y_max[10 -
i];
5068 yline_bas_bot = ysup_bid - yline_haut_top;
5069 yline_bas_top = ysup_bid - yline_haut_bot;
5071 xline = xline + (Double_t)size_IX;
5073 lin_haut =
new TLine(xline, yline_haut_bot, xline, yline_haut_top);
5078 lin_bas =
new TLine(xline, yline_bas_bot, xline, yline_bas_top);
5084 Float_t fcoefcc_x = (Float_t)coefcc_x;
5085 Float_t fcoefcc_y = (Float_t)coefcc_y;
5100 Int_t nb_niv2 = (nb_niv + 1) / 2;
5102 for (Int_t num_niv = 0; num_niv < nb_niv2; num_niv++) {
5103 Int_t ind_niv = num_niv + nb_niv2 - 1;
5104 if (ind_niv < 0 || ind_niv > nb_niv) {
5105 std::cout <<
"!TEcnaHistos::ContourLevels(...)> *** ERROR *** " 5106 <<
"wrong contour levels for correlation matrix" <<
fTTBELL << std::endl;
5108 cont_niv[ind_niv] = (Double_t)(num_niv * num_niv) / ((Double_t)((nb_niv2 - 1) * (nb_niv2 - 1)));
5111 for (Int_t num_niv = -1; num_niv > -nb_niv2; num_niv--) {
5112 Int_t ind_niv = num_niv + nb_niv2 - 1;
5113 if (ind_niv < 0 || ind_niv > nb_niv) {
5114 std::cout <<
"!TEcnaHistos::ContourLevels(...)> *** ERROR *** " 5115 <<
"wrong contour levels for correlation matrix" <<
fTTBELL << std::endl;
5117 cont_niv[ind_niv] = -(Double_t)(num_niv * num_niv) / ((Double_t)((nb_niv2 - 1) * (nb_niv2 - 1)));
5128 TString xname =
" ";
5141 TString xname =
" ";
5143 if (chcode ==
"ietaEB") {
5144 xname =
"i#eta Xtal ";
5146 if (chcode ==
"ietaSM") {
5147 xname =
"i#eta Xtal ";
5149 if (chcode ==
"ietaTow") {
5150 xname =
"i#eta Xtal ";
5153 if (chcode ==
"iphiEB") {
5154 xname =
" i#varphi Xtal";
5156 if (chcode ==
"jphiEB+") {
5157 xname =
" i#varphi Xtal";
5159 if (chcode ==
"jphiEB-") {
5160 xname =
" i#varphi Xtal";
5162 if (chcode ==
"jphiSMB+") {
5163 xname =
" i#varphi Xtal";
5165 if (chcode ==
"jphiSMB-") {
5166 xname =
"i#varphi Xtal ";
5168 if (chcode ==
"jphiTow") {
5169 xname =
"i#varphi Xtal in SM ";
5171 if (chcode ==
"phi") {
5172 xname =
"i#varphi Xtal in EB ";
5179 TString xname =
" ";
5181 if (chcode ==
"iIXDee") {
5185 if (chcode ==
"iIXDee1") {
5186 xname =
" -IX Xtal";
5188 if (chcode ==
"iIXDee2") {
5189 xname =
" IX Xtal ";
5191 if (chcode ==
"iIXDee3") {
5194 if (chcode ==
"iIXDee4") {
5195 xname =
"-IX Xtal ";
5198 if (chcode ==
"iIXEE") {
5202 if (chcode ==
"iIXSC") {
5206 if (chcode ==
"jIYDee") {
5209 if (chcode ==
"jIYSC") {
5212 if (chcode ==
"IY") {
5233 if (HistoCode ==
"D_NOE_ChNb") {
5234 sprintf(f_in_mat_tit,
"Number of Events");
5236 if (HistoCode ==
"D_Ped_ChNb") {
5237 sprintf(f_in_mat_tit,
"Pedestals");
5239 if (HistoCode ==
"D_TNo_ChNb") {
5240 sprintf(f_in_mat_tit,
"Total noise");
5242 if (HistoCode ==
"D_MCs_ChNb") {
5243 sprintf(f_in_mat_tit,
"Mean cor(s,s')");
5245 if (HistoCode ==
"D_LFN_ChNb") {
5246 sprintf(f_in_mat_tit,
"Low frequency noise");
5248 if (HistoCode ==
"D_HFN_ChNb") {
5249 sprintf(f_in_mat_tit,
"High frequency noise");
5251 if (HistoCode ==
"D_SCs_ChNb") {
5252 sprintf(f_in_mat_tit,
"Sigma of cor(s,s')");
5259 Int_t vertic_empty_strips = 3;
5260 Int_t vertic_empty_strip_1 = 1;
5268 Int_t nb_binx = GeoBidSizeHoco;
5269 Int_t nb_biny = GeoBidSizeVeco;
5270 Axis_t xinf_bid = (Axis_t)0.;
5271 Axis_t xsup_bid = (Axis_t)GeoBidSizeHoco;
5272 Axis_t yinf_bid = (Axis_t)0.;
5273 Axis_t ysup_bid = (Axis_t)GeoBidSizeVeco;
5275 TString axis_x_var_name =
" #Hoco ";
5276 TString axis_y_var_name =
" #varVeco ";
5281 new TH2D(
"geobidim_ViewStas", f_in_mat_tit, nb_binx, xinf_bid, xsup_bid, nb_biny, yinf_bid, ysup_bid);
5285 Int_t CounterExistingFile = 0;
5286 Int_t CounterDataExist = 0;
5291 xFapNbOfEvts[
i] = 0;
5300 partial_histp(
i) = (Double_t)0.;
5303 Bool_t OKFileExists = kFALSE;
5304 Bool_t OKDataExist = kFALSE;
5308 Int_t n1StasStex = iStasStex + 1;
5319 OKFileExists = kTRUE;
5322 if (OKFileExists == kTRUE) {
5329 if (iStasStex == 0) {
5353 if (HistoCode ==
"D_NOE_ChNb") {
5356 if (HistoCode ==
"D_Ped_ChNb") {
5359 if (HistoCode ==
"D_TNo_ChNb") {
5362 if (HistoCode ==
"D_MCs_ChNb") {
5365 if (HistoCode ==
"D_LFN_ChNb") {
5368 if (HistoCode ==
"D_HFN_ChNb") {
5371 if (HistoCode ==
"D_SCs_ChNb") {
5376 OKDataExist = kTRUE;
5380 std::cout <<
"!TEcnaHistos::ViewStas(...)> *ERROR* =====> " 5381 <<
" ROOT file not found" <<
fTTBELL << std::endl;
5385 if (arg_AlreadyRead == 1) {
5386 OKDataExist = kTRUE;
5392 if (OKDataExist == kTRUE) {
5394 CounterExistingFile++;
5397 TMatrixD read_matrix(nb_binx, nb_biny);
5398 for (Int_t
i = 0;
i < nb_binx;
i++) {
5399 for (Int_t
j = 0;
j < nb_biny;
j++) {
5400 read_matrix(
i,
j) = (Double_t)0.;
5404 if (OKDataExist == kTRUE) {
5410 Int_t i_xgeo =
GetXStinInStas(iStasStex, i0StexStinEcna, vertic_empty_strip_1);
5413 if (i_xgeo >= 0 && i_xgeo < nb_binx && i_ygeo >= 0 && i_ygeo < nb_biny) {
5414 Int_t n1StexStinEcna = i0StexStinEcna + 1;
5417 read_matrix(i_xgeo, i_ygeo) = partial_histp(i0StexStinEcna);
5418 h_geo_bid->Fill((Double_t)i_xgeo, (Double_t)i_ygeo, (Double_t)read_matrix(i_xgeo, i_ygeo));
5423 if (!((n1StexStinEcna == 10 || n1StexStinEcna == 11 || n1StexStinEcna == 29 || n1StexStinEcna == 32))) {
5424 read_matrix(i_xgeo, i_ygeo) = partial_histp(i0StexStinEcna);
5425 h_geo_bid->Fill((Double_t)i_xgeo, (Double_t)i_ygeo, (Double_t)read_matrix(i_xgeo, i_ygeo));
5427 if (n1StexStinEcna == 29) {
5439 read_matrix(i_xgeo, i_ygeo) =
5440 partial_histp(i0StexStinEcna) * (Double_t)(5. / 6.) + partial_histp(9) / (Double_t)6.;
5441 h_geo_bid->Fill((Double_t)i_xgeo, (Double_t)i_ygeo, (Double_t)read_matrix(i_xgeo, i_ygeo));
5444 if (n1StexStinEcna == 32) {
5447 read_matrix(i_xgeo, i_ygeo) =
5448 partial_histp(i0StexStinEcna) * (Double_t)(5. / 6.) + partial_histp(10) / (Double_t)6.;
5449 h_geo_bid->Fill((Double_t)i_xgeo, (Double_t)i_ygeo, (Double_t)read_matrix(i_xgeo, i_ygeo));
5458 std::cout <<
"!TEcnaHistos::ViewStas(...)> " 5459 <<
" Data not available for " <<
fFapStexName <<
" " << iStasStex + 1
5460 <<
" (Quantity not present in the ROOT file)" <<
fTTBELL << std::endl;
5466 std::cout <<
"!TEcnaHistos::ViewStas(...)> " 5467 <<
" Data not available for " <<
fFapStexName <<
" " << iStasStex + 1 <<
" (ROOT file not found)" 5478 delete[] xFapNbOfEvts;
5479 xFapNbOfEvts =
nullptr;
5482 if (CounterExistingFile > 0 && CounterDataExist > 0) {
5547 TString name_cov_cor;
5551 if (HistoCode ==
"D_NOE_ChNb") {
5552 name_cov_cor =
"Number_of_Events";
5554 if (HistoCode ==
"D_Ped_ChNb") {
5555 name_cov_cor =
"Pedestals";
5557 if (HistoCode ==
"D_TNo_ChNb") {
5558 name_cov_cor =
"Total_noise";
5560 if (HistoCode ==
"D_MCs_ChNb") {
5561 name_cov_cor =
"Mean_Corss";
5563 if (HistoCode ==
"D_LFN_ChNb") {
5564 name_cov_cor =
"Low_Fq_Noise";
5566 if (HistoCode ==
"D_HFN_ChNb") {
5567 name_cov_cor =
"High_Fq_Noise";
5569 if (HistoCode ==
"D_SCs_ChNb") {
5570 name_cov_cor =
"Sigma_Corss";
5578 "%s_%s_S1_%d_R%d_%d_%d_%s_%s_HocoVeco_R%d",
5579 name_cov_cor.Data(),
5596 TCanvas* MainCanvas =
new TCanvas(f_in, f_in, canv_w, canv_h);
5615 Double_t x_margin = x_low;
5616 Double_t y_margin = y_low;
5617 MainCanvas->Divide(1, 1, x_margin, y_margin);
5624 TVirtualPad* main_subpad = gPad;
5625 main_subpad->SetPad(x_low, y_low, x_up, y_up);
5629 h_geo_bid->GetXaxis()->SetTitle(axis_x_var_name);
5630 h_geo_bid->GetYaxis()->SetTitle(axis_y_var_name);
5632 h_geo_bid->DrawCopy(
"COLZ");
5643 Bool_t b_true =
true;
5644 h_geo_bid->SetStats(b_true);
5645 h_geo_bid->Delete();
5646 h_geo_bid =
nullptr;
5657 const Int_t& StexStinEcna,
5658 const Int_t& vertic_empty_strip_1) {
5663 Int_t n1StasStex = iStasStex + 1;
5667 if (ctype ==
"EB-") {
5671 if (ctype ==
"EB+") {
5680 if (ctype ==
"EE-" && LeftRightFromIP ==
"left") {
5683 if (ctype ==
"EE-" && LeftRightFromIP ==
"right") {
5686 if (ctype ==
"EE+" && LeftRightFromIP ==
"left") {
5690 if (ctype ==
"EE+" && LeftRightFromIP ==
"right") {
5704 Int_t n1StasStex = iStasStex + 1;
5706 if (ctype ==
"EB+") {
5709 if (ctype ==
"EB-") {
5747 Int_t nb_binx = GeoBidSizePhi;
5748 Int_t nb_biny = GeoBidSizeEta;
5749 Axis_t xinf_bid = (Axis_t)0.;
5750 Axis_t xsup_bid = (Axis_t)nb_binx;
5751 Axis_t yinf_bid = (Axis_t)0.;
5752 Axis_t ysup_bid = (Axis_t)nb_biny;
5756 Int_t max_x = nb_binx / size_x;
5757 Int_t max_y = nb_biny / size_y;
5760 Double_t yline = (Double_t)yinf_bid;
5762 Double_t xline_left = (Double_t)xinf_bid;
5763 Double_t xline_right = (Double_t)xsup_bid;
5765 for (Int_t
j = 0;
j < max_y;
j++) {
5766 yline = yline + (Double_t)size_y;
5768 lin =
new TLine(xline_left, yline, xline_right, yline);
5775 Double_t xline = (Double_t)xinf_bid - (Double_t)size_x;
5777 Double_t yline_bot = (Double_t)yinf_bid;
5778 Double_t yline_top = (Double_t)ysup_bid;
5780 for (Int_t
i = 0;
i < max_x;
i++) {
5781 xline = xline + (Double_t)size_x;
5783 lin =
new TLine(xline, yline_bot, xline, yline_top);
5789 Double_t yTextBot = yline_bot - (yline_top - yline_bot) / 25.;
5790 Double_t yTextTop = yline_top + (yline_top - yline_bot) / 120.;
5791 xline = (Double_t)xinf_bid - (Double_t)size_x;
5794 TText* text_SM =
new TText();
5796 for (Int_t
i = 0;
i < max_x;
i++) {
5797 xline = xline + (Double_t)size_x;
5799 text_SM->SetTextSize((Double_t)0.03);
5800 sprintf(f_in,
" +%d",
i + 1);
5801 text_SM->DrawText(xline, yTextTop, f_in);
5802 sprintf(f_in,
" %d", -
i - 1);
5803 text_SM->DrawText(xline, yTextBot, f_in);
5813 Double_t phi_min = 0;
5814 Double_t phi_max = 360;
5820 new TF1(
"f1", x_direction.Data(), phi_min, phi_max);
5822 TGaxis* sup_axis_x =
nullptr;
5824 if (x_direction ==
"-x")
5827 new TGaxis((Float_t)0., (Float_t)0., (Float_t)(size_x_eb * MatSize), (Float_t)0.,
"f1", size_x_eb,
"SC", 0.);
5831 if (x_direction ==
"x")
5834 new TGaxis((Float_t)0., (Float_t)0., (Float_t)(size_x_eb * MatSize), (Float_t)0.,
"f1", size_x_eb,
"SC", 0.);
5844 sup_axis_x->SetTitle(x_var_name);
5845 sup_axis_x->SetTitleSize(tit_siz_x);
5846 sup_axis_x->SetTitleOffset(tit_off_x);
5847 sup_axis_x->SetLabelSize(lab_siz_x);
5848 sup_axis_x->SetLabelOffset(lab_off_x);
5849 sup_axis_x->SetTickSize(tic_siz_x);
5850 sup_axis_x->Draw(
"SAME");
5856 Double_t
eta_min = (Double_t)(-85.);
5857 Double_t
eta_max = (Double_t)85.;
5861 TGaxis* sup_axis_y =
nullptr;
5862 sup_axis_y =
new TGaxis(
5863 (Float_t)0., (Float_t)0., (Float_t)0., (Float_t)(size_y_eb * MatSize), eta_min, eta_max, MatSize / 2,
"SC", 0.);
5872 sup_axis_y->SetTitle(y_var_name);
5873 sup_axis_y->SetTitleSize(tit_siz_y);
5874 sup_axis_y->SetTitleOffset(tit_off_y);
5875 sup_axis_y->SetLabelColor(1);
5876 sup_axis_y->SetLabelSize(lab_siz_y);
5877 sup_axis_y->SetLabelOffset(lab_off_y);
5878 sup_axis_y->SetTickSize(tic_siz_y);
5879 sup_axis_y->Draw(
"SAME");
5890 Float_t coefcc_x = (Float_t)1. / (Float_t)5.;
5891 Float_t coefcc_y = (Float_t)1. / (Float_t)5.;
5893 for (Int_t DeeNumber = 1; DeeNumber <= 4; DeeNumber++) {
5902 Double_t yline_bot = (Double_t)coefcc_y * (Double_t)0.;
5906 lin =
new TLine(xline, yline_bot, xline, yline_top);
5912 xline = (Double_t)coefcc_x *
5915 lin12 =
new TLine(xline, yline_bot, xline, yline_top);
5917 lin12->SetLineStyle(2);
5923 lin34 =
new TLine(xline, yline_bot, xline, yline_top);
5925 lin34->SetLineStyle(2);
5929 Double_t xline_end =
5934 linh =
new TLine(0., yline_mid, xline_end, yline_mid);
5936 linh->SetLineStyle(2);
5943 const Float_t& coefcc_y,
5944 const Int_t& DeeNumber,
5945 const TString& opt_plot) {
5949 Int_t LineWidth = 2;
5950 if (opt_plot ==
"Dee") {
5957 Float_t xg_dee_int_bot[13] = {0, 5, 5, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11};
5958 Float_t yg_dee_int_bot[13] = {39, 39, 40, 40, 41, 41, 42, 42, 43, 43, 45, 45, 50};
5960 for (Int_t
i = 0;
i < ngmax;
i++) {
5961 xg_dee_int_bot[
i] = coefcc_x * xg_dee_int_bot[
i];
5962 yg_dee_int_bot[
i] = coefcc_y * yg_dee_int_bot[
i];
5965 Float_t XgDeeIntBotRight[13];
5966 Float_t YgDeeIntBotRight[13];
5967 Float_t XgDeeIntTopRight[13];
5968 Float_t YgDeeIntTopRight[13];
5970 for (Int_t
i = 0;
i < ngmax;
i++) {
5971 XgDeeIntBotRight[
i] = xg_dee_int_bot[
i];
5972 YgDeeIntBotRight[
i] = yg_dee_int_bot[
i];
5973 XgDeeIntTopRight[
i] = XgDeeIntBotRight[
i];
5975 if (DeeNumber == 2 || DeeNumber == 4) {
5983 TGraph* BDeeIntBotRight =
new TGraph(ngmax, XgDeeIntBotRight, YgDeeIntBotRight);
5984 BDeeIntBotRight->SetLineWidth(LineWidth);
5985 BDeeIntBotRight->DrawGraph(ngmax, XgDeeIntBotRight, YgDeeIntBotRight);
5987 TGraph* BDeeIntTopRight =
new TGraph(ngmax, XgDeeIntTopRight, YgDeeIntTopRight);
5988 BDeeIntTopRight->SetLineWidth(LineWidth);
5989 BDeeIntTopRight->DrawGraph(ngmax, XgDeeIntTopRight, YgDeeIntTopRight);
5993 Float_t xg_dee_ext_bot[21] = {0, 10, 10, 15, 15, 25, 25, 30, 30, 35, 35, 37, 37, 42, 42, 45, 45, 47, 47, 50, 50};
5994 Float_t yg_dee_ext_bot[21] = {0, 0, 3, 3, 5, 5, 8, 8, 13, 13, 15, 15, 20, 20, 25, 25, 35, 35, 40, 40, 50};
5995 for (Int_t
i = 0;
i < ngmax;
i++) {
5996 xg_dee_ext_bot[
i] = coefcc_x * xg_dee_ext_bot[
i];
5997 yg_dee_ext_bot[
i] = coefcc_y * yg_dee_ext_bot[
i];
6000 Float_t XgDeeExtBotRight[21];
6001 Float_t YgDeeExtBotRight[21];
6002 Float_t XgDeeExtTopRight[21];
6003 Float_t YgDeeExtTopRight[21];
6005 for (Int_t
i = 0;
i < ngmax;
i++) {
6006 XgDeeExtBotRight[
i] = xg_dee_ext_bot[
i];
6007 YgDeeExtBotRight[
i] = yg_dee_ext_bot[
i];
6008 XgDeeExtTopRight[
i] = XgDeeExtBotRight[
i];
6010 if (DeeNumber == 2 || DeeNumber == 4) {
6018 TGraph* BDeeExtBotRight =
new TGraph(ngmax, XgDeeExtBotRight, YgDeeExtBotRight);
6019 BDeeExtBotRight->SetLineWidth(LineWidth);
6020 BDeeExtBotRight->DrawGraph(ngmax, XgDeeExtBotRight, YgDeeExtBotRight);
6022 TGraph* BDeeExtTopRight =
new TGraph(ngmax, XgDeeExtTopRight, YgDeeExtTopRight);
6023 BDeeExtTopRight->SetLineWidth(LineWidth);
6024 BDeeExtTopRight->DrawGraph(ngmax, XgDeeExtTopRight, YgDeeExtTopRight);
6031 if (opt_plot ==
"EE") {
6033 Float_t xg_dee_data_sec9[2] = {0, 0};
6034 Float_t yg_dee_data_sec9[2] = {61, 100};
6035 for (Int_t
i = 0;
i < ngmax;
i++) {
6036 xg_dee_data_sec9[
i] = coefcc_x * xg_dee_data_sec9[
i];
6037 yg_dee_data_sec9[
i] = coefcc_y * yg_dee_data_sec9[
i];
6040 Float_t XgDeeDataSec9[11];
6041 Float_t YgDeeDataSec9[11];
6042 for (Int_t
i = 0;
i < ngmax;
i++) {
6043 XgDeeDataSec9[
i] = xg_dee_data_sec9[
i];
6044 YgDeeDataSec9[
i] = yg_dee_data_sec9[
i];
6045 if (DeeNumber == 2 || DeeNumber == 4) {
6050 TGraph* BDeeDataSec9 =
new TGraph(ngmax, XgDeeDataSec9, YgDeeDataSec9);
6051 BDeeDataSec9->SetLineWidth(LineWidth);
6052 BDeeDataSec9->DrawGraph(ngmax, XgDeeDataSec9, YgDeeDataSec9);
6057 Float_t xg_dee_data_sec1[11] = {7, 10, 10, 15, 15, 20, 20, 25, 25, 30, 30};
6058 Float_t yg_dee_data_sec1[11] = {60, 60, 65, 65, 70, 70, 75, 75, 85, 85, 87};
6059 for (Int_t
i = 0;
i < ngmax;
i++) {
6060 xg_dee_data_sec1[
i] = coefcc_x * xg_dee_data_sec1[
i];
6061 yg_dee_data_sec1[
i] = coefcc_y * yg_dee_data_sec1[
i];
6064 Float_t XgDeeDataSec1[11];
6065 Float_t YgDeeDataSec1[11];
6066 for (Int_t
i = 0;
i < ngmax;
i++) {
6067 XgDeeDataSec1[
i] = xg_dee_data_sec1[
i];
6068 YgDeeDataSec1[
i] = yg_dee_data_sec1[
i];
6069 if (DeeNumber == 2 || DeeNumber == 4) {
6075 TGraph* BDeeDataSec1 =
new TGraph(ngmax, XgDeeDataSec1, YgDeeDataSec1);
6076 BDeeDataSec1->SetLineWidth(LineWidth);
6077 BDeeDataSec1->DrawGraph(ngmax, XgDeeDataSec1, YgDeeDataSec1);
6081 Float_t xg_dee_data_sec2[6] = {11, 15, 15, 40, 40, 47};
6082 Float_t yg_dee_data_sec2[6] = {50, 50, 55, 55, 60, 60};
6083 for (Int_t
i = 0;
i < ngmax;
i++) {
6084 xg_dee_data_sec2[
i] = coefcc_x * xg_dee_data_sec2[
i];
6085 yg_dee_data_sec2[
i] = coefcc_y * yg_dee_data_sec2[
i];
6088 Float_t XgDeeDataSec2[6];
6089 Float_t YgDeeDataSec2[6];
6090 for (Int_t
i = 0;
i < ngmax;
i++) {
6091 XgDeeDataSec2[
i] = xg_dee_data_sec2[
i];
6092 YgDeeDataSec2[
i] = yg_dee_data_sec2[
i];
6093 if (DeeNumber == 2 || DeeNumber == 4) {
6098 TGraph* BDeeDataSec2 =
new TGraph(ngmax, XgDeeDataSec2, YgDeeDataSec2);
6099 BDeeDataSec2->SetLineWidth(LineWidth);
6100 BDeeDataSec2->DrawGraph(ngmax, XgDeeDataSec2, YgDeeDataSec2);
6104 Float_t xg_dee_data_sec3[10] = {10, 15, 15, 20, 20, 30, 30, 40, 40, 42};
6105 Float_t yg_dee_data_sec3[10] = {45, 45, 40, 40, 35, 35, 30, 30, 25, 25};
6106 for (Int_t
i = 0;
i < ngmax;
i++) {
6107 xg_dee_data_sec3[
i] = coefcc_x * xg_dee_data_sec3[
i];
6108 yg_dee_data_sec3[
i] = coefcc_y * yg_dee_data_sec3[
i];
6111 Float_t XgDeeDataSec3[10];
6112 Float_t YgDeeDataSec3[10];
6113 for (Int_t
i = 0;
i < ngmax;
i++) {
6114 XgDeeDataSec3[
i] = xg_dee_data_sec3[
i];
6115 YgDeeDataSec3[
i] = yg_dee_data_sec3[
i];
6116 if (DeeNumber == 2 || DeeNumber == 4) {
6121 TGraph* BDeeDataSec3 =
new TGraph(ngmax, XgDeeDataSec3, YgDeeDataSec3);
6122 BDeeDataSec3->SetLineWidth(LineWidth);
6123 BDeeDataSec3->DrawGraph(ngmax, XgDeeDataSec3, YgDeeDataSec3);
6127 Float_t xg_dee_data_sec4[6] = {5, 5, 10, 10, 15, 15};
6128 Float_t yg_dee_data_sec4[6] = {40, 30, 30, 15, 15, 5};
6129 for (Int_t
i = 0;
i < ngmax;
i++) {
6130 xg_dee_data_sec4[
i] = coefcc_x * xg_dee_data_sec4[
i];
6131 yg_dee_data_sec4[
i] = coefcc_y * yg_dee_data_sec4[
i];
6134 Float_t XgDeeDataSec4[6];
6135 Float_t YgDeeDataSec4[6];
6136 for (Int_t
i = 0;
i < ngmax;
i++) {
6137 XgDeeDataSec4[
i] = xg_dee_data_sec4[
i];
6138 YgDeeDataSec4[
i] = yg_dee_data_sec4[
i];
6139 if (DeeNumber == 2 || DeeNumber == 4) {
6144 TGraph* BDeeDataSec4 =
new TGraph(ngmax, XgDeeDataSec4, YgDeeDataSec4);
6145 BDeeDataSec4->SetLineWidth(LineWidth);
6146 BDeeDataSec4->DrawGraph(ngmax, XgDeeDataSec4, YgDeeDataSec4);
6149 if (opt_plot ==
"Dee" || opt_plot ==
"EE") {
6152 Float_t xg_coord_sector[5] = {16, 41, 45, 33, -2};
6153 Float_t yg_coord_sector[5] = {96, 83, 30, 5, -8};
6156 if (opt_plot ==
"Dee" && (DeeNumber == 1)) {
6157 xg_coord_sector[2] += 0.5;
6159 if (opt_plot ==
"Dee" && (DeeNumber == 2)) {
6160 xg_coord_sector[2] -= 1.;
6162 if (opt_plot ==
"Dee" && (DeeNumber == 3)) {
6163 xg_coord_sector[2] += 0.7;
6165 if (opt_plot ==
"Dee" && (DeeNumber == 4)) {
6166 xg_coord_sector[2] -= 1.2;
6169 if (opt_plot ==
"EE" && (DeeNumber == 2 || DeeNumber == 3)) {
6170 xg_coord_sector[2] += 0.55;
6172 if (opt_plot ==
"EE" && (DeeNumber == 4)) {
6173 xg_coord_sector[2] -= 0.2;
6176 for (Int_t
i = 0;
i < ngmax;
i++) {
6177 xg_coord_sector[
i] = coefcc_x * xg_coord_sector[
i];
6178 yg_coord_sector[
i] = coefcc_y * yg_coord_sector[
i];
6181 Float_t xg_sector[9];
6182 Float_t yg_sector[9];
6185 Float_t xinv_d2d4 = coefcc_x * 44;
6187 if (DeeNumber == 1) {
6190 xg_sector[1 - ns1] = xg_coord_sector[1 - ns1];
6191 yg_sector[1 - ns1] = yg_coord_sector[1 - ns1];
6192 xg_sector[2 - ns1] = xg_coord_sector[2 - ns1];
6193 yg_sector[2 - ns1] = yg_coord_sector[2 - ns1];
6194 xg_sector[3 - ns1] = xg_coord_sector[3 - ns1];
6195 yg_sector[3 - ns1] = yg_coord_sector[3 - ns1];
6196 xg_sector[4 - ns1] = xg_coord_sector[4 - ns1];
6197 yg_sector[4 - ns1] = yg_coord_sector[4 - ns1];
6198 xg_sector[5 - ns1] = xg_coord_sector[5 - ns1];
6199 yg_sector[5 - ns1] = yg_coord_sector[5 - ns1];
6202 if (DeeNumber == 2) {
6205 xg_sector[ns2 - 1] = xinv_d2d4 - xg_coord_sector[1 - 1];
6206 yg_sector[ns2 - 1] = yg_coord_sector[1 - 1];
6207 xg_sector[ns2 - 2] = xinv_d2d4 - xg_coord_sector[2 - 1];
6208 yg_sector[ns2 - 2] = yg_coord_sector[2 - 1];
6209 xg_sector[ns2 - 3] = xinv_d2d4 - xg_coord_sector[3 - 1];
6210 yg_sector[ns2 - 3] = yg_coord_sector[3 - 1];
6211 xg_sector[ns2 - 4] = xinv_d2d4 - xg_coord_sector[4 - 1];
6212 yg_sector[ns2 - 4] = yg_coord_sector[4 - 1];
6213 xg_sector[ns2 - 5] = xinv_d2d4 - xg_coord_sector[5 - 1];
6214 yg_sector[ns2 - 5] = yg_coord_sector[5 - 1];
6216 if (DeeNumber == 3) {
6219 xg_sector[ns2 - 1] = xg_coord_sector[1 - 1];
6220 yg_sector[ns2 - 1] = yg_coord_sector[1 - 1];
6221 xg_sector[ns2 - 2] = xg_coord_sector[2 - 1];
6222 yg_sector[ns2 - 2] = yg_coord_sector[2 - 1];
6223 xg_sector[ns2 - 3] = xg_coord_sector[3 - 1];
6224 yg_sector[ns2 - 3] = yg_coord_sector[3 - 1];
6225 xg_sector[ns2 - 4] = xg_coord_sector[4 - 1];
6226 yg_sector[ns2 - 4] = yg_coord_sector[4 - 1];
6227 xg_sector[ns2 - 5] = xg_coord_sector[5 - 1];
6228 yg_sector[ns2 - 5] = yg_coord_sector[5 - 1];
6230 if (DeeNumber == 4) {
6233 xg_sector[1 - ns1] = xinv_d2d4 - xg_coord_sector[1 - ns1];
6234 yg_sector[1 - ns1] = yg_coord_sector[1 - ns1];
6235 xg_sector[2 - ns1] = xinv_d2d4 - xg_coord_sector[2 - ns1];
6236 yg_sector[2 - ns1] = yg_coord_sector[2 - ns1];
6237 xg_sector[3 - ns1] = xinv_d2d4 - xg_coord_sector[3 - ns1];
6238 yg_sector[3 - ns1] = yg_coord_sector[3 - ns1];
6239 xg_sector[4 - ns1] = xinv_d2d4 - xg_coord_sector[4 - ns1];
6240 yg_sector[4 - ns1] = yg_coord_sector[4 - ns1];
6241 xg_sector[5 - ns1] = xinv_d2d4 - xg_coord_sector[5 - ns1];
6242 yg_sector[5 - ns1] = yg_coord_sector[5 - ns1];
6246 for (Int_t ns = ns1; ns <= ns2; ns++) {
6248 if (DeeNumber == 1 || DeeNumber == 2) {
6249 sprintf(f_in,
"+%d", ns);
6251 if (DeeNumber == 3 || DeeNumber == 4) {
6252 sprintf(f_in,
"-%d", ns);
6254 TText* text_num_module =
new TText(xg_sector[ns - 1], yg_sector[ns - 1], f_in);
6256 if (opt_plot ==
"Dee") {
6257 text_num_module->SetTextSize(0.065);
6259 if (opt_plot ==
"EE") {
6260 text_num_module->SetTextSize(0.045);
6262 text_num_module->SetTextColor(coul_textsector);
6263 if (opt_plot ==
"Dee" || (opt_plot ==
"EE" && !((DeeNumber == 3 && ns == 5) || (DeeNumber == 1 && ns == 5)))) {
6264 text_num_module->Draw();
6272 Float_t xg_coord_dee[4] = {0, 0, 0, 0};
6273 Float_t yg_coord_dee[4] = {48, 48, 48, 48};
6275 xg_coord_dee[DeeNumber - 1] = coefcc_x * xg_coord_dee[DeeNumber - 1];
6276 yg_coord_dee[DeeNumber - 1] = coefcc_y * yg_coord_dee[DeeNumber - 1];
6278 Float_t xg_dee = xg_coord_dee[DeeNumber - 1];
6279 Float_t yg_dee = yg_coord_dee[DeeNumber - 1];
6285 if (DeeNumber == 1) {
6286 sprintf(f_in,
"D1");
6288 if (DeeNumber == 2) {
6289 sprintf(f_in,
"D2");
6291 if (DeeNumber == 3) {
6292 sprintf(f_in,
"D3");
6294 if (DeeNumber == 4) {
6295 sprintf(f_in,
"D4");
6298 TText* text_num_module =
new TText(xg_dee, yg_dee, f_in);
6300 if (opt_plot ==
"EE") {
6301 text_num_module->SetTextSize(0.045);
6303 if (opt_plot ==
"Dee") {
6304 text_num_module->SetTextSize(0.085);
6306 text_num_module->SetTextColor(coul_textdee);
6307 text_num_module->Draw();
6311 if (opt_plot ==
"EE") {
6314 Float_t xg_coord_eepm[4] = {0, 0, 0, 0};
6315 Float_t yg_coord_eepm[4] = {95, 95, 95, 95};
6317 xg_coord_eepm[DeeNumber - 1] = coefcc_x * xg_coord_eepm[DeeNumber - 1];
6318 yg_coord_eepm[DeeNumber - 1] = coefcc_y * yg_coord_eepm[DeeNumber - 1];
6320 Float_t xg_eepm = xg_coord_eepm[DeeNumber - 1];
6321 Float_t yg_eepm = yg_coord_eepm[DeeNumber - 1];
6327 if (DeeNumber == 1) {
6328 sprintf(f_in,
"EE+F");
6330 if (DeeNumber == 2) {
6331 sprintf(f_in,
"EE+N");
6333 if (DeeNumber == 3) {
6334 sprintf(f_in,
"EE-N");
6336 if (DeeNumber == 4) {
6337 sprintf(f_in,
"EE-F");
6340 TText* text_num_eepm =
new TText(xg_eepm, yg_eepm, f_in);
6342 text_num_eepm->SetTextSize(0.04);
6343 text_num_eepm->SetTextColor(coul_texteepm);
6344 text_num_eepm->Draw();
6349 sprintf(f_in,
"viewed from IP");
6350 Float_t x_from_ip = 15.;
6351 Float_t y_from_ip = -10.;
6352 if (opt_plot ==
"EE") {
6355 x_from_ip = coefcc_x * x_from_ip;
6356 y_from_ip = coefcc_x * y_from_ip;
6357 if (opt_plot ==
"EE" && DeeNumber == 3) {
6360 TText* text_from_ip =
new TText(x_from_ip, y_from_ip, f_in);
6362 text_from_ip->SetTextSize(0.045);
6363 if (opt_plot ==
"EE") {
6364 text_from_ip->SetTextSize(0.035);
6366 text_from_ip->SetTextColor(coul_textfromIP);
6367 if (opt_plot ==
"Dee" || (opt_plot ==
"EE" && DeeNumber == 3)) {
6368 text_from_ip->Draw();
6384 if (opt_plot ==
"Dee" && c_option ==
"corcc") {
6389 if (opt_plot ==
"EE" && c_option ==
"corcc") {
6393 if (opt_plot ==
"Dee" && c_option !=
"corcc") {
6396 if (opt_plot ==
"EE" && c_option !=
"corcc") {
6400 TString x_var_name =
" ";
6402 Float_t axis_x_inf = 0;
6403 Float_t axis_x_sup = 0;
6404 Float_t axis_y_inf = 0;
6405 Float_t axis_y_sup = 0;
6406 Int_t axis_nb_div = 205;
6407 Double_t IX_values_min = 0;
6408 Double_t IX_values_max = 0;
6409 Option_t* chopt =
"C";
6415 axis_x_inf = size_IX_dee * MatSize;
6419 IX_values_min = -IX_max;
6420 IX_values_max = -IX_min;
6421 if (opt_plot ==
"Dee") {
6424 if (opt_plot ==
"EE") {
6427 if (opt_plot ==
"Dee") {
6428 axis_nb_div = size_IX_dee;
6435 axis_x_inf = size_IX_dee * MatSize;
6439 IX_values_min = IX_min;
6440 IX_values_max = IX_max;
6441 if (opt_plot ==
"Dee") {
6444 if (opt_plot ==
"EE") {
6447 if (opt_plot ==
"Dee") {
6448 axis_nb_div = size_IX_dee;
6455 axis_x_sup = size_IX_dee * MatSize;
6458 IX_values_min = IX_min;
6459 IX_values_max = IX_max;
6460 if (opt_plot ==
"Dee") {
6463 if (opt_plot ==
"EE") {
6466 if (opt_plot ==
"Dee") {
6467 axis_nb_div = size_IX_dee;
6474 axis_x_sup = size_IX_dee * MatSize;
6477 IX_values_min = -IX_max;
6478 IX_values_max = -IX_min;
6479 if (opt_plot ==
"Dee") {
6482 if (opt_plot ==
"EE") {
6485 if (opt_plot ==
"Dee") {
6486 axis_nb_div = size_IX_dee;
6495 TGaxis* sup_axis_x =
nullptr;
6497 new TGaxis(axis_x_inf, axis_y_inf, axis_x_sup, axis_y_sup, IX_values_min, IX_values_max, axis_nb_div, chopt, 0.);
6504 if (opt_plot ==
"EE") {
6509 if (opt_plot ==
"EE") {
6514 if (opt_plot ==
"EE") {
6518 sup_axis_x->SetTitle(x_var_name);
6519 sup_axis_x->SetTitleSize(tit_siz_x);
6520 sup_axis_x->SetTitleOffset(tit_off_x);
6521 sup_axis_x->SetLabelSize(lab_siz_x);
6522 sup_axis_x->SetLabelOffset(lab_off_x);
6523 sup_axis_x->SetTickSize(tic_siz_x);
6524 sup_axis_x->Draw(
"SAME");
6527 if (DeeNumber == 1 || DeeNumber == 2) {
6529 TGaxis* sup_axis_x_bis =
nullptr;
6530 sup_axis_x_bis =
new TGaxis(
6531 axis_x_inf, axis_y_inf, axis_x_sup, axis_y_sup, IX_values_min, IX_values_max, axis_nb_div, chopt, 0.);
6533 sup_axis_x_bis->SetTickSize(0.);
6534 lab_siz_x = sup_axis_x->GetLabelSize();
6535 sup_axis_x_bis->SetLabelSize(lab_siz_x);
6536 lab_off_x = sup_axis_x->GetLabelOffset();
6537 sup_axis_x_bis->SetLabelOffset(-lab_off_x);
6538 sup_axis_x_bis->Draw(
"SAME");
6543 if (opt_plot ==
"Dee" || (opt_plot ==
"EE" && DeeNumber == 4)) {
6545 Int_t size_IY_axis = size_IY_dee;
6547 if (opt_plot ==
"Dee") {
6548 axis_nb_div = size_IY_axis;
6550 if (opt_plot ==
"EE") {
6557 TString jy_var_name =
" ";
6558 TString jy_direction =
"x";
6564 if (opt_plot ==
"EE") {
6569 if (opt_plot ==
"EE") {
6574 if (opt_plot ==
"EE") {
6578 TGaxis* axis_jy_plus =
nullptr;
6579 axis_jy_plus =
new TGaxis((Float_t)0.,
6582 (Float_t)(size_IY_axis * MatSize),
6591 axis_jy_plus->SetTitle(jy_var_name);
6592 axis_jy_plus->SetTitleSize(tit_siz_y);
6593 axis_jy_plus->SetTitleOffset(tit_off_y);
6594 axis_jy_plus->SetLabelSize(lab_siz_y);
6595 axis_jy_plus->SetLabelOffset(lab_off_y);
6596 axis_jy_plus->SetTickSize(tic_siz_y);
6597 axis_jy_plus->Draw(
"SAME");
6603 if (opt_plot ==
"Dee" || (opt_plot ==
"EE" && DeeNumber == 4)) {
6605 Int_t size_IY_axis = size_IY_dee / 2;
6607 if (opt_plot ==
"Dee") {
6608 axis_nb_div = (Int_t)size_IY_axis;
6610 if (opt_plot ==
"EE") {
6617 TString jy_var_name =
" ";
6618 TString jy_direction =
"x";
6624 if (opt_plot ==
"EE") {
6629 if (opt_plot ==
"EE") {
6634 if (opt_plot ==
"EE") {
6638 TGaxis* axis_jy_plus = 0;
6639 axis_jy_plus =
new TGaxis((Float_t)0.,
6640 (Float_t)(size_IY_dee * MatSize / 2),
6642 (Float_t)(2 * size_IY_dee * MatSize / 2),
6651 axis_jy_plus->SetTitle(jy_var_name);
6652 axis_jy_plus->SetTitleSize(tit_siz_y);
6653 axis_jy_plus->SetTitleOffset(tit_off_y);
6654 axis_jy_plus->SetLabelSize(lab_siz_y);
6655 axis_jy_plus->SetLabelOffset(lab_off_y);
6656 axis_jy_plus->SetTickSize(tic_siz_y);
6657 axis_jy_plus->Draw(
"SAME");
6659 TGaxis* axis_jy_minus = 0;
6660 axis_jy_minus =
new TGaxis((Float_t)0.,
6661 (Float_t)(size_IY_dee * MatSize / 2),
6672 axis_jy_minus->SetTitle(jy_var_name);
6673 axis_jy_minus->SetTitleSize(tit_siz_y);
6674 axis_jy_minus->SetTitleOffset(tit_off_y);
6675 axis_jy_minus->SetLabelSize(lab_siz_y);
6676 axis_jy_minus->SetLabelOffset(lab_off_y);
6677 axis_jy_minus->SetTickSize(tic_siz_y);
6678 axis_jy_minus->Draw(
"SAME");
6691 const Int_t& arg_AlreadyRead,
6692 const Int_t& n1StexStin,
6693 const Int_t& i0StinEcha) {
6694 XtalSamplesEv(arg_read_histo, arg_AlreadyRead, n1StexStin, i0StinEcha,
"ONLYONE");
6697 const Int_t& arg_AlreadyRead,
6698 const Int_t& n1StexStin,
6699 const Int_t& i0StinEcha,
6700 const TString& PlotOption) {
6703 Int_t StexStin_A = n1StexStin;
6708 Bool_t aOKData = kFALSE;
6730 std::cout <<
"!TEcnaHistos::XtalSamplesEv(...)> Data not available (ROOT file not found)." << std::endl;
6736 if (arg_AlreadyRead >= 1) {
6738 read_histo[
i] = arg_read_histo[
i];
6744 if (aOKData == kTRUE) {
6747 Int_t xAlreadyRead = 1;
6748 for (Int_t i0_stin_echa = 0; i0_stin_echa <
fEcal->
MaxCrysInStin(); i0_stin_echa++) {
6750 std::cout <<
"*TEcnaHistos::XtalSamplesEv(...)> channel " << std::setw(2) << i0_stin_echa <<
": ";
6753 std::cout <<
"*TEcnaHistos::XtalSamplesEv(...)> Xtal " << std::setw(2) << i0_stin_echa + 1 <<
": ";
6757 read_histo_samps(i0_samp) = read_histo(i0_stin_echa * fFapNbOfSamples + i0_samp);
6758 std::cout << std::setprecision(4) << std::setw(8) << read_histo_samps(i0_samp) <<
", ";
6766 std::cout <<
"!TEcnaHistos::XtalSamplesEv(...)> Data not available." << std::endl;
6771 Int_t StexStin_A = n1StexStin;
6785 const Int_t& arg_AlreadyRead,
6786 const Int_t& n1StexStin,
6787 const Int_t& i0StinEcha) {
6788 EvSamplesXtals(arg_read_histo, arg_AlreadyRead, n1StexStin, i0StinEcha,
"ONLYONE");
6791 const Int_t& arg_AlreadyRead,
6792 const Int_t& n1StexStin,
6793 const Int_t& i0StinEcha,
6794 const TString& PlotOption) {
6797 Int_t StexStin_A = n1StexStin;
6802 Bool_t aOKData = kFALSE;
6824 std::cout <<
"!TEcnaHistos::EvSamplesXtals(...)> Data not available (ROOT file not found)." << std::endl;
6830 if (arg_AlreadyRead >= 1) {
6832 read_histo[
i] = arg_read_histo[
i];
6837 if (aOKData == kTRUE) {
6840 Int_t xAlreadyRead = 1;
6841 for (Int_t i0_stin_echa = 0; i0_stin_echa <
fEcal->
MaxCrysInStin(); i0_stin_echa++) {
6843 std::cout <<
"*TEcnaHistos::EvSamplesXtals(...)> channel " << std::setw(2) << i0_stin_echa <<
": ";
6846 std::cout <<
"*TEcnaHistos::EvSamplesXtals(...)> Xtal " << std::setw(2) << i0_stin_echa + 1 <<
": ";
6850 read_histo_samps(i0_samp) = read_histo(i0_stin_echa * fFapNbOfSamples + i0_samp);
6851 std::cout << std::setprecision(4) << std::setw(8) << read_histo_samps(i0_samp) <<
", ";
6859 std::cout <<
"!TEcnaHistos::EvSamplesXtals(...)> Data not available." << std::endl;
6864 Int_t StexStin_A = n1StexStin;
6878 const Int_t& arg_AlreadyRead,
6879 const Int_t& n1StexStin,
6880 const Int_t& i0StinEcha) {
6881 XtalSamplesSigma(arg_read_histo, arg_AlreadyRead, n1StexStin, i0StinEcha,
"ONLYONE");
6884 const Int_t& arg_AlreadyRead,
6885 const Int_t& n1StexStin,
6886 const Int_t& i0StinEcha,
6887 const TString& PlotOption) {
6890 Int_t StexStin_A = n1StexStin;
6895 Bool_t aOKData = kFALSE;
6917 std::cout <<
"!TEcnaHistos::XtalSamplesSigma(...)> Data not available (ROOT file not found)." << std::endl;
6923 if (arg_AlreadyRead >= 1) {
6925 read_histo[
i] = arg_read_histo[
i];
6930 if (aOKData == kTRUE) {
6933 Int_t xAlreadyRead = 1;
6934 for (Int_t i0_stin_echa = 0; i0_stin_echa <
fEcal->
MaxCrysInStin(); i0_stin_echa++) {
6936 std::cout <<
"*TEcnaHistos::XtalSamplesSigma(...)> channel " << std::setw(2) << i0_stin_echa <<
": ";
6939 std::cout <<
"*TEcnaHistos::XtalSamplesSigma(...)> Xtal " << std::setw(2) << i0_stin_echa + 1 <<
": ";
6943 read_histo_samps(i0_samp) = read_histo(i0_stin_echa * fFapNbOfSamples + i0_samp);
6944 std::cout << std::setprecision(3) << std::setw(6) << read_histo_samps(i0_samp) <<
", ";
6952 std::cout <<
"!TEcnaHistos::XtalSamplesSigma(...)> Data not available." << std::endl;
6957 Int_t StexStin_A = n1StexStin;
6971 const Int_t& arg_AlreadyRead,
6972 const Int_t& n1StexStin,
6973 const Int_t& i0StinEcha) {
6974 SigmaSamplesXtals(arg_read_histo, arg_AlreadyRead, n1StexStin, i0StinEcha,
"ONLYONE");
6977 const Int_t& arg_AlreadyRead,
6978 const Int_t& n1StexStin,
6979 const Int_t& i0StinEcha,
6980 const TString& PlotOption) {
6983 Int_t StexStin_A = n1StexStin;
6988 Bool_t aOKData = kFALSE;
7009 std::cout <<
"!TEcnaHistos::SigmaSamplesXtals(...)> Data not available (ROOT file not found)." << std::endl;
7016 if (arg_AlreadyRead >= 1) {
7018 read_histo[
i] = arg_read_histo[
i];
7023 if (aOKData == kTRUE) {
7026 Int_t xAlreadyRead = 1;
7027 for (Int_t i0_stin_echa = 0; i0_stin_echa <
fEcal->
MaxCrysInStin(); i0_stin_echa++) {
7029 std::cout <<
"*TEcnaHistos::SigmaSamplesXtals(...)> channel " << std::setw(2) << i0_stin_echa <<
": ";
7032 std::cout <<
"*TEcnaHistos::SigmaSamplesXtals(...)> Xtal " << std::setw(2) << i0_stin_echa + 1 <<
": ";
7036 read_histo_samps(i0_samp) = read_histo(i0_stin_echa * fFapNbOfSamples + i0_samp);
7037 std::cout << std::setprecision(3) << std::setw(6) << read_histo_samps(i0_samp) <<
", ";
7045 std::cout <<
"!TEcnaHistos::SigmaSamplesXtals(...)> Data not available." << std::endl;
7050 Int_t StexStin_A = n1StexStin;
7078 const Int_t& arg_AlreadyRead,
7079 const Int_t& StexStin_A,
7080 const Int_t& i0StinEcha,
7081 const Int_t& i0Sample,
7082 const TString& HistoCode,
7083 const TString& opt_plot_arg) {
7086 TString opt_plot = opt_plot_arg;
7099 Int_t xCanvasExists = 1;
7101 TVirtualPad* main_subpad =
nullptr;
7103 main_subpad =
ActivePad(HistoCode.Data(), opt_plot.Data());
7104 if (main_subpad ==
nullptr) {
7105 std::cout <<
"*TEcnaHistos::ViewHisto(...)> WARNING ===> Canvas has been closed in option SAME or SAME n." 7107 <<
" Please, restart with a new canvas." <<
fTTBELL << std::endl;
7116 Int_t SameXVarMemo = 1;
7117 if (!(HistoType ==
"Proj" || HistoType ==
"SampProj" || HistoType ==
"EvolProj") && !(arg_AlreadyRead >= 1)) {
7129 if (XVarHisto != XVariableMemo) {
7130 std::cout <<
"!TEcnaHistos::ViewHisto(...)> *** ERROR *** ===> X coordinate changed in option SAME n." 7132 <<
" Present X = " << XVarHisto << std::endl
7133 <<
" Present Y = " << YVarHisto << std::endl
7134 <<
" Previous X = " << XVariableMemo << std::endl
7135 <<
" Previous Y = " << YVariableMemo <<
fTTBELL << std::endl;
7145 Int_t SameYVarMemo = 1;
7146 if ((HistoType ==
"Proj" || HistoType ==
"SampProj" || HistoType ==
"EvolProj") && !(arg_AlreadyRead >= 1)) {
7158 if (YVarHisto != YVariableMemo) {
7159 std::cout <<
"!TEcnaHistos::ViewHisto(...)> *** ERROR *** ===> Y coordinate changed in option SAME n." 7161 <<
" Present X = " << XVarHisto << std::endl
7162 <<
" Present Y = " << YVarHisto << std::endl
7163 <<
" Previous X = " << XVariableMemo << std::endl
7164 <<
" Previous Y = " << YVariableMemo <<
fTTBELL << std::endl;
7174 Int_t OkBinsMemoSameOne = 1;
7176 Int_t SizeForPlot =
GetHistoSize(HistoCode.Data(),
"plot");
7181 OkBinsMemoSameOne = 1;
7186 if (xNbBins != NbBinsMemo) {
7187 std::cout <<
"!TEcnaHistos::ViewHisto(...)> *** ERROR *** ===> Number of bins changed in option SAME or SAME n." 7188 <<
" Present number = " << xNbBins <<
", requested number = " << NbBinsMemo <<
fTTBELL << std::endl;
7189 OkBinsMemoSameOne = 0;
7195 if (xCanvasExists == 1 && SameXVarMemo == 1 && SameYVarMemo == 1 && OkBinsMemoSameOne == 1) {
7218 TString fp_name_short =
" ";
7221 Int_t SizeForRead =
GetHistoSize(HistoCode.Data(),
"read");
7224 TVectorD histo_for_plot(SizeForPlot);
7225 for (Int_t
i = 0;
i < SizeForPlot;
i++) {
7226 histo_for_plot[
i] = (Double_t)0;
7229 TVectorD histo_for_plot_memo(SizeForPlot);
7230 for (Int_t
i = 0;
i < SizeForPlot;
i++) {
7231 histo_for_plot_memo[
i] = (Double_t)0;
7234 Int_t i_data_exist = 0;
7238 if (HistoType ==
"Global" || HistoType ==
"Proj" || HistoType ==
"SampGlobal" || HistoType ==
"SampProj") {
7240 Bool_t ok_view_histo = kFALSE;
7243 Int_t CounterExistingFile = 0;
7244 Int_t CounterDataExist = 0;
7249 xFapNbOfEvts[
i] = 0;
7255 Bool_t OKFileExists = kFALSE;
7256 Bool_t ok_data_exists = kFALSE;
7260 read_histo(
i) = (Double_t)0.;
7263 if (arg_AlreadyRead == 0) {
7266 Int_t n1StasStex = iStasStex + 1;
7277 OKFileExists = kTRUE;
7279 if (OKFileExists == kTRUE) {
7285 if (iStasStex == 0) {
7309 if (ok_view_histo == kTRUE) {
7311 if (HistoCode ==
"D_NOE_ChNb" || HistoCode ==
"D_NOE_ChDs") {
7314 if (HistoCode ==
"D_Ped_ChNb" || HistoCode ==
"D_Ped_ChDs") {
7317 if (HistoCode ==
"D_TNo_ChNb" || HistoCode ==
"D_TNo_ChDs") {
7320 if (HistoCode ==
"D_MCs_ChNb" || HistoCode ==
"D_MCs_ChDs") {
7323 if (HistoCode ==
"D_LFN_ChNb" || HistoCode ==
"D_LFN_ChDs") {
7326 if (HistoCode ==
"D_HFN_ChNb" || HistoCode ==
"D_HFN_ChDs") {
7329 if (HistoCode ==
"D_SCs_ChNb" || HistoCode ==
"D_SCs_ChDs") {
7333 ok_data_exists = kTRUE;
7339 if (arg_AlreadyRead >= 1) {
7340 ok_data_exists = kTRUE;
7346 if (ok_data_exists == kTRUE) {
7348 CounterExistingFile++;
7351 if (ok_data_exists == kTRUE) {
7362 if (i_xgeo >= 0 && i_xgeo < SizeForPlot) {
7363 histo_for_plot[i_xgeo] = read_histo[i0StexStinEcna];
7365 std::cout <<
"!TEcnaHistos::ViewHisto(...)> <EB> i_xgeo = " << i_xgeo
7366 <<
". OUT OF RANGE ( range = [0," << SizeForPlot <<
"] " << std::endl;
7372 Int_t DeeOffset = 0;
7375 Int_t DeeNumber = iStasStex + 1;
7376 Int_t n1DeeSCEcna = i0StexStinEcna + 1;
7379 if (DeeNumber == 3) {
7382 if (DeeNumber == 2) {
7385 if (DeeNumber == 1) {
7399 if (StexDataSector >= 1 && StexDataSector <= 9) {
7402 for (Int_t is = 2; is <= 5; is++) {
7403 if (StexDataSector >= is) {
7412 if (StexDataSector >= 6) {
7415 for (Int_t is = 7; is <= 9; is++) {
7416 if (StexDataSector >= is) {
7425 if (StexDataSector >= 6) {
7428 for (Int_t is = 7; is <= 9; is++) {
7429 if (StexDataSector >= is) {
7438 for (Int_t is = 2; is <= 5; is++) {
7439 if (StexDataSector >= is) {
7446 if (StexDSStin >= 1 && StexDSStin <= fEcalNumbering->GetMaxSCInDS(StexDataSector)) {
7449 if (StexDataSector != 5) {
7450 i_xgeo = DeeOffset + DSOffset + (StexDSStin - 1);
7452 if (StexDataSector == 5) {
7453 i_xgeo = DeeOffset + DSOffset + (StexDSStin - 1);
7458 if (StexDataSector != 5) {
7459 i_xgeo = DeeOffset + DSOffset + (StexDSStin - 1);
7461 if (StexDataSector == 5) {
7462 i_xgeo = DeeOffset + DSOffset + (StexDSStin - 17) - 1;
7467 if (StexDataSector != 5) {
7470 if (StexDataSector == 5) {
7476 if (StexDataSector != 5) {
7479 if (StexDataSector == 5) {
7487 std::cout <<
"!TEcnaHistos::ViewHisto(...)> <EE> StexDSStin = " << StexDSStin
7489 <<
"]. DeeNumber = " << DeeNumber <<
", n1DeeSCEcna = " << n1DeeSCEcna
7490 <<
", StexDataSector = " << StexDataSector <<
", i_xgeo = " << i_xgeo << std::endl;
7500 if (i_xgeo >= -1 && i_xgeo < SizeForPlot) {
7502 if (n1DeeSCEcna == 29 || n1DeeSCEcna == 32 ||
7504 n1DeeSCEcna == 144 || n1DeeSCEcna == 165 ||
7505 n1DeeSCEcna == 176 || n1DeeSCEcna == 193 ||
7506 n1DeeSCEcna == 60 || n1DeeSCEcna == 119 ||
7507 n1DeeSCEcna == 102 || n1DeeSCEcna == 123 ||
7508 n1DeeSCEcna == 138 || n1DeeSCEcna == 157)
7511 if (n1DeeSCEcna == 29 && i_xgeo >= 0) {
7512 histo_for_plot[i_xgeo] += read_histo[i0StexStinEcna] / (Double_t)5.;
7514 if ((n1DeeSCEcna == 144 || n1DeeSCEcna == 165) && i_xgeo >= 0) {
7515 histo_for_plot[i_xgeo] += read_histo[i0StexStinEcna] * (Double_t)10. / (Double_t)25.;
7519 if (n1DeeSCEcna == 32 && i_xgeo >= 0) {
7520 histo_for_plot[i_xgeo] += read_histo[i0StexStinEcna] / (Double_t)5.;
7522 if ((n1DeeSCEcna == 176 || n1DeeSCEcna == 193) && i_xgeo >= 0) {
7523 histo_for_plot[i_xgeo] += read_histo[i0StexStinEcna] * (Double_t)10. / (Double_t)25.;
7527 if ((n1DeeSCEcna == 60 || n1DeeSCEcna == 119) && i_xgeo >= 0) {
7528 histo_for_plot[i_xgeo] += read_histo[i0StexStinEcna] / (Double_t)2.;
7532 if (n1DeeSCEcna == 102) {
7533 histo_for_plot[i_xgeo] +=
7534 read_histo[9] / (Double_t)21. + read_histo[i0StexStinEcna] * (Double_t)10. / (Double_t)21.;
7536 if (n1DeeSCEcna == 123 && i_xgeo >= 0) {
7537 histo_for_plot[i_xgeo] += read_histo[i0StexStinEcna] * (Double_t)10. / (Double_t)21.;
7541 if (n1DeeSCEcna == 138) {
7542 histo_for_plot[i_xgeo] +=
7543 read_histo[10] / (Double_t)21. + read_histo[i0StexStinEcna] * (Double_t)10. / (Double_t)21.;
7545 if (n1DeeSCEcna == 157 && i_xgeo >= 0) {
7546 histo_for_plot[i_xgeo] += read_histo[i0StexStinEcna] * (Double_t)10. / (Double_t)21.;
7550 histo_for_plot[i_xgeo] += read_histo[i0StexStinEcna];
7561 std::cout <<
"!TEcnaHistos::ViewHisto(...)> " 7562 <<
" Data not available for " <<
fFapStexName <<
" " << iStasStex + 1
7563 <<
" (Quantity not present in the ROOT file)" << std::endl;
7569 std::cout <<
"!TEcnaHistos::ViewHisto(...)> " 7570 <<
" Data not available for " <<
fFapStexName <<
" " << iStasStex + 1 <<
" (ROOT file not found)" 7581 delete[] xFapNbOfEvts;
7582 xFapNbOfEvts =
nullptr;
7585 if (CounterExistingFile > 0 && CounterDataExist > 0) {
7594 Bool_t OKFileExists = kFALSE;
7595 Bool_t ok_view_histo = kFALSE;
7597 if (arg_AlreadyRead == 0) {
7609 OKFileExists = kTRUE;
7612 if (OKFileExists == kTRUE) {
7626 if (arg_AlreadyRead >= 1) {
7627 OKFileExists = kTRUE;
7628 ok_view_histo = kTRUE;
7631 if (OKFileExists == kTRUE) {
7635 if (ok_view_histo == kTRUE) {
7638 (
fFlagSubDet ==
"EE" && (HistoType ==
"SampGlobal" || HistoType ==
"SampProj"))) {
7649 if (i_data_exist > 0) {
7652 if (OKPlot == 1 && opt_plot ==
"ASCII" && (HistoType ==
"Global" || HistoType ==
"Proj")) {
7658 if (
fFlagSubDet ==
"EE" && !(HistoType ==
"SampGlobal" || HistoType ==
"SampProj")) {
7659 TVectorD read_histo(SizeForRead);
7660 for (Int_t
i = 0;
i < SizeForRead;
i++) {
7661 read_histo(
i) = (Double_t)0.;
7674 if (i_data_exist > 0) {
7677 if (OKPlot == 1 && opt_plot ==
"ASCII") {
7680 if (OKPlot == 1 && opt_plot !=
"ASCII") {
7695 if (n1SCEcha >= 1 && n1SCEcha <= fEcal->MaxCrysInSC()) {
7696 if (n1DeeSCEcna >= 1 && n1DeeSCEcna <= fEcal->MaxSCEcnaInDee()) {
7697 if (DataSector >= 1 && DataSector <= 9) {
7698 if (SC_in_DS >= 1 && SC_in_DS <= fEcalNumbering->GetMaxSCInDS(DataSector)) {
7699 if (read_histo[i0DeeEcha] != 0) {
7701 Int_t DSOffset =
GetDSOffset(DeeNumber, DataSector);
7704 Int_t SCOffset =
GetSCOffset(DeeNumber, DataSector, SC_in_DS);
7710 Int_t n1FinalSCEcha = n1SCEcha;
7716 if (!((SC_in_DS == 14 || SC_in_DS == 25) && n1SCEcha == 11)) {
7718 DeeNumber, nSCCons, SC_in_DS, n1DeeSCEcna, n1SCEcha);
7719 i_xgeo = DSOffset + SCOffset + (n1FinalSCEcha - 1);
7722 if (SC_in_DS == 14 && n1SCEcha == 11) {
7723 SCOffset =
GetSCOffset(DeeNumber, DataSector, 21);
7725 i_xgeo = DSOffset + SCOffset + (n1FinalSCEcha - 1);
7728 if (SC_in_DS == 25 && n1SCEcha == 11) {
7731 i_xgeo = DSOffset + SCOffset + (n1FinalSCEcha - 1);
7734 i_xgeo = DSOffset + SCOffset + (n1FinalSCEcha - 1);
7737 histo_for_plot_memo[i_xgeo]++;
7738 if (histo_for_plot_memo[i_xgeo] >= 2) {
7739 std::cout <<
"! histo_memo[" << i_xgeo <<
"] = " << histo_for_plot_memo[i_xgeo]
7740 <<
", nSCCons = " << nSCCons <<
", SC_in_DS = " << SC_in_DS
7741 <<
", DSOffset = " << DSOffset <<
", SCOffset = " << SCOffset
7742 <<
", n1DeeSCEcna = " << n1DeeSCEcna <<
", n1SCEcha = " << n1SCEcha
7743 <<
", n1FinalSCEcha = " << n1FinalSCEcha << std::endl;
7746 if (i_xgeo >= 0 && i_xgeo < SizeForPlot) {
7747 if (n1FinalSCEcha > 0) {
7748 histo_for_plot[i_xgeo] += read_histo[i0DeeEcha];
7751 std::cout <<
"!TEcnaHistos::ViewHisto(...)> <EE> i_xgeo = " << i_xgeo
7752 <<
". OUT OF RANGE ( range = [0," << SizeForPlot <<
"] " << std::endl;
7757 std::cout <<
"!TEcnaHistos::ViewHisto(...)> <EE> SC_in_DS = " << SC_in_DS
7760 <<
", DataSector = " << DataSector <<
", n1DeeSCEcna = " << n1DeeSCEcna
7761 <<
", n1SCEcha = " << n1SCEcha <<
", i0DeeEcha = " << i0DeeEcha << std::endl;
7765 if (DataSector != 0) {
7766 std::cout <<
"!TEcnaHistos::ViewHisto(...)> <EE> DataSector = " << DataSector
7767 <<
". OUT OF RANGE ( range = [1,9] " 7768 <<
", n1DeeSCEcna = " << n1DeeSCEcna <<
", n1SCEcha = " << n1SCEcha
7769 <<
", i0DeeEcha = " << i0DeeEcha << std::endl;
7774 std::cout <<
"!TEcnaHistos::ViewHisto(...)> <EE> n1DeeSCEcna = " << n1DeeSCEcna
7776 <<
", n1SCEcha = " << n1SCEcha <<
", i0DeeEcha = " << i0DeeEcha << std::endl;
7780 std::cout <<
"!TEcnaHistos::ViewHisto(...)> <EE> n1SCEcha = " << n1SCEcha
7782 <<
", i0DeeEcha = " << i0DeeEcha << std::endl;
7789 std::cout <<
"!TEcnaHistos::ViewHisto(...)> *ERROR* =====> " 7790 <<
" ok_view_histo != kTRUE " <<
fTTBELL << std::endl;
7796 std::cout <<
"!TEcnaHistos::ViewHisto(...)> *ERROR* =====> " 7797 <<
" ROOT file not found" <<
fTTBELL << std::endl;
7803 if ((
fFapStexNumber > 0) && (fFapStexNumber <= fEcal->MaxStexInStas())) {
7804 Bool_t OKFileExists = kFALSE;
7806 if (!(arg_AlreadyRead > 1)) {
7817 if (OKFileExists == kTRUE) {
7821 OKFileExists = kTRUE;
7824 if (OKFileExists == kTRUE)
7828 for (Int_t
i = 0;
i < SizeForPlot;
i++) {
7829 histo_for_plot[
i] = (Double_t)0;
7848 if (i_data_exist > 0) {
7852 std::cout <<
"!TEcnaHistos::ViewHisto(...)> *ERROR* =====> " 7853 <<
" ROOT file not found" <<
fTTBELL << std::endl;
7863 if ((HistoType ==
"Global" || HistoType ==
"Proj" || HistoType ==
"SampGlobal" || HistoType ==
"SampProj" ||
7864 HistoType ==
"H1Basic" || HistoType ==
"H1BasicProj") ||
7865 (!(HistoType ==
"Global" || HistoType ==
"Proj" || HistoType ==
"SampGlobal" || HistoType ==
"SampProj" ||
7866 HistoType ==
"H1Basic" || HistoType ==
"H1BasicProj") &&
7867 ((
fFapStexNumber > 0) && (fFapStexNumber <= fEcal->MaxStexInStas())))) {
7868 if (opt_plot !=
"ASCII") {
7872 if ((opt_plot ==
fOnlyOnePlot && (arg_AlreadyRead == 0 || arg_AlreadyRead == 1)) ||
7891 if (HistoType ==
"Proj" || HistoType ==
"SampProj" || HistoType ==
"H1BasicProj") {
7892 TString HistoCodi = HistoCode;
7894 if (HistoCode ==
"D_NOE_ChDs") {
7895 HistoCodi =
"D_NOE_ChNb";
7897 if (HistoCode ==
"D_Ped_ChDs") {
7898 HistoCodi =
"D_Ped_ChNb";
7900 if (HistoCode ==
"D_TNo_ChDs") {
7901 HistoCodi =
"D_TNo_ChNb";
7903 if (HistoCode ==
"D_MCs_ChDs") {
7904 HistoCodi =
"D_MCs_ChNb";
7906 if (HistoCode ==
"D_LFN_ChDs") {
7907 HistoCodi =
"D_LFN_ChNb";
7909 if (HistoCode ==
"D_HFN_ChDs") {
7910 HistoCodi =
"D_HFN_ChNb";
7912 if (HistoCode ==
"D_SCs_ChDs") {
7913 HistoCodi =
"D_SCs_ChNb";
7915 if (HistoCode ==
"D_MSp_SpDs") {
7916 HistoCodi =
"D_MSp_SpNb";
7918 if (HistoCode ==
"D_SSp_SpDs") {
7919 HistoCodi =
"D_SSp_SpNb";
7921 if (HistoCode ==
"D_Adc_EvDs") {
7922 HistoCodi =
"D_Adc_EvNb";
7925 TString TitleHisto =
";";
7942 if ((opt_plot ==
fOnlyOnePlot && (arg_AlreadyRead == 0 || arg_AlreadyRead == 1)) ||
7945 Double_t XinfProj = (Double_t)0;
7946 Double_t XsupProj = (Double_t)0;
7950 Int_t HisSiza =
GetHistoSize(HistoCodi.Data(),
"plot");
7951 Int_t ReadHisSiza = HisSiza;
7953 Axis_t xinf_hisa =
GetHistoXinf(HistoCodi.Data(), HisSiza, opt_plot);
7954 Axis_t xsup_hisa =
GetHistoXsup(HistoCodi.Data(), HisSiza, opt_plot);
7957 TH1D* h_hisa =
new TH1D(
"histoa", TitleHisto.Data(), nb_binxa, xinf_hisa, xsup_hisa);
7961 FillHisto(h_hisa, histo_for_plot, HistoCodi.Data(), ReadHisSiza);
7967 XinfProj = h_hisa->GetMinimum();
7970 XsupProj = h_hisa->GetMaximum();
8013 Double_t cXinf = (Double_t)0.;
8014 Double_t cXsup = (Double_t)0.;
8017 if (HistoType ==
"Proj" || HistoType ==
"SampProj" || HistoType ==
"H1BasicProj") {
8026 cXinf =
GetHistoXinf(HistoCode.Data(), SizeForPlot, opt_plot);
8027 cXsup =
GetHistoXsup(HistoCode.Data(), SizeForPlot, opt_plot);
8031 Axis_t xinf_his = cXinf;
8032 Axis_t xsup_his = cXsup;
8033 Int_t nb_binx = xNbBins;
8035 TString TitleHisto =
";";
8039 TH1D* h_his0 =
new TH1D(
"histo", TitleHisto.Data(), nb_binx, xinf_his, xsup_his);
8043 FillHisto(h_his0, histo_for_plot, HistoCode.Data(), SizeForPlot);
8052 if (HistoType !=
"Proj" && HistoType !=
"SampProj" && HistoType !=
"H1BasicProj") {
8070 if (ymin != (Double_t)0.) {
8087 if ((HistoType ==
"Proj" || HistoType ==
"SampProj" || HistoType ==
"H1BasicProj") &&
8122 xFlagAutoYsupMargin);
8135 std::cout <<
"!TEcnaHistos::ViewHisto(...)> Histo not available." <<
fTTBELL << std::endl;
8149 if (DeeNumber == 4) {
8150 if (DataSector >= 1) {
8152 if (DataSector >= 2) {
8155 if (DataSector >= 3) {
8158 if (DataSector >= 4) {
8161 if (DataSector >= 5) {
8165 if (DeeNumber == 3) {
8166 if (DataSector >= 5) {
8168 if (DataSector >= 6) {
8171 if (DataSector >= 7) {
8174 if (DataSector >= 8) {
8177 if (DataSector >= 9) {
8181 if (DeeNumber == 2) {
8182 if (DataSector <= 9) {
8184 if (DataSector <= 8) {
8187 if (DataSector <= 7) {
8190 if (DataSector <= 6) {
8193 if (DataSector <= 5) {
8197 if (DeeNumber == 1) {
8198 if (DataSector <= 5) {
8200 if (DataSector <= 4) {
8203 if (DataSector <= 3) {
8206 if (DataSector <= 2) {
8209 if (DataSector <= 1) {
8221 if (DeeNumber == 1 || DeeNumber == 3) {
8222 if (DataSector == 5) {
8225 if (DataSector != 5) {
8230 if (DeeNumber == 2 || DeeNumber == 4) {
8238 const Int_t& nSCCons,
8239 const Int_t& SC_in_DS,
8240 const Int_t& n1DeeSCEcna,
8241 const Int_t& n1SCEcha) {
8244 Int_t ModifiedSCEcha = -1;
8248 TString TypQuad =
"?";
8249 if (SCQuad ==
"top" && DeeDir ==
"right") {
8252 if (SCQuad ==
"top" && DeeDir ==
"left") {
8255 if (SCQuad ==
"bottom" && DeeDir ==
"left") {
8258 if (SCQuad ==
"bottom" && DeeDir ==
"right") {
8266 if ((SC_in_DS == 30 && n1DeeSCEcna == 60 && TypQuad ==
"TR") ||
8267 (SC_in_DS == 3 && n1DeeSCEcna == 138 && TypQuad ==
"TR")) {
8268 if (n1SCEcha > 15) {
8269 ModifiedSCEcha = n1SCEcha - 15;
8275 if ((SC_in_DS == 30 && n1DeeSCEcna == 60 && TypQuad ==
"TL") ||
8276 (SC_in_DS == 3 && n1DeeSCEcna == 138 && TypQuad ==
"TL")) {
8277 if (n1SCEcha == 4) {
8280 if (n1SCEcha == 5) {
8283 if (n1SCEcha == 9) {
8286 if (n1SCEcha == 10) {
8289 if (n1SCEcha == 14) {
8292 if (n1SCEcha == 15) {
8295 if (n1SCEcha == 19) {
8298 if (n1SCEcha == 20) {
8301 if (n1SCEcha == 24) {
8304 if (n1SCEcha == 25) {
8305 ModifiedSCEcha = 10;
8310 if (SC_in_DS == 30 && n1DeeSCEcna == 119 && TypQuad ==
"TR") {
8312 ModifiedSCEcha = n1SCEcha - 5;
8317 if (SC_in_DS == 30 && n1DeeSCEcna == 119 && TypQuad ==
"TL") {
8318 if (n1SCEcha == 4) {
8319 ModifiedSCEcha = 11;
8321 if (n1SCEcha == 5) {
8322 ModifiedSCEcha = 12;
8324 if (n1SCEcha == 9) {
8325 ModifiedSCEcha = 13;
8327 if (n1SCEcha == 10) {
8328 ModifiedSCEcha = 14;
8330 if (n1SCEcha == 14) {
8331 ModifiedSCEcha = 15;
8333 if (n1SCEcha == 15) {
8334 ModifiedSCEcha = 16;
8336 if (n1SCEcha == 19) {
8337 ModifiedSCEcha = 17;
8339 if (n1SCEcha == 20) {
8340 ModifiedSCEcha = 18;
8342 if (n1SCEcha == 24) {
8343 ModifiedSCEcha = 19;
8345 if (n1SCEcha == 25) {
8346 ModifiedSCEcha = 20;
8352 if (SC_in_DS == 12 && n1DeeSCEcna == 13 && TypQuad ==
"TR") {
8353 ModifiedSCEcha = n1SCEcha;
8355 if (SC_in_DS == 12 && n1DeeSCEcna == 13 && TypQuad ==
"TL") {
8356 if (n1SCEcha >= 1 && n1SCEcha <= 4) {
8357 ModifiedSCEcha = n1SCEcha;
8359 if (n1SCEcha >= 6 && n1SCEcha <= 9) {
8360 ModifiedSCEcha = n1SCEcha - 1;
8362 if (n1SCEcha >= 11 && n1SCEcha <= 14) {
8363 ModifiedSCEcha = n1SCEcha - 2;
8365 if (n1SCEcha >= 16 && n1SCEcha <= 19) {
8366 ModifiedSCEcha = n1SCEcha - 3;
8368 if (n1SCEcha >= 21 && n1SCEcha <= 24) {
8369 ModifiedSCEcha = n1SCEcha - 4;
8374 if (SC_in_DS == 25 && n1DeeSCEcna == 176 && TypQuad ==
"TR") {
8375 if (n1SCEcha == 4) {
8378 if (n1SCEcha == 5) {
8381 if (n1SCEcha == 9) {
8384 if (n1SCEcha == 10) {
8387 if (n1SCEcha == 14) {
8390 if (n1SCEcha == 15) {
8393 if (n1SCEcha == 19) {
8396 if (n1SCEcha == 20) {
8399 if (n1SCEcha == 24) {
8402 if (n1SCEcha == 25) {
8403 ModifiedSCEcha = 10;
8408 if (SC_in_DS == 25 && n1DeeSCEcna == 176 && TypQuad ==
"TL") {
8409 if (n1SCEcha == 16) {
8412 if (n1SCEcha == 21) {
8415 if (n1SCEcha == 17) {
8418 if (n1SCEcha == 22) {
8421 if (n1SCEcha == 18) {
8424 if (n1SCEcha == 23) {
8427 if (n1SCEcha == 19) {
8430 if (n1SCEcha == 24) {
8433 if (n1SCEcha == 20) {
8436 if (n1SCEcha == 25) {
8437 ModifiedSCEcha = 10;
8443 if ((SC_in_DS == 3 && n1DeeSCEcna == 157 && TypQuad ==
"TR") ||
8444 (SC_in_DS == 25 && n1DeeSCEcna == 193 && TypQuad ==
"TR")) {
8445 if (n1SCEcha == 4) {
8446 ModifiedSCEcha = 11;
8448 if (n1SCEcha == 5) {
8449 ModifiedSCEcha = 12;
8451 if (n1SCEcha == 9) {
8452 ModifiedSCEcha = 13;
8454 if (n1SCEcha == 10) {
8455 ModifiedSCEcha = 14;
8457 if (n1SCEcha == 14) {
8458 ModifiedSCEcha = 15;
8460 if (n1SCEcha == 15) {
8461 ModifiedSCEcha = 16;
8463 if (n1SCEcha == 19) {
8464 ModifiedSCEcha = 17;
8466 if (n1SCEcha == 20) {
8467 ModifiedSCEcha = 18;
8469 if (n1SCEcha == 24) {
8470 ModifiedSCEcha = 19;
8472 if (n1SCEcha == 25) {
8473 ModifiedSCEcha = 20;
8479 if ((SC_in_DS == 3 && n1DeeSCEcna == 157 && TypQuad ==
"TL") ||
8480 (SC_in_DS == 25 && n1DeeSCEcna == 193 && TypQuad ==
"TL")) {
8481 if (n1SCEcha == 16) {
8482 ModifiedSCEcha = 11;
8484 if (n1SCEcha == 21) {
8485 ModifiedSCEcha = 12;
8487 if (n1SCEcha == 17) {
8488 ModifiedSCEcha = 13;
8490 if (n1SCEcha == 22) {
8491 ModifiedSCEcha = 14;
8493 if (n1SCEcha == 18) {
8494 ModifiedSCEcha = 15;
8496 if (n1SCEcha == 23) {
8497 ModifiedSCEcha = 16;
8499 if (n1SCEcha == 19) {
8500 ModifiedSCEcha = 17;
8502 if (n1SCEcha == 24) {
8503 ModifiedSCEcha = 18;
8505 if (n1SCEcha == 20) {
8506 ModifiedSCEcha = 19;
8508 if (n1SCEcha == 25) {
8509 ModifiedSCEcha = 20;
8514 if (SC_in_DS == 32 && n1DeeSCEcna == 51 && TypQuad ==
"TR") {
8515 if (n1SCEcha >= 1 && n1SCEcha <= 4) {
8516 ModifiedSCEcha = n1SCEcha;
8518 if (n1SCEcha >= 6 && n1SCEcha <= 9) {
8519 ModifiedSCEcha = n1SCEcha - 1;
8521 if (n1SCEcha >= 11 && n1SCEcha <= 14) {
8522 ModifiedSCEcha = n1SCEcha - 2;
8524 if (n1SCEcha >= 16 && n1SCEcha <= 19) {
8525 ModifiedSCEcha = n1SCEcha - 3;
8527 if (n1SCEcha >= 21 && n1SCEcha <= 24) {
8528 ModifiedSCEcha = n1SCEcha - 4;
8533 if (SC_in_DS == 32 && n1DeeSCEcna == 51 && TypQuad ==
"TL") {
8534 ModifiedSCEcha = n1SCEcha;
8545 if (n1DeeSCEcna == 32 && TypQuad ==
"TR") {
8546 if (nSCCons == 207) {
8547 if (n1SCEcha == 1) {
8548 ModifiedSCEcha = 21;
8550 if (n1SCEcha == 2) {
8551 ModifiedSCEcha = 22;
8553 if (n1SCEcha == 3) {
8554 ModifiedSCEcha = 23;
8556 if (n1SCEcha == 6) {
8557 ModifiedSCEcha = 24;
8559 if (n1SCEcha == 7) {
8560 ModifiedSCEcha = 25;
8563 if (nSCCons == 178) {
8564 if (n1SCEcha == 11) {
8565 ModifiedSCEcha = 21;
8577 if (n1DeeSCEcna == 32 && TypQuad ==
"TL") {
8578 if (nSCCons == 58) {
8579 if (n1SCEcha == 1) {
8580 ModifiedSCEcha = 21;
8582 if (n1SCEcha == 2) {
8583 ModifiedSCEcha = 22;
8585 if (n1SCEcha == 3) {
8586 ModifiedSCEcha = 23;
8588 if (n1SCEcha == 6) {
8589 ModifiedSCEcha = 24;
8591 if (n1SCEcha == 7) {
8592 ModifiedSCEcha = 25;
8595 if (nSCCons == 29) {
8596 if (n1SCEcha == 11) {
8597 ModifiedSCEcha = 21;
8613 if (n1DeeSCEcna == 29 && TypQuad ==
"BR") {
8614 if (nSCCons == 261) {
8615 if (n1SCEcha == 1) {
8616 ModifiedSCEcha = 21;
8618 if (n1SCEcha == 2) {
8619 ModifiedSCEcha = 22;
8621 if (n1SCEcha == 3) {
8622 ModifiedSCEcha = 23;
8624 if (n1SCEcha == 6) {
8625 ModifiedSCEcha = 24;
8627 if (n1SCEcha == 7) {
8628 ModifiedSCEcha = 25;
8631 if (nSCCons == 268) {
8632 if (n1SCEcha == 11) {
8633 ModifiedSCEcha = 21;
8645 if (n1DeeSCEcna == 29 && TypQuad ==
"BL") {
8646 if (nSCCons == 119) {
8647 if (n1SCEcha == 11) {
8648 ModifiedSCEcha = 21;
8651 if (nSCCons == 112) {
8652 if (n1SCEcha == 1) {
8653 ModifiedSCEcha = 21;
8655 if (n1SCEcha == 2) {
8656 ModifiedSCEcha = 22;
8658 if (n1SCEcha == 3) {
8659 ModifiedSCEcha = 23;
8661 if (n1SCEcha == 6) {
8662 ModifiedSCEcha = 24;
8664 if (n1SCEcha == 7) {
8665 ModifiedSCEcha = 25;
8674 if ((SC_in_DS == 34 && n1DeeSCEcna == 188 && TypQuad ==
"BR") ||
8675 (SC_in_DS == 14 && n1DeeSCEcna == 165 && TypQuad ==
"BR")) {
8676 if (n1SCEcha > 15) {
8677 ModifiedSCEcha = n1SCEcha - 15;
8683 if ((SC_in_DS == 34 && n1DeeSCEcna == 188 && TypQuad ==
"BL") ||
8684 (SC_in_DS == 14 && n1DeeSCEcna == 165 && TypQuad ==
"BL")) {
8685 if (n1SCEcha == 4) {
8688 if (n1SCEcha == 5) {
8691 if (n1SCEcha == 9) {
8694 if (n1SCEcha == 10) {
8697 if (n1SCEcha == 14) {
8700 if (n1SCEcha == 15) {
8703 if (n1SCEcha == 19) {
8706 if (n1SCEcha == 20) {
8709 if (n1SCEcha == 24) {
8712 if (n1SCEcha == 25) {
8713 ModifiedSCEcha = 10;
8718 if (SC_in_DS == 10 && n1DeeSCEcna == 50 && TypQuad ==
"BR") {
8719 ModifiedSCEcha = n1SCEcha;
8723 if (SC_in_DS == 10 && n1DeeSCEcna == 50 && TypQuad ==
"BL") {
8724 if (n1SCEcha >= 1 && n1SCEcha <= 4) {
8725 ModifiedSCEcha = n1SCEcha;
8727 if (n1SCEcha >= 6 && n1SCEcha <= 9) {
8728 ModifiedSCEcha = n1SCEcha - 1;
8730 if (n1SCEcha >= 11 && n1SCEcha <= 14) {
8731 ModifiedSCEcha = n1SCEcha - 2;
8733 if (n1SCEcha >= 16 && n1SCEcha <= 19) {
8734 ModifiedSCEcha = n1SCEcha - 3;
8736 if (n1SCEcha >= 21 && n1SCEcha <= 24) {
8737 ModifiedSCEcha = n1SCEcha - 4;
8742 if (SC_in_DS == 14 && n1DeeSCEcna == 144 && TypQuad ==
"BR") {
8744 ModifiedSCEcha = n1SCEcha - 5;
8749 if (SC_in_DS == 14 && n1DeeSCEcna == 144 && TypQuad ==
"BL") {
8750 if (n1SCEcha == 4) {
8751 ModifiedSCEcha = 11;
8753 if (n1SCEcha == 5) {
8754 ModifiedSCEcha = 12;
8756 if (n1SCEcha == 9) {
8757 ModifiedSCEcha = 13;
8759 if (n1SCEcha == 10) {
8760 ModifiedSCEcha = 14;
8762 if (n1SCEcha == 14) {
8763 ModifiedSCEcha = 15;
8765 if (n1SCEcha == 15) {
8766 ModifiedSCEcha = 16;
8768 if (n1SCEcha == 19) {
8769 ModifiedSCEcha = 17;
8771 if (n1SCEcha == 20) {
8772 ModifiedSCEcha = 18;
8774 if (n1SCEcha == 24) {
8775 ModifiedSCEcha = 19;
8777 if (n1SCEcha == 25) {
8778 ModifiedSCEcha = 20;
8784 if ((SC_in_DS == 21 && n1DeeSCEcna == 123 && TypQuad ==
"BR") ||
8785 (SC_in_DS == 20 && n1DeeSCEcna == 41 && TypQuad ==
"BR")) {
8786 if (n1SCEcha == 4) {
8789 if (n1SCEcha == 5) {
8792 if (n1SCEcha == 9) {
8795 if (n1SCEcha == 10) {
8798 if (n1SCEcha == 14) {
8801 if (n1SCEcha == 15) {
8804 if (n1SCEcha == 19) {
8807 if (n1SCEcha == 20) {
8810 if (n1SCEcha == 24) {
8813 if (n1SCEcha == 25) {
8814 ModifiedSCEcha = 10;
8820 if ((SC_in_DS == 21 && n1DeeSCEcna == 123 && TypQuad ==
"BL") ||
8821 (SC_in_DS == 3 && n1DeeSCEcna == 41 && TypQuad ==
"BL")) {
8822 if (n1SCEcha > 15) {
8823 ModifiedSCEcha = n1SCEcha - 15;
8828 if (SC_in_DS == 21 && n1DeeSCEcna == 102 && TypQuad ==
"BR") {
8829 if (n1SCEcha == 4) {
8830 ModifiedSCEcha = 11;
8832 if (n1SCEcha == 5) {
8833 ModifiedSCEcha = 12;
8835 if (n1SCEcha == 9) {
8836 ModifiedSCEcha = 13;
8838 if (n1SCEcha == 10) {
8839 ModifiedSCEcha = 14;
8841 if (n1SCEcha == 14) {
8842 ModifiedSCEcha = 15;
8844 if (n1SCEcha == 15) {
8845 ModifiedSCEcha = 16;
8847 if (n1SCEcha == 19) {
8848 ModifiedSCEcha = 17;
8850 if (n1SCEcha == 20) {
8851 ModifiedSCEcha = 18;
8853 if (n1SCEcha == 24) {
8854 ModifiedSCEcha = 19;
8856 if (n1SCEcha == 25) {
8857 ModifiedSCEcha = 20;
8862 if (SC_in_DS == 21 && n1DeeSCEcna == 102 && TypQuad ==
"BL") {
8863 if (n1SCEcha == 16) {
8864 ModifiedSCEcha = 11;
8866 if (n1SCEcha == 21) {
8867 ModifiedSCEcha = 12;
8869 if (n1SCEcha == 17) {
8870 ModifiedSCEcha = 13;
8872 if (n1SCEcha == 22) {
8873 ModifiedSCEcha = 14;
8875 if (n1SCEcha == 18) {
8876 ModifiedSCEcha = 15;
8878 if (n1SCEcha == 23) {
8879 ModifiedSCEcha = 16;
8881 if (n1SCEcha == 19) {
8882 ModifiedSCEcha = 17;
8884 if (n1SCEcha == 24) {
8885 ModifiedSCEcha = 18;
8887 if (n1SCEcha == 20) {
8888 ModifiedSCEcha = 19;
8890 if (n1SCEcha == 25) {
8891 ModifiedSCEcha = 20;
8896 if (SC_in_DS == 23 && n1DeeSCEcna == 8 && TypQuad ==
"BR") {
8897 if (n1SCEcha >= 1 && n1SCEcha <= 4) {
8898 ModifiedSCEcha = n1SCEcha;
8900 if (n1SCEcha >= 6 && n1SCEcha <= 9) {
8901 ModifiedSCEcha = n1SCEcha - 1;
8903 if (n1SCEcha >= 11 && n1SCEcha <= 14) {
8904 ModifiedSCEcha = n1SCEcha - 2;
8906 if (n1SCEcha >= 16 && n1SCEcha <= 19) {
8907 ModifiedSCEcha = n1SCEcha - 3;
8909 if (n1SCEcha >= 21 && n1SCEcha <= 24) {
8910 ModifiedSCEcha = n1SCEcha - 4;
8915 if (SC_in_DS == 6 && n1DeeSCEcna == 8 && TypQuad ==
"BL") {
8916 ModifiedSCEcha = n1SCEcha;
8921 std::cout <<
"! *** ERROR *** > ModifiedSCEcha = " << ModifiedSCEcha <<
", SC_in_DS = " << SC_in_DS
8922 <<
", nSCCons = " << nSCCons <<
", n1DeeSCEcna = " << n1DeeSCEcna <<
", n1SCEcha = " << n1SCEcha
8923 <<
", ModifiedSCEcha = " << ModifiedSCEcha <<
", TypQuad = " << TypQuad <<
fTTBELL << std::endl;
8926 return ModifiedSCEcha;
8942 const Int_t& StexStin_A,
8943 const Int_t& i0StinEcha,
8944 const TString& HistoCode,
8945 const TString& opt_plot_arg) {
8948 TString opt_plot = opt_plot_arg;
8951 if (opt_plot_arg ==
"ONLYONE") {
8954 if (opt_plot_arg ==
"SEVERAL") {
8957 if (opt_plot_arg ==
"SAMEONE") {
8964 Int_t xCanvasExists = 1;
8966 TVirtualPad* main_subpad =
nullptr;
8968 main_subpad =
ActivePad(HistoCode.Data(), opt_plot.Data());
8969 if (main_subpad ==
nullptr) {
8970 std::cout <<
"*TEcnaHistos::ViewHistime(...)> WARNING ===> Canvas has been closed in option SAME or SAME n." 8972 <<
" Please, restart with a new canvas." <<
fTTBELL << std::endl;
8981 Int_t SameXVarMemo = 1;
8982 if (!(HistoType ==
"Proj" || HistoType ==
"SampProj" || HistoType ==
"H1BasicProj" || HistoType ==
"EvolProj")) {
8995 if (XVarHisto != XVariableMemo) {
8996 std::cout <<
"!TEcnaHistos::ViewHistime(...)> *** ERROR *** ===> X coordinate changed in option SAME n." 8998 <<
" Present X = " << XVarHisto << std::endl
8999 <<
" Present Y = " << YVarHisto << std::endl
9000 <<
" Previous X = " << XVariableMemo << std::endl
9001 <<
" Previous Y = " << YVariableMemo <<
fTTBELL << std::endl;
9011 Int_t SameYVarMemo = 1;
9012 if (HistoType ==
"Proj" || HistoType ==
"SampProj" || HistoType ==
"H1BasicProj" || HistoType ==
"EvolProj") {
9025 if (YVarHisto != YVariableMemo) {
9026 std::cout <<
"!TEcnaHistos::ViewHistime(...)> *** ERROR *** ===> Y coordinate changed in option SAME n." 9028 <<
" Present X = " << XVarHisto << std::endl
9029 <<
" Present Y = " << YVarHisto << std::endl
9030 <<
" Previous X = " << XVariableMemo << std::endl
9031 <<
" Previous Y = " << YVariableMemo <<
fTTBELL << std::endl;
9039 if (xCanvasExists == 1 && SameXVarMemo == 1 && SameYVarMemo == 1) {
9065 if (nb_of_runs_in_list > 0) {
9068 Double_t margin_frame_xaxis = (Double_t)25.;
9070 Double_t thstart_evol = (Double_t)0.;
9071 Double_t thstop_evol = (Double_t)0.;
9073 Int_t* exist_indic =
new Int_t[nb_of_runs_in_list];
9087 for (Int_t i_run = 0; i_run < nb_of_runs_in_list; i_run++) {
9088 exist_indic[i_run] = 0;
9127 exist_indic[i_run] = 1;
9133 std::cout <<
"!TEcnaHistos::ViewHistime(...)> *ERROR* =====> " 9134 <<
" ROOT file not found for run " << fT1DRunNumber[i_run] <<
fTTBELL << std::endl
9142 Int_t i_existing_run = (Int_t)0;
9144 for (Int_t i_run = 0; i_run < nb_of_runs_in_list; i_run++) {
9145 if (exist_indic[i_run] == 1) {
9156 Double_t xinf_lim = thstart_evol - (thstop_evol - thstart_evol) / margin_frame_xaxis;
9157 Double_t xsup_lim = thstop_evol + (thstop_evol - thstart_evol) / margin_frame_xaxis;
9159 Axis_t xinf_his = (Axis_t)(xinf_lim);
9160 Axis_t xsup_his = (Axis_t)(xsup_lim);
9174 time_coordx[i_run] = (Double_t)(-1);
9175 hval_coordy[i_run] = (Double_t)(-1);
9205 if (ok_view_histo == kTRUE) {
9208 Double_t thstart = (Double_t)xStartTime;
9209 time_coordx[i_run] = (Double_t)(thstart - xinf_lim);
9213 read_histo(
i) = (Double_t)0.;
9216 if (HistoCode ==
"H_Ped_Date" || HistoCode ==
"H_Ped_RuDs") {
9219 if (HistoCode ==
"H_TNo_Date" || HistoCode ==
"H_TNo_RuDs") {
9222 if (HistoCode ==
"H_MCs_Date" || HistoCode ==
"H_MCs_RuDs") {
9226 if (HistoCode ==
"H_LFN_Date" || HistoCode ==
"H_LFN_RuDs") {
9229 if (HistoCode ==
"H_HFN_Date" || HistoCode ==
"H_HFN_RuDs") {
9232 if (HistoCode ==
"H_SCs_Date" || HistoCode ==
"H_SCs_RuDs") {
9235 hval_coordy[i_run] = (Double_t)read_histo(i0StexEcha);
9237 std::cout <<
"!TEcnaHistos::ViewHistime(...)> Histo not available. " <<
fTTBELL << std::endl;
9264 TGraph* g_graph0 =
new TGraph(fNbOfExistingRuns, time_coordx, hval_coordy);
9270 g_graph0->SetTitle(
";");
9286 g_graph0->Set(fNbOfExistingRuns);
9291 if (HistoType ==
"Evol") {
9350 xFlagAutoYsupMargin);
9375 if (HistoType ==
"EvolProj") {
9377 TVectorD histo_for_plot(HisSizeEvolProj);
9378 for (Int_t
i = 0;
i < HisSizeEvolProj;
i++) {
9379 histo_for_plot[
i] = (Double_t)0.;
9385 TString HistoCodi = HistoCode;
9387 if (HistoCode ==
"H_Ped_RuDs") {
9388 HistoCodi =
"H_Ped_Date";
9390 if (HistoCode ==
"H_TNo_RuDs") {
9391 HistoCodi =
"H_TNo_Date";
9393 if (HistoCode ==
"H_LFN_RuDs") {
9394 HistoCodi =
"H_LFN_Date";
9396 if (HistoCode ==
"H_HFN_RuDs") {
9397 HistoCodi =
"H_HFN_Date";
9399 if (HistoCode ==
"H_MCs_RuDs") {
9400 HistoCodi =
"H_MCs_Date";
9402 if (HistoCode ==
"H_SCs_RuDs") {
9403 HistoCodi =
"H_SCs_Date";
9421 Double_t XinfProj = (Double_t)0;
9422 Double_t XsupProj = (Double_t)0;
9466 Double_t cXinf = (Double_t)0.;
9467 Double_t cXsup = (Double_t)0.;
9478 if (cXinf >= cXsup) {
9484 Axis_t xinf_his = cXinf;
9485 Axis_t xsup_his = cXsup;
9487 TString TitleHisto =
";";
9494 Double_t XFromYGraph = hval_coordy[i_run];
9495 Double_t binXProjY = (Double_t)HisSizeEvolProj * (XFromYGraph - cXinf) / (cXsup - cXinf);
9496 Int_t ibinXProjY = (Int_t)binXProjY;
9497 if (ibinXProjY >= 0 && ibinXProjY < HisSizeEvolProj) {
9498 histo_for_plot[ibinXProjY]++;
9502 TH1D* h_his_evol_proj =
new TH1D(
"histevolproj", TitleHisto.Data(), HisSizeEvolProj, xinf_his, xsup_his);
9505 h_his_evol_proj->Reset();
9508 for (Int_t
i = 0;
i < HisSizeEvolProj;
i++) {
9509 Double_t yi = (Double_t)
i / (Double_t)HisSizeEvolProj * (cXsup - cXinf) + cXinf;
9510 Double_t his_val = (Double_t)histo_for_plot[
i];
9511 h_his_evol_proj->Fill(yi, his_val);
9562 Int_t arg_AlreadyRead = 0;
9577 xFlagAutoYsupMargin);
9579 h_his_evol_proj->Delete();
9580 h_his_evol_proj =
nullptr;
9587 delete[] time_coordx;
9588 time_coordx =
nullptr;
9590 delete[] hval_coordy;
9591 hval_coordy =
nullptr;
9594 std::cout <<
"!TEcnaHistos::ViewHistime(...)> The list of runs in file: " << list_of_run_file_name <<
" has " 9595 << nb_of_runs_in_list <<
" run numbers" << std::endl
9596 <<
" but none of them correspond to an existing ROOT file." <<
fTTBELL << std::endl;
9607 delete[] exist_indic;
9608 exist_indic =
nullptr;
9612 if (nb_of_runs_in_list == 0) {
9613 std::cout <<
"!TEcnaHistos::ViewHistime(...)> The list of runs in file: " << list_of_run_file_name
9614 <<
" is empty !" <<
fTTBELL << std::endl;
9616 if (nb_of_runs_in_list < 0) {
9617 std::cout <<
"!TEcnaHistos::ViewHistime(...)> " << list_of_run_file_name
9655 Int_t nb_of_runs_in_list = 0;
9658 if (!strcmp(list_of_run_file_name.Data(),
"\0")) {
9659 std::cout <<
"!TEcnaHistos::GetHistoryRunListParameters(...)> *** ERROR *** =====> " 9660 <<
" EMPTY STRING for list of run file name." <<
fTTBELL << std::endl;
9663 if (HistoCode ==
"H_Ped_Date") {
9666 if (HistoCode ==
"H_TNo_Date") {
9669 if (HistoCode ==
"H_MCs_Date") {
9672 if (HistoCode ==
"H_LFN_Date") {
9675 if (HistoCode ==
"H_HFN_Date") {
9678 if (HistoCode ==
"H_SCs_Date") {
9682 if (HistoCode ==
"H_Ped_RuDs") {
9685 if (HistoCode ==
"H_TNo_RuDs") {
9688 if (HistoCode ==
"H_MCs_RuDs") {
9691 if (HistoCode ==
"H_LFN_RuDs") {
9694 if (HistoCode ==
"H_HFN_RuDs") {
9697 if (HistoCode ==
"H_SCs_RuDs") {
9704 TString xFileNameRunList = list_of_run_file_name.Data();
9705 const Text_t* t_file_name = (
const Text_t*)xFileNameRunList.Data();
9712 TString home_path = gSystem->Getenv(
"HOME");
9719 xFileNameRunList.Append(
'/');
9720 xFileNameRunList.Append(t_file_name);
9722 fFcin_f.open(xFileNameRunList.Data());
9725 if (
fFcin_f.fail() == kFALSE) {
9731 Int_t list_size_read = 0;
9743 fFcin_f.seekg(0, std::ios::beg);
9785 std::cout <<
"TEcnaHistos::GetHistoryRunListParameters(...)> Max number of runs in HistoryRunList = " 9786 <<
fFapMaxNbOfRuns <<
" too large, forced to parameter TEcnaParHistos->fMaxNbOfRunsInLists value (= " 9797 std::cout <<
"!TEcnaHistos::GetHistoryRunListParameters(...)> *** ERROR *** =====> fFapMaxNbOfRuns = " 9810 for (Int_t i_list = 0; i_list <
fFapNbOfRuns; i_list++) {
9819 std::cout <<
"!TEcnaHistos::GetHistoryRunListParameters(...)> *** ERROR *** =====> " << xFileNameRunList.Data()
9820 <<
" : file not found." <<
fTTBELL << std::endl;
9821 nb_of_runs_in_list = -1;
9824 return nb_of_runs_in_list;
9835 if (HistoCode ==
"H_Ped_Date") {
9838 if (HistoCode ==
"H_TNo_Date") {
9841 if (HistoCode ==
"H_MCs_Date") {
9844 if (HistoCode ==
"H_LFN_Date") {
9847 if (HistoCode ==
"H_HFN_Date") {
9850 if (HistoCode ==
"H_SCs_Date") {
9853 if (HistoCode ==
"H_Ped_RuDs") {
9856 if (HistoCode ==
"H_TNo_RuDs") {
9859 if (HistoCode ==
"H_MCs_RuDs") {
9862 if (HistoCode ==
"H_LFN_RuDs") {
9865 if (HistoCode ==
"H_HFN_RuDs") {
9868 if (HistoCode ==
"H_SCs_RuDs") {
9880 if (xArgIndexRun >= 0 && xArgIndexRun < MaxNbOfRuns) {
9882 if (xArgIndexRun == 0) {
9886 std::cout <<
"!TEcnaHistos::SetRunNumberFromList(...)> **** ERROR **** Run index out of range in list of runs. " 9888 << xArgIndexRun <<
" (MaxNbOfRuns = " << MaxNbOfRuns <<
")" << std::endl;
9917 const Int_t& StexStin_A,
9918 const Int_t& i0StinEcha,
9919 const Int_t& i0Sample,
9920 const TString& HistoCode) {
9923 Bool_t ok_view_histo = kFALSE;
9931 vStin(
i) = (Double_t)0.;
9935 if (aMyRootFile->
DataExist() == kTRUE) {
9940 if (vStin(index_Stin) == StexStin_A) {
9948 if (!(HistoType ==
"Global" || HistoType ==
"Proj")) {
9950 Int_t StinNumber = StexStin_A;
9954 std::cout <<
"!TEcnaHistos::GetOkViewHisto(...)> *ERROR* =====> " 9955 <<
"File: " << root_file_name <<
", " <<
fFapStinName.Data() <<
" " << StinNumber
9956 <<
" not found. Available numbers = ";
9975 Int_t ok_max_elt = 1;
9977 if ((((HistoType ==
"H1Basic") || (HistoType ==
"Evol") || (HistoType ==
"EvolProj")) && (i0StinEcha >= 0) &&
9978 (i0StinEcha < fEcal->MaxCrysInStin()) && (i0Sample >= 0) && (i0Sample <
fFapNbOfSamples)) ||
9979 !((HistoType ==
"H1Basic") || (HistoType ==
"Evol") || (HistoType ==
"EvolProj"))) {
9986 if (((HistoType ==
"H1Basic") || (HistoType ==
"Evol") || (HistoType ==
"EvolProj")) &&
9987 !((i0StinEcha >= 0) && (i0StinEcha < fEcal->MaxCrysInStin()))) {
9988 std::cout <<
"!TEcnaHistos::GetOkViewHisto(...)> *ERROR* =====> " 9989 <<
"File: " << root_file_name <<
". Wrong channel number. Value = " << i0StinEcha
9990 <<
" (required range: [" << Choffset <<
", " <<
fEcal->
MaxCrysInStin() - 1 + Choffset <<
"] )" 9993 if ((HistoCode ==
"D_Adc_EvDs" || HistoCode ==
"D_Adc_EvNb") &&
9995 std::cout <<
"!TEcnaHistos::GetOkViewHisto(...)> *ERROR* =====> " 9996 <<
"File: " << root_file_name <<
". Wrong sample index. Value = " << i0Sample
10002 if ((ok_view == 1) && (ok_max_elt == 1)) {
10003 ok_view_histo = kTRUE;
10005 std::cout <<
"!TEcnaHistos::GetOkViewHisto(...)> At least one ERROR has been detected. ok_view = " << ok_view
10006 <<
", ok_max_elt = " << ok_max_elt <<
fTTBELL << std::endl;
10011 std::cout <<
"!TEcnaHistos::GetOkViewHisto(...)> No data in ROOT file " 10012 <<
", aMyRootFile->DataExist() = " << aMyRootFile->
DataExist() <<
fTTBELL << std::endl;
10014 return ok_view_histo;
10027 Int_t xFlagAutoYsupMargin = 1;
10029 if (HistoCode ==
"D_NOE_ChNb") {
10031 xFlagAutoYsupMargin = 0;
10037 if (HistoCode ==
"D_NOE_ChDs") {
10039 xFlagAutoYsupMargin = 0;
10045 if (HistoCode ==
"D_Ped_ChNb") {
10047 xFlagAutoYsupMargin = 0;
10053 if (HistoCode ==
"D_Ped_ChDs") {
10055 xFlagAutoYsupMargin = 0;
10061 if (HistoCode ==
"D_TNo_ChNb") {
10063 xFlagAutoYsupMargin = 0;
10069 if (HistoCode ==
"D_TNo_ChDs") {
10071 xFlagAutoYsupMargin = 0;
10077 if (HistoCode ==
"D_MCs_ChNb") {
10079 xFlagAutoYsupMargin = 0;
10085 if (HistoCode ==
"D_MCs_ChDs") {
10087 xFlagAutoYsupMargin = 0;
10093 if (HistoCode ==
"D_LFN_ChNb") {
10095 xFlagAutoYsupMargin = 0;
10101 if (HistoCode ==
"D_LFN_ChDs") {
10103 xFlagAutoYsupMargin = 0;
10109 if (HistoCode ==
"D_HFN_ChNb") {
10111 xFlagAutoYsupMargin = 0;
10117 if (HistoCode ==
"D_HFN_ChDs") {
10119 xFlagAutoYsupMargin = 0;
10125 if (HistoCode ==
"D_SCs_ChNb") {
10127 xFlagAutoYsupMargin = 0;
10133 if (HistoCode ==
"D_SCs_ChDs") {
10135 xFlagAutoYsupMargin = 0;
10141 if (HistoCode ==
"D_MSp_SpNb") {
10143 xFlagAutoYsupMargin = 0;
10149 if (HistoCode ==
"D_MSp_SpDs") {
10151 xFlagAutoYsupMargin = 0;
10157 if (HistoCode ==
"D_SSp_SpNb") {
10159 xFlagAutoYsupMargin = 0;
10165 if (HistoCode ==
"D_SSp_SpDs") {
10167 xFlagAutoYsupMargin = 0;
10173 if (HistoCode ==
"D_Adc_EvNb") {
10175 xFlagAutoYsupMargin = 0;
10181 if (HistoCode ==
"D_Adc_EvDs") {
10183 xFlagAutoYsupMargin = 0;
10189 if (HistoCode ==
"H2CorccInStins") {
10191 xFlagAutoYsupMargin = 0;
10197 if (HistoCode ==
"H2LFccMosMatrix") {
10199 xFlagAutoYsupMargin = 0;
10205 if (HistoCode ==
"H2HFccMosMatrix") {
10207 xFlagAutoYsupMargin = 0;
10213 if (HistoCode ==
"H_Ped_RuDs") {
10215 xFlagAutoYsupMargin = 0;
10221 if (HistoCode ==
"H_TNo_RuDs") {
10223 xFlagAutoYsupMargin = 0;
10229 if (HistoCode ==
"H_MCs_RuDs") {
10231 xFlagAutoYsupMargin = 0;
10237 if (HistoCode ==
"H_LFN_RuDs") {
10239 xFlagAutoYsupMargin = 0;
10245 if (HistoCode ==
"H_HFN_RuDs") {
10247 xFlagAutoYsupMargin = 0;
10253 if (HistoCode ==
"H_SCs_RuDs") {
10255 xFlagAutoYsupMargin = 0;
10261 return xFlagAutoYsupMargin;
10267 Int_t xFlagAutoYsupMargin = 1;
10269 if (HistoCode ==
"H_Ped_Date") {
10271 xFlagAutoYsupMargin = 0;
10277 if (HistoCode ==
"H_TNo_Date") {
10279 xFlagAutoYsupMargin = 0;
10285 if (HistoCode ==
"H_MCs_Date") {
10287 xFlagAutoYsupMargin = 0;
10293 if (HistoCode ==
"H_LFN_Date") {
10295 xFlagAutoYsupMargin = 0;
10301 if (HistoCode ==
"H_HFN_Date") {
10303 xFlagAutoYsupMargin = 0;
10309 if (HistoCode ==
"H_SCs_Date") {
10311 xFlagAutoYsupMargin = 0;
10317 return xFlagAutoYsupMargin;
10323 Double_t minproj = h_his0->GetMinimum();
10324 Double_t maxproj = h_his0->GetMaximum();
10325 minproj = minproj - (maxproj - minproj) * margin_factor;
10331 Double_t minproj = h_his0->GetMinimum();
10332 Double_t maxproj = h_his0->GetMaximum();
10333 maxproj = maxproj + (maxproj - minproj) * margin_factor;
10339 Double_t graph_ymin = g_graph0->GetY()[0];
10340 for (Int_t
i = 1;
i < g_graph0->GetN();
i++) {
10341 if (g_graph0->GetY()[
i] < graph_ymin) {
10342 graph_ymin = g_graph0->GetY()[
i];
10346 Double_t graph_ymax = g_graph0->GetY()[0];
10347 for (Int_t
i = 1;
i < g_graph0->GetN();
i++) {
10348 if (g_graph0->GetY()[
i] > graph_ymax) {
10349 graph_ymax = g_graph0->GetY()[
i];
10353 graph_ymin = graph_ymin - (graph_ymax - graph_ymin) * margin_factor;
10358 Double_t graph_ymin = g_graph0->GetY()[0];
10359 for (Int_t
i = 1;
i < g_graph0->GetN();
i++) {
10360 if (g_graph0->GetY()[
i] < graph_ymin) {
10361 graph_ymin = g_graph0->GetY()[
i];
10365 Double_t graph_ymax = g_graph0->GetY()[0];
10366 for (Int_t
i = 1;
i < g_graph0->GetN();
i++) {
10367 if (g_graph0->GetY()[
i] > graph_ymax) {
10368 graph_ymax = g_graph0->GetY()[
i];
10372 graph_ymax = graph_ymax + (graph_ymax - graph_ymin) * margin_factor;
10378 const Int_t& HisSize,
10379 const Axis_t& xinf_his,
10380 const Axis_t& xsup_his,
10381 const TString& HistoCode,
10383 const Int_t& StexStin_A,
10384 const Int_t& i0StinEcha,
10385 const Int_t& i0Sample,
10386 const Int_t& opt_scale_x,
10387 const Int_t& opt_scale_y,
10388 const TString& opt_plot,
10389 const Int_t& arg_AlreadyRead,
10390 const Int_t& xFlagAutoYsupMargin) {
10396 TString QuantityName =
" ";
10400 if (arg_AlreadyRead == 0 || arg_AlreadyRead == 1) {
10403 SetAllPavesViewHisto(HistoCode.Data(), StexStin_A, i0StinEcha, i0Sample, opt_plot.Data(), arg_AlreadyRead);
10408 HistoCode.Data(), opt_scale_x, opt_scale_y, opt_plot.Data(), arg_AlreadyRead, StexStin_A, i0StinEcha, i0Sample);
10410 TCanvas* MainCanvas =
nullptr;
10412 if (opt_plot ==
fOnlyOnePlot && (arg_AlreadyRead == 0 || arg_AlreadyRead == 1)) {
10413 MainCanvas =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
10421 if (
GetMemoFlag(HistoCode, opt_plot) ==
"Free") {
10422 MainCanvas =
CreateCanvas(HistoCode, opt_plot, canvas_name, canv_w, canv_h);
10432 Int_t Stex_StinCons = StexStin_A;
10433 Int_t n1StexCrys = i0StinEcha + 1;
10435 if (StexStin_A >= 1 && StexStin_A <= fEcal->MaxStinEcnaInStex()) {
10455 TVirtualPad* main_subpad =
nullptr;
10456 TPaveText* main_pavtxt =
nullptr;
10458 Int_t xMemoPlotSame = 1;
10462 if (arg_AlreadyRead == 0 || arg_AlreadyRead == 1) {
10468 if (!(HistoType ==
"Global" || HistoType ==
"Proj")) {
10473 if (HistoType ==
"EvolProj") {
10487 Double_t x_margin = x_low;
10488 Double_t y_margin = y_low;
10489 MainCanvas->Divide(1, 1, x_margin, y_margin, fond_pad);
10493 main_subpad = gPad;
10494 main_subpad->SetPad(x_low, y_low, x_up, y_up);
10498 if (arg_AlreadyRead > 1) {
10507 if (
GetMemoFlag(HistoCode, opt_plot) ==
"Free") {
10514 main_pavtxt =
ActivePavTxt(HistoCode.Data(), opt_plot.Data());
10524 Float_t cTextPaveSize = 0.025;
10525 if (HistoType ==
"H1Basic" || HistoType ==
"SampProj" || HistoType ==
"H1BasicProj" || HistoType ==
"Proj" ||
10526 HistoType ==
"EvolProj") {
10527 cTextPaveSize = 0.025;
10529 main_pavtxt->SetTextSize(cTextPaveSize);
10534 TString DecalStexName =
"";
10536 DecalStexName =
" ";
10538 TString DecalStinName =
"";
10540 DecalStinName =
" ";
10543 TString sStexOrStasName =
"";
10545 sStexOrStasName =
" ";
10552 if (HistoType ==
"SampGlobal") {
10554 "Analysis Samp RUN# (run type ) Evts range Nb Evts %s%s %s%s %s %s Sample",
10555 DecalStexName.Data(),
10556 sStexOrStasName.Data(),
10557 DecalStinName.Data(),
10562 if (HistoType ==
"SampProj") {
10564 "Analysis Samp RUN# (run type ) Evts range Nb Evts %s%s %s%s %s %s Sample",
10565 DecalStexName.Data(),
10566 sStexOrStasName.Data(),
10567 DecalStinName.Data(),
10572 if (HistoType ==
"H1Basic" || HistoType ==
"H1BasicProj") {
10574 "Analysis Samp RUN# (run type ) Evts range Nb Evts %s%s %s%s %s %s",
10575 DecalStexName.Data(),
10576 sStexOrStasName.Data(),
10577 DecalStinName.Data(),
10582 if ((HistoType ==
"Global") || (HistoType ==
"Proj")) {
10584 "Analysis Samp RUN# (run type ) Evts range Nb Evts %s%s",
10585 DecalStexName.Data(),
10586 sStexOrStasName.Data());
10589 if (HistoType ==
"EvolProj") {
10591 "Analysis Samp Evts range Nb Evts %s%s %s%s %s %s",
10592 DecalStexName.Data(),
10593 sStexOrStasName.Data(),
10594 DecalStinName.Data(),
10601 TText* ttit = main_pavtxt->AddText(f_in);
10608 if ((HistoType ==
"Global") || (HistoType ==
"Proj") || (HistoType ==
"H1BasicProj")) {
10610 "%-10s 1-%2d%7d (%-20s) %5d-%5d %7d %4s %-25s",
10618 sFapStexNumber.Data(),
10619 QuantityName.Data());
10622 if (HistoType ==
"EvolProj") {
10624 "%-10s 1-%2d %5d-%5d %7d %5s%6d%7d%7d %-25s",
10630 sFapStexNumber.Data(),
10634 QuantityName.Data());
10641 Int_t kSample = i0Sample + 1;
10643 if (HistoType ==
"SampGlobal") {
10645 "%-10s 1-%2d%7d (%-20s) %5d-%5d %7d %4s%6d%5d%5d%6d",
10653 sFapStexNumber.Data(),
10659 if (HistoType ==
"SampProj") {
10661 "%-10s 1-%2d%7d (%-20s) %5d-%5d %7d %4s%6d%5d%5d%6d",
10669 sFapStexNumber.Data(),
10675 if (HistoType ==
"H1Basic" || HistoType ==
"H1BasicProj") {
10677 "%-10s 1-%2d%7d (%-20s) %5d-%5d %7d %4s%6d%5d%5d",
10685 sFapStexNumber.Data(),
10690 if ((HistoType ==
"Global") || (HistoType ==
"Proj")) {
10692 "%-10s 1-%2d%7d (%-20s) %5d-%5d %7d %4s",
10700 sFapStexNumber.Data());
10703 if (HistoType ==
"EvolProj") {
10705 "%-10s 1-%2d %5d-%5d %7d %4s%7d%5d%5d",
10711 sFapStexNumber.Data(),
10718 TText*
tt = main_pavtxt->AddText(f_in);
10722 main_pavtxt->Draw();
10724 if (HistoType ==
"EvolProj") {
10741 if (
GetMemoFlag(HistoCode, opt_plot) ==
"Busy") {
10744 main_pavtxt =
ActivePavTxt(HistoCode.Data(), opt_plot.Data());
10747 main_subpad =
ActivePad(HistoCode.Data(), opt_plot.Data());
10760 if (main_subpad !=
nullptr) {
10763 if (xMemoPlotSame != 0) {
10768 Float_t cTextPaveSize = 0.025;
10769 if (HistoType ==
"H1Basic" || HistoType ==
"SampProj" || HistoType ==
"Proj" || HistoType ==
"EvolProj" ||
10770 HistoType ==
"H1BasicProj") {
10771 cTextPaveSize = 0.025;
10773 main_pavtxt->SetTextSize(cTextPaveSize);
10778 if ((HistoType ==
"Global") || (HistoType ==
"Proj")) {
10780 "%-10s 1-%2d%7d (%-20s) %5d-%5d %7d %4s %-25s",
10788 sFapStexNumber.Data(),
10789 QuantityName.Data());
10792 if (HistoType ==
"EvolProj") {
10794 "%-10s 1-%2d %5d-%5d %7d %5s%6d%7d%7d %-25s",
10800 sFapStexNumber.Data(),
10804 QuantityName.Data());
10809 Int_t kSample = i0Sample + 1;
10811 if (HistoType ==
"SampGlobal") {
10813 "%-10s 1-%2d%7d (%-20s) %5d-%5d %7d %4s%6d%5d%5d%6d",
10821 sFapStexNumber.Data(),
10827 if (HistoType ==
"SampProj") {
10829 "%-10s 1-%2d%7d (%-20s) %5d-%5d %7d %4s%6d%5d%5d%6d",
10837 sFapStexNumber.Data(),
10843 if (HistoType ==
"H1Basic" || HistoType ==
"H1BasicProj") {
10845 "%-10s 1-%2d%7d (%-20s) %5d-%5d %7d %4s%6d%5d%5d",
10853 sFapStexNumber.Data(),
10858 if ((HistoType ==
"Global") || (HistoType ==
"Proj")) {
10860 "%-10s 1-%2d%7d (%-20s) %5d-%5d %7d %4s",
10868 sFapStexNumber.Data());
10871 if (HistoType ==
"EvolProj") {
10873 "%-10s 1-%2d %5d-%5d %7d %4s%7d%5d%5d",
10879 sFapStexNumber.Data(),
10886 TText*
tt = main_pavtxt->AddText(f_in);
10889 gStyle->SetOptDate(0);
10890 main_pavtxt->Draw();
10898 if (opt_plot ==
fSameOnePlot && HistoType ==
"EvolProj") {
10901 main_subpad->SetPad(x_low, y_low, x_up, y_up);
10910 h_his0->GetXaxis()->SetTitle(axis_x_var_name);
10911 h_his0->GetYaxis()->SetTitle(axis_y_var_name);
10913 Int_t lin_scale = 0;
10914 Int_t log_scale = 1;
10917 gPad->SetLogx(lin_scale);
10920 gPad->SetLogx(log_scale);
10923 gPad->SetLogy(lin_scale);
10926 gPad->SetLogy(log_scale);
10930 if (opt_plot ==
fOnlyOnePlot && arg_AlreadyRead == 0) {
10931 h_his0->DrawCopy();
10933 if (opt_plot ==
fOnlyOnePlot && arg_AlreadyRead == 1) {
10934 h_his0->DrawCopy();
10936 if (opt_plot ==
fOnlyOnePlot && arg_AlreadyRead > 1) {
10937 h_his0->DrawCopy(
"AHSAME");
10941 if (xMemoPlotSame == 0) {
10942 h_his0->DrawCopy();
10944 if (xMemoPlotSame != 0) {
10945 h_his0->DrawCopy(
"SAME");
10951 if (!(HistoCode ==
"D_Adc_EvDs" || HistoCode ==
"D_Adc_EvNb" || HistoType ==
"Proj" || HistoType ==
"SampProj" ||
10952 HistoType ==
"EvolProj" || HistoType ==
"H1BasicProj") &&
10953 !(HistoType ==
"H1Basic" && arg_AlreadyRead == 0)) {
10954 Double_t yinf = h_his0->GetMinimum();
10955 Double_t ysup = h_his0->GetMaximum();
10956 if (yinf <= (Double_t)0. && ysup >= (Double_t)0.) {
10957 TLine* lin =
new TLine(0., 0., (Double_t)HisSize, 0.);
10964 Double_t yinf = (Double_t)h_his0->GetMinimum();
10965 Double_t ysup = (Double_t)h_his0->GetMaximum();
10967 if (xFlagAutoYsupMargin == 1) {
10968 if (yinf >= ysup) {
10969 yinf = (Double_t)0.;
10972 Double_t MaxMarginFactor = (Double_t)0.05;
10973 ysup += (ysup - yinf) * MaxMarginFactor;
10982 Int_t DeeOffset = 0;
10983 for (Int_t n1Dee = 1; n1Dee <= 4; n1Dee++) {
10997 Double_t ydee = ysup + (ysup - yinf) / (Double_t)15.;
10999 sprintf(f_in,
"D%d", n1Dee);
11000 TText* text_Dee =
new TText(xBinDee, ydee, f_in);
11002 text_Dee->SetTextColor(coul_DS);
11003 text_Dee->SetTextSize((Double_t)0.04);
11004 text_Dee->Draw(
"SAME");
11006 Double_t DSLabelOffset = (Double_t)12;
11008 for (Int_t
i = 1;
i < 5;
i++) {
11024 TLine* lin_DS =
new TLine(xBinDS, yinf, xBinDS, ysup);
11026 lin_DS->SetLineColor(coul_DS);
11027 lin_DS->SetLineWidth(1);
11028 lin_DS->SetLineStyle(2);
11031 if (n1Dee == 2 &&
i == 4) {
11032 TLine* lin_DSp =
new TLine(DeeOffset, yinf, DeeOffset, ysup);
11034 lin_DSp->SetLineColor(coul_DS);
11035 lin_DSp->SetLineWidth(1);
11036 lin_DSp->SetLineStyle(2);
11040 Double_t yds = ysup + (ysup - yinf) / (Double_t)50.;
11041 Double_t xBinDSp = xBinDS + DSLabelOffset;
11044 sprintf(f_in,
"S%d", nDS);
11045 TText* text_DS =
new TText(xBinDSp, yds, f_in);
11047 text_DS->SetTextColor(coul_DS);
11048 text_DS->SetTextSize((Double_t)0.03);
11049 text_DS->Draw(
"SAME");
11050 if ((n1Dee == 4 &&
i == 1) || (n1Dee == 2 &&
i == 4)) {
11057 sprintf(f_in,
"S%d", nDS);
11058 TText* text_DS =
new TText(xBinDS - 1.75 * DSLabelOffset, yds, f_in);
11060 text_DS->SetTextColor(coul_DS);
11061 text_DS->SetTextSize((Double_t)0.03);
11062 text_DS->Draw(
"SAME");
11070 if (HistoType ==
"Global") {
11071 Double_t ytext = yinf - (ysup - yinf) / 8.5;
11074 for (Int_t
i = 1;
i < 5;
i++) {
11090 TLine* lin_DS =
new TLine(xBinDS, yinf, xBinDS, ysup);
11092 lin_DS->SetLineColor(coul_DS);
11093 lin_DS->SetLineWidth(2);
11094 lin_DS->SetLineStyle(2);
11096 Double_t ytextds = ysup + (ysup - yinf) / 30.;
11098 sprintf(f_in,
"S%d", iDS);
11099 TText* text_DS =
new TText(xBinDSNumber, ytextds, f_in);
11101 text_DS->SetTextColor(coul_DS);
11102 text_DS->SetTextSize((Double_t)0.04);
11103 text_DS->Draw(
"SAME");
11113 sprintf(f_in,
"S%d", iDSp);
11115 TText* text_DSp =
new TText(xBinpDSNumber, ytextds, f_in);
11117 text_DSp->SetTextColor(coul_DS);
11118 text_DSp->SetTextSize((Double_t)0.04);
11119 text_DSp->Draw(
"SAME");
11144 TLine* lin_notconnected =
new TLine(xBinNotConnectedSC, yinf, xBinNotConnectedSC, ysup);
11146 lin_notconnected->SetLineColor(coul_notconnected);
11147 lin_notconnected->SetLineStyle(3);
11148 lin_notconnected->Draw();
11151 TLine* lin_notconnected_end =
new TLine(xBinNotConnectedSCEnd, yinf, xBinNotConnectedSCEnd, ysup);
11153 lin_notconnected_end->SetLineColor(coul_notconnected);
11154 lin_notconnected_end->SetLineStyle(3);
11155 lin_notconnected_end->Draw();
11159 TText* text_SC_NotConnected =
new TText(xBinNotConnectedSC, ytext, f_in);
11161 text_SC_NotConnected->SetTextAngle((Double_t)45.);
11162 text_SC_NotConnected->SetTextColor(coul_notconnected);
11163 text_SC_NotConnected->SetTextFont(42);
11164 text_SC_NotConnected->SetTextSize((Double_t)0.03);
11165 text_SC_NotConnected->Draw(
"SAME");
11187 TLine* lin_notcomplete =
new TLine(xBinNotCompleteSC, yinf, xBinNotCompleteSC, ysup);
11189 lin_notcomplete->SetLineColor(coul_notcomplete);
11190 lin_notcomplete->SetLineStyle(3);
11191 lin_notcomplete->Draw();
11195 TLine* lin_notcomplete_end =
new TLine(xBinNotCompleteSCEnd, yinf, xBinNotCompleteSCEnd, ysup);
11197 lin_notcomplete_end->SetLineColor(coul_notcomplete);
11198 lin_notcomplete_end->SetLineStyle(3);
11199 lin_notcomplete_end->Draw();
11203 TText* text_SC_NotComplete =
new TText(xBinNotCompleteSC, ytext, f_in);
11205 text_SC_NotComplete->SetTextAngle((Double_t)45.);
11206 text_SC_NotComplete->SetTextColor(coul_notcomplete);
11207 text_SC_NotComplete->SetTextFont(42);
11208 text_SC_NotComplete->SetTextSize((Double_t)0.03);
11209 text_SC_NotComplete->Draw(
"SAME");
11225 if (HistoType ==
"Global") {
11262 TopAxisForHistos(h_his0, opt_plot, xMemoPlotSame, min_value, max_value, xFlagAutoYsupMargin, HisSize);
11265 if (!((HistoType ==
"H1Basic" || HistoType ==
"H1BasicProj") &&
11266 (arg_AlreadyRead > 1 && arg_AlreadyRead < fEcal->MaxCrysInStin()))) {
11271 std::cout <<
"*TEcnaHistos::HistoPlot(...)> Canvas not found. Previously closed in option SAME." <<
fTTBELL 11286 TString sFapStexNumber =
"?";
11287 if (StexNumber == -1) {
11288 sFapStexNumber =
" -1";
11290 if (StexNumber == -2) {
11291 sFapStexNumber =
" -2";
11293 if (StexNumber == -3) {
11294 sFapStexNumber =
" -3";
11296 if (StexNumber == -4) {
11297 sFapStexNumber =
" -4";
11299 if (StexNumber == -5) {
11300 sFapStexNumber =
" -5";
11302 if (StexNumber == -6) {
11303 sFapStexNumber =
" -6";
11305 if (StexNumber == -7) {
11306 sFapStexNumber =
" -7";
11308 if (StexNumber == -8) {
11309 sFapStexNumber =
" -8";
11311 if (StexNumber == -9) {
11312 sFapStexNumber =
" -9";
11314 if (StexNumber == -10) {
11315 sFapStexNumber =
"-10";
11317 if (StexNumber == -11) {
11318 sFapStexNumber =
"-11";
11320 if (StexNumber == -12) {
11321 sFapStexNumber =
"-12";
11323 if (StexNumber == -13) {
11324 sFapStexNumber =
"-13";
11326 if (StexNumber == -14) {
11327 sFapStexNumber =
"-14";
11329 if (StexNumber == -15) {
11330 sFapStexNumber =
"-15";
11332 if (StexNumber == -16) {
11333 sFapStexNumber =
"-16";
11335 if (StexNumber == -17) {
11336 sFapStexNumber =
"-17";
11338 if (StexNumber == -18) {
11339 sFapStexNumber =
"-18";
11341 if (StexNumber == 0) {
11344 if (StexNumber == 1) {
11345 sFapStexNumber =
" 1";
11347 if (StexNumber == 2) {
11348 sFapStexNumber =
" 2";
11350 if (StexNumber == 3) {
11351 sFapStexNumber =
" 3";
11353 if (StexNumber == 4) {
11354 sFapStexNumber =
" 4";
11356 if (StexNumber == 5) {
11357 sFapStexNumber =
" 5";
11359 if (StexNumber == 6) {
11360 sFapStexNumber =
" 6";
11362 if (StexNumber == 7) {
11363 sFapStexNumber =
" 7";
11365 if (StexNumber == 8) {
11366 sFapStexNumber =
" 8";
11368 if (StexNumber == 9) {
11369 sFapStexNumber =
" 9";
11371 if (StexNumber == 10) {
11372 sFapStexNumber =
" 10";
11374 if (StexNumber == 11) {
11375 sFapStexNumber =
" 11";
11377 if (StexNumber == 12) {
11378 sFapStexNumber =
" 12";
11380 if (StexNumber == 13) {
11381 sFapStexNumber =
" 13";
11383 if (StexNumber == 14) {
11384 sFapStexNumber =
" 14";
11386 if (StexNumber == 15) {
11387 sFapStexNumber =
" 15";
11389 if (StexNumber == 16) {
11390 sFapStexNumber =
" 16";
11392 if (StexNumber == 17) {
11393 sFapStexNumber =
" 17";
11395 if (StexNumber == 18) {
11396 sFapStexNumber =
" 18";
11398 if (StexNumber == 19) {
11399 sFapStexNumber =
" -1";
11401 if (StexNumber == 20) {
11402 sFapStexNumber =
" -2";
11404 if (StexNumber == 21) {
11405 sFapStexNumber =
" -3";
11407 if (StexNumber == 22) {
11408 sFapStexNumber =
" -4";
11410 if (StexNumber == 23) {
11411 sFapStexNumber =
" -5";
11413 if (StexNumber == 24) {
11414 sFapStexNumber =
" -6";
11416 if (StexNumber == 25) {
11417 sFapStexNumber =
" -7";
11419 if (StexNumber == 26) {
11420 sFapStexNumber =
" -8";
11422 if (StexNumber == 27) {
11423 sFapStexNumber =
" -9";
11425 if (StexNumber == 28) {
11426 sFapStexNumber =
"-10";
11428 if (StexNumber == 29) {
11429 sFapStexNumber =
"-11";
11431 if (StexNumber == 30) {
11432 sFapStexNumber =
"-12";
11434 if (StexNumber == 31) {
11435 sFapStexNumber =
"-13";
11437 if (StexNumber == 32) {
11438 sFapStexNumber =
"-14";
11440 if (StexNumber == 33) {
11441 sFapStexNumber =
"-15";
11443 if (StexNumber == 34) {
11444 sFapStexNumber =
"-16";
11446 if (StexNumber == 35) {
11447 sFapStexNumber =
"-17";
11449 if (StexNumber == 36) {
11450 sFapStexNumber =
"-18";
11452 return sFapStexNumber;
11459 Double_t xbin = (Double_t)(-1);
11515 Double_t xbin = (Double_t)(-1);
11549 Int_t SCForCons = 0;
11717 const TString& HistoCode,
11719 const Int_t& StexStin_A,
11720 const Int_t& i0StinEcha,
11721 const Int_t& i0Sample,
11722 const Int_t& opt_scale_x,
11723 const Int_t& opt_scale_y,
11724 const TString& opt_plot,
11725 const Int_t& xFlagAutoYsupMargin) {
11737 Int_t arg_AlreadyRead = 0;
11739 HistoCode.Data(), opt_scale_x, opt_scale_y, opt_plot, arg_AlreadyRead, StexStin_A, i0StinEcha, i0Sample);
11743 TCanvas* MainCanvas =
nullptr;
11746 MainCanvas =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
11754 if (
GetMemoFlag(HistoCode, opt_plot) ==
"Free") {
11755 MainCanvas =
CreateCanvas(HistoCode, opt_plot, canvas_name, canv_w, canv_h);
11763 if (
GetMemoFlag(HistoCode, opt_plot) ==
"Free") {
11764 MainCanvas =
CreateCanvas(HistoCode, opt_plot, canvas_name, canv_w, canv_h);
11774 Int_t Stex_StinCons = StexStin_A;
11775 Int_t n1StexCrys = i0StinEcha + 1;
11777 if (StexStin_A >= 1 && StexStin_A <= fEcal->MaxStinEcnaInStex()) {
11797 TVirtualPad* main_subpad =
nullptr;
11798 TPaveText* main_pavtxt =
nullptr;
11800 Int_t xMemoPlotSame = 1;
11812 if (!(HistoType ==
"Global" || HistoType ==
"Proj")) {
11824 Double_t x_margin = x_low;
11825 Double_t y_margin = y_low;
11829 MainCanvas->Divide(1, 1, x_margin, y_margin, fond_pad);
11833 main_subpad = gPad;
11834 main_subpad->SetPad(x_low, y_low, x_up, y_up);
11840 if (
GetMemoFlag(HistoCode, opt_plot) ==
"Free") {
11848 if (!(HistoType ==
"Global" || HistoType ==
"Proj" || HistoCode ==
"H_Ped_Date" || HistoCode ==
"H_TNo_Date" ||
11849 HistoCode ==
"H_MCs_Date" || HistoCode ==
"H_LFN_Date" || HistoCode ==
"H_HFN_Date" ||
11850 HistoCode ==
"H_SCs_Date")) {
11855 if (!(HistoCode ==
"H_Ped_Date" || HistoCode ==
"H_TNo_Date" || HistoCode ==
"H_MCs_Date" ||
11856 HistoCode ==
"H_LFN_Date" || HistoCode ==
"H_HFN_Date" || HistoCode ==
"H_SCs_Date")) {
11865 main_pavtxt =
ActivePavTxt(HistoCode.Data(), opt_plot.Data());
11875 TString DecalStexName =
"";
11877 DecalStexName =
" ";
11879 TString DecalStinName =
"";
11881 DecalStinName =
" ";
11884 TString sStexOrStasName =
"";
11886 sStexOrStasName =
" ";
11895 "Analysis Samp Evts range Nb Evts %s%s %s%s %s %s",
11896 DecalStexName.Data(),
11897 sStexOrStasName.Data(),
11898 DecalStinName.Data(),
11905 "Analysis Samp Evts range Nb Evts %s%s %s%s %s %s",
11906 DecalStexName.Data(),
11907 sStexOrStasName.Data(),
11908 DecalStinName.Data(),
11915 TText* ttit = main_pavtxt->AddText(f_in);
11920 "%-10s 1-%2d %5d-%5d %7d %5s%6d%7d%6d",
11926 sFapStexNumber.Data(),
11933 "%-10s 1-%2d %5d-%5d %7d %5s%6d%7d%6d %-25s",
11939 sFapStexNumber.Data(),
11943 QuantityName.Data());
11946 TText*
tt = main_pavtxt->AddText(f_in);
11950 main_pavtxt->Draw();
11965 if (
GetMemoFlag(HistoCode, opt_plot) ==
"Busy") {
11968 main_pavtxt =
ActivePavTxt(HistoCode.Data(), opt_plot.Data());
11971 main_subpad =
ActivePad(HistoCode.Data(), opt_plot.Data());
11984 if (main_subpad !=
nullptr) {
11986 if (xMemoPlotSame != 0) {
11996 "%-10s 1-%2d %5d-%5d %7d %5s%6d%7d%6d",
12002 sFapStexNumber.Data(),
12009 "%-10s 1-%2d %5d-%5d %7d %5s%6d%7d%6d %-25s",
12015 sFapStexNumber.Data(),
12019 QuantityName.Data());
12022 TText*
tt = main_pavtxt->AddText(f_in);
12025 gStyle->SetOptDate(0);
12026 main_pavtxt->Draw();
12036 main_subpad->SetPad(x_low, y_low, x_up, y_up);
12045 g_graph0->GetXaxis()->SetTitle(axis_x_var_name);
12046 g_graph0->GetYaxis()->SetTitle(axis_y_var_name);
12049 g_graph0->GetXaxis()->SetTimeDisplay(1);
12050 g_graph0->GetXaxis()->SetTimeFormat(
"%d %b-%Hh");
12052 g_graph0->GetXaxis()->SetTimeOffset(xinf);
12061 fXinf = (Double_t)xinf;
12062 fXsup = (Double_t)xsup;
12070 gPad->SetLogy(logy);
12071 g_graph0->Draw(
"ALP");
12075 gPad->SetLogy(liny);
12076 g_graph0->Draw(
"ALP");
12077 Int_t nb_pts = g_graph0->GetN();
12078 Double_t* coord_x = g_graph0->GetX();
12079 Double_t* coord_y = g_graph0->GetY();
12084 Double_t interv_displayed = (coord_x[nb_pts - 1] - coord_x[0]) / (Double_t)nb_displayed;
12085 Double_t last_drawn_coordx = coord_x[0] - 1.5 * interv_displayed;
12087 for (Int_t i_run = 0; i_run < nb_pts; i_run++) {
12088 if ((coord_x[i_run] - last_drawn_coordx) > interv_displayed) {
12089 Double_t joinYinf =
fYinf;
12090 Double_t joinYsup =
fYsup;
12091 if (joinYsup <= joinYinf) {
12094 joinYsup = joinYsup + (joinYsup - joinYinf) / 20.;
12098 TText* text_run_num =
new TText(coord_x[i_run], joinYsup, f_in);
12100 text_run_num->SetTextAngle((Double_t)45.);
12101 text_run_num->SetTextSize((Double_t)0.035);
12102 text_run_num->Draw(
"SAME");
12106 jointlign =
new TLine(coord_x[i_run], joinYsup, coord_x[i_run], coord_y[i_run]);
12108 jointlign->SetLineWidth(1);
12109 jointlign->SetLineStyle(2);
12110 jointlign->Draw(
"SAME");
12113 last_drawn_coordx = coord_x[i_run];
12118 gPad->SetLogy(logy);
12119 g_graph0->Draw(
"ALP");
12125 if (xMemoPlotSame == 0) {
12127 gPad->SetLogy(liny);
12130 gPad->SetLogy(logy);
12132 g_graph0->Draw(
"ALP");
12134 fXinf = (Double_t)xinf;
12135 fXsup = (Double_t)xsup;
12142 if (xMemoPlotSame != 0)
12145 gPad->SetLogy(liny);
12148 gPad->SetLogy(logy);
12151 g_graph0->Draw(
"LP");
12157 std::cout <<
"*TEcnaHistos::HistimePlot(...)> Canvas not found. Previously closed in option SAME." <<
fTTBELL 12170 const TString& opt_plot,
12171 const Int_t& xMemoPlotSame,
12174 const Int_t& xFlagAutoYsupMargin,
12175 const Int_t& HisSize) {
12179 ((opt_plot ==
fSameOnePlot) && (xMemoPlotSame == 0))) {
12180 Double_t Maxih = (Double_t)h_his0->GetMaximum();
12181 Double_t Minih = (Double_t)h_his0->GetMinimum();
12183 if (xFlagAutoYsupMargin == 1) {
12184 if (Minih >= Maxih) {
12185 Minih = (Double_t)0.;
12188 Double_t MaxMarginFactor = (Double_t)0.05;
12189 Maxih += (Maxih - Minih) * MaxMarginFactor;
12193 Double_t v_max = max_value + (Double_t)1.;
12194 Double_t v_min_p = v_min + (Double_t)1.;
12195 Double_t v_max_p = v_max + (Double_t)1.;
12197 Int_t ndiv = 50207;
12198 TString
opt =
"B-";
12199 Double_t Xbegin = 0.;
12200 Double_t Xend = (Double_t)HisSize;
12201 Double_t ticks = 0.05;
12208 Xbegin = (Double_t)HisSize;
12216 v_max = max_value + 0.5;
12217 Xbegin = (Double_t)HisSize;
12222 v_min = min_value + 0.5;
12223 v_max = max_value + 1.;
12224 Xbegin = (Double_t)HisSize;
12229 v_min = min_value + 0.5;
12230 v_max = max_value + 1.;
12232 Xend = (Double_t)HisSize;
12237 v_max = max_value + 0.5;
12239 Xend = (Double_t)HisSize;
12247 TGaxis* top_axis_x =
nullptr;
12249 top_axis_x =
new TGaxis(Xbegin, Maxih, Xend, Maxih, v_min, v_max, ndiv, opt, 0.);
12252 top_axis_x->SetTickSize(ticks);
12253 top_axis_x->SetTitleOffset((Float_t)(1.2));
12254 top_axis_x->SetLabelOffset((Float_t)(0.005));
12256 TString x_var_name =
"?";
12260 x_var_name =
"Tower number";
12269 x_var_name =
"SM number";
12275 top_axis_x->SetTitle(x_var_name);
12276 top_axis_x->Draw(
"SAME");
12291 TGaxis* top_axis_x_bis =
nullptr;
12292 top_axis_x_bis =
new TGaxis(Xbegin, Maxih, Xend, Maxih, v_min_p, v_max_p, ndiv, opt, 0.);
12294 top_axis_x_bis->SetTickSize(0.);
12295 Float_t lab_siz_x = top_axis_x->GetLabelSize();
12296 top_axis_x_bis->SetLabelSize(lab_siz_x);
12297 top_axis_x_bis->SetLabelOffset(-0.1);
12299 top_axis_x_bis->SetLabelOffset((Float_t)(9999.));
12304 top_axis_x_bis->Draw(
"SAME");
12311 const Int_t& StexStin_A,
12312 const Int_t& StexStin_B,
12313 const Int_t& i0StinEcha) {
12370 if (chopt ==
"Numbering") {
12388 TString opt_pave_nbcol =
"OneCol";
12390 opt_pave_nbcol =
"TwoCol";
12416 const Int_t& StexStin_A,
12417 const Int_t& i0StinEcha,
12418 const Int_t& i0Sample,
12419 const TString& opt_plot) {
12420 Int_t arg_AlreadyRead = 0;
12425 const Int_t& StexStin_A,
12426 const Int_t& i0StinEcha,
12427 const Int_t& i0Sample,
12428 const TString& opt_plot,
12429 const Int_t& arg_AlreadyRead) {
12439 if (!(HistoCode ==
"D_NOE_ChNb" || HistoCode ==
"D_NOE_ChDs" || HistoCode ==
"D_Ped_ChNb" ||
12440 HistoCode ==
"D_Ped_ChDs" || HistoCode ==
"D_LFN_ChNb" || HistoCode ==
"D_LFN_ChDs" ||
12441 HistoCode ==
"D_TNo_ChNb" || HistoCode ==
"D_TNo_ChDs" || HistoCode ==
"D_HFN_ChNb" ||
12442 HistoCode ==
"D_HFN_ChDs" || HistoCode ==
"D_MCs_ChNb" || HistoCode ==
"D_MCs_ChDs" ||
12443 HistoCode ==
"D_SCs_ChNb" || HistoCode ==
"D_SCs_ChDs")) {
12447 if (HistoCode ==
"D_NOE_ChNb" || HistoCode ==
"D_Ped_ChNb" || HistoCode ==
"D_TNo_ChNb" ||
12448 HistoCode ==
"D_MCs_ChNb" || HistoCode ==
"D_LFN_ChNb" || HistoCode ==
"D_HFN_ChNb" ||
12449 HistoCode ==
"D_SCs_ChNb") {
12457 if (HistoCode ==
"H_Ped_Date" || HistoCode ==
"H_TNo_Date" || HistoCode ==
"H_MCs_Date" ||
12458 HistoCode ==
"H_LFN_Date" || HistoCode ==
"H_HFN_Date" || HistoCode ==
"H_SCs_Date" ||
12459 HistoCode ==
"H_Ped_RuDs" || HistoCode ==
"H_TNo_RuDs" || HistoCode ==
"H_MCs_RuDs" ||
12460 HistoCode ==
"H_LFN_RuDs" || HistoCode ==
"H_HFN_RuDs" || HistoCode ==
"H_SCs_RuDs") {
12465 if (HistoCode ==
"D_MSp_SpNb" || HistoCode ==
"D_SSp_SpNb" || HistoCode ==
"D_MSp_SpDs" ||
12466 HistoCode ==
"D_SSp_SpDs") {
12472 if (HistoCode ==
"D_Adc_EvDs" || HistoCode ==
"D_Adc_EvNb") {
12477 if (HistoCode ==
"H_Ped_Date" || HistoCode ==
"H_TNo_Date" || HistoCode ==
"H_MCs_Date" ||
12478 HistoCode ==
"H_LFN_Date" || HistoCode ==
"H_HFN_Date" || HistoCode ==
"H_SCs_Date" ||
12479 HistoCode ==
"H_Ped_RuDs" || HistoCode ==
"H_TNo_RuDs" || HistoCode ==
"H_MCs_RuDs" ||
12480 HistoCode ==
"H_LFN_RuDs" || HistoCode ==
"H_HFN_RuDs" || HistoCode ==
"H_SCs_RuDs") {
12495 if (HistoCode ==
"H_Ped_Date" || HistoCode ==
"H_TNo_Date" || HistoCode ==
"H_MCs_Date" ||
12496 HistoCode ==
"H_LFN_Date" || HistoCode ==
"H_HFN_Date" || HistoCode ==
"H_SCs_Date" ||
12497 HistoCode ==
"H_Ped_RuDs" || HistoCode ==
"H_TNo_RuDs" || HistoCode ==
"H_MCs_RuDs" ||
12498 HistoCode ==
"H_LFN_RuDs" || HistoCode ==
"H_HFN_RuDs" || HistoCode ==
"H_SCs_RuDs") {
12516 const Int_t& opt_scale_x,
12517 const Int_t& opt_scale_y,
12518 const TString& opt_plot,
12519 const Int_t& arg_AlreadyRead,
12520 const Int_t& StexStin_A,
12521 const Int_t& i0StinEcha,
12522 const Int_t& i0Sample) {
12526 TString canvas_name;
12533 TString name_opt_plot;
12535 name_opt_plot =
"?";
12542 sprintf(f_in,
"P%d", arg_AlreadyRead);
12543 name_opt_plot = f_in;
12547 name_opt_plot =
"SAME_N";
12549 Int_t name_same = -1;
12551 if (HistoCode ==
"D_NOE_ChNb") {
12554 if (HistoCode ==
"D_NOE_ChDs") {
12557 if (HistoCode ==
"D_Ped_ChNb") {
12560 if (HistoCode ==
"D_Ped_ChDs") {
12563 if (HistoCode ==
"D_TNo_ChNb") {
12566 if (HistoCode ==
"D_TNo_ChDs") {
12569 if (HistoCode ==
"D_MCs_ChNb") {
12572 if (HistoCode ==
"D_MCs_ChDs") {
12575 if (HistoCode ==
"D_LFN_ChNb") {
12578 if (HistoCode ==
"D_LFN_ChDs") {
12581 if (HistoCode ==
"D_HFN_ChNb") {
12584 if (HistoCode ==
"D_HFN_ChDs") {
12587 if (HistoCode ==
"D_SCs_ChNb") {
12590 if (HistoCode ==
"D_SCs_ChDs") {
12593 if (HistoCode ==
"D_MSp_SpNb") {
12596 if (HistoCode ==
"D_MSp_SpDs") {
12599 if (HistoCode ==
"D_SSp_SpNb") {
12602 if (HistoCode ==
"D_SSp_SpDs") {
12605 if (HistoCode ==
"D_Adc_EvDs") {
12608 if (HistoCode ==
"D_Adc_EvNb") {
12611 if (HistoCode ==
"H_Ped_Date") {
12614 if (HistoCode ==
"H_TNo_Date") {
12617 if (HistoCode ==
"H_MCs_Date") {
12620 if (HistoCode ==
"H_LFN_Date") {
12623 if (HistoCode ==
"H_HFN_Date") {
12626 if (HistoCode ==
"H_SCs_Date") {
12629 if (HistoCode ==
"H_Ped_RuDs") {
12632 if (HistoCode ==
"H_TNo_RuDs") {
12635 if (HistoCode ==
"H_MCs_RuDs") {
12638 if (HistoCode ==
"H_LFN_RuDs") {
12641 if (HistoCode ==
"H_HFN_RuDs") {
12644 if (HistoCode ==
"H_SCs_RuDs") {
12648 sprintf(f_in,
"%d", name_same);
12649 TString s_name_same = f_in;
12650 const Text_t* t_name_same = (
const Text_t*)s_name_same.Data();
12651 name_opt_plot.Append(t_name_same);
12654 name_opt_plot =
"SAME_Plus_N";
12657 sprintf(f_in,
"%d", name_same);
12658 TString s_name_same = f_in;
12659 const Text_t* t_name_same = (
const Text_t*)s_name_same.Data();
12660 name_opt_plot.Append(t_name_same);
12670 name_line =
"Line_";
12673 name_line =
"Polm_";
12679 const Text_t* t_line = (
const Text_t*)name_line.Data();
12680 name_visu.Append(t_line);
12682 TString name_scale_x;
12684 name_scale_x =
"?";
12686 name_scale_x =
"LinX_";
12689 name_scale_x =
"LogX_";
12691 const Text_t* t_scale_x = (
const Text_t*)name_scale_x.Data();
12692 name_visu.Append(t_scale_x);
12694 TString name_scale_y;
12696 name_scale_y =
"?";
12698 name_scale_y =
"LinY";
12701 name_scale_y =
"LogY";
12703 const Text_t* t_scale_y = (
const Text_t*)name_scale_y.Data();
12704 name_visu.Append(t_scale_y);
12707 TString name_quantity;
12709 name_quantity =
"?";
12711 if (HistoCode ==
"D_NOE_ChNb") {
12712 name_quantity =
"Nb_of_evts_as_func_of_Xtal";
12714 if (HistoCode ==
"D_NOE_ChDs") {
12715 name_quantity =
"Nb_of_evts_Xtal_distrib";
12717 if (HistoCode ==
"D_Ped_ChNb") {
12718 name_quantity =
"Pedestals_as_func_of_Xtal";
12720 if (HistoCode ==
"D_Ped_ChDs") {
12721 name_quantity =
"Pedestals_Xtal_distrib";
12723 if (HistoCode ==
"D_TNo_ChNb") {
12724 name_quantity =
"Total_Noise_as_func_of_Xtal";
12726 if (HistoCode ==
"D_TNo_ChDs") {
12727 name_quantity =
"Total_Noise_Xtal_distrib";
12729 if (HistoCode ==
"D_MCs_ChNb") {
12730 name_quantity =
"Mean_Corss_as_func_of_Xtal";
12732 if (HistoCode ==
"D_MCs_ChDs") {
12733 name_quantity =
"Mean_Corss_Xtal_distrib";
12735 if (HistoCode ==
"D_LFN_ChNb") {
12736 name_quantity =
"Low_Fq_Noise_as_func_of_Xtal";
12738 if (HistoCode ==
"D_LFN_ChDs") {
12739 name_quantity =
"Low_Fq_Noise_Xtal_distrib";
12741 if (HistoCode ==
"D_HFN_ChNb") {
12742 name_quantity =
"High_Fq_Noise_as_func_of_Xtal";
12744 if (HistoCode ==
"D_HFN_ChDs") {
12745 name_quantity =
"High_Fq_Noise_Xtal_distrib";
12747 if (HistoCode ==
"D_SCs_ChNb") {
12748 name_quantity =
"Sigma_Corss_as_func_of_Xtal";
12750 if (HistoCode ==
"D_SCs_ChDs") {
12751 name_quantity =
"Sigma_Corss_Xtal_distrib";
12753 if (HistoCode ==
"D_MSp_SpNb") {
12754 name_quantity =
"ExpValue_of_samples";
12756 if (HistoCode ==
"D_MSp_SpDs") {
12757 name_quantity =
"ExpValue_of_samples_distrib";
12759 if (HistoCode ==
"D_SSp_SpNb") {
12760 name_quantity =
"Sigma_of_samples";
12762 if (HistoCode ==
"D_SSp_SpDs") {
12763 name_quantity =
"Sigma_of_samples_distrib";
12765 if (HistoCode ==
"D_Adc_EvDs") {
12766 name_quantity =
"hevt";
12768 if (HistoCode ==
"D_Adc_EvNb") {
12769 name_quantity =
"ADC_as_func_of_Event";
12771 if (HistoCode ==
"H_Ped_Date") {
12772 name_quantity =
"Pedestal_history";
12774 if (HistoCode ==
"H_TNo_Date") {
12775 name_quantity =
"Total_Noise_history";
12777 if (HistoCode ==
"H_MCs_Date") {
12778 name_quantity =
"Mean_Corss_history";
12780 if (HistoCode ==
"H_LFN_Date") {
12781 name_quantity =
"Low_Fq_Noise_history";
12783 if (HistoCode ==
"H_HFN_Date") {
12784 name_quantity =
"High_Fq_Noise_history";
12786 if (HistoCode ==
"H_SCs_Date") {
12787 name_quantity =
"Sigma_Corss_history";
12789 if (HistoCode ==
"H_Ped_RuDs") {
12790 name_quantity =
"Pedestal_run_distribution";
12792 if (HistoCode ==
"H_TNo_RuDs") {
12793 name_quantity =
"Total_Noise_run_distribution";
12795 if (HistoCode ==
"H_MCs_RuDs") {
12796 name_quantity =
"Mean_Corss_run_distribution";
12798 if (HistoCode ==
"H_LFN_RuDs") {
12799 name_quantity =
"Low_Fq_Noise_run_distribution";
12801 if (HistoCode ==
"H_HFN_RuDs") {
12802 name_quantity =
"High_Fq_Noise_run_distribution";
12804 if (HistoCode ==
"H_SCs_RuDs") {
12805 name_quantity =
"Sigma_Corss_run_distribution";
12808 Int_t num_crys = -1;
12809 if (HistoCode ==
"D_MSp_SpNb") {
12810 num_crys = i0StinEcha;
12812 if (HistoCode ==
"D_MSp_SpDs") {
12813 num_crys = i0StinEcha;
12815 if (HistoCode ==
"D_SSp_SpNb") {
12816 num_crys = i0StinEcha;
12818 if (HistoCode ==
"D_SSp_SpDs") {
12819 num_crys = i0StinEcha;
12821 if (HistoCode ==
"D_Adc_EvDs") {
12822 num_crys = i0StinEcha;
12824 if (HistoCode ==
"D_Adc_EvNb") {
12825 num_crys = i0StinEcha;
12827 if (HistoCode ==
"H_Ped_Date") {
12828 num_crys = i0StinEcha;
12830 if (HistoCode ==
"H_TNo_Date") {
12831 num_crys = i0StinEcha;
12833 if (HistoCode ==
"H_MCs_Date") {
12834 num_crys = i0StinEcha;
12836 if (HistoCode ==
"H_LFN_Date") {
12837 num_crys = i0StinEcha;
12839 if (HistoCode ==
"H_HFN_Date") {
12840 num_crys = i0StinEcha;
12842 if (HistoCode ==
"H_SCs_Date") {
12843 num_crys = i0StinEcha;
12845 if (HistoCode ==
"H_Ped_RuDs") {
12846 num_crys = i0StinEcha;
12848 if (HistoCode ==
"H_TNo_RuDs") {
12849 num_crys = i0StinEcha;
12851 if (HistoCode ==
"H_MCs_RuDs") {
12852 num_crys = i0StinEcha;
12854 if (HistoCode ==
"H_LFN_RuDs") {
12855 num_crys = i0StinEcha;
12857 if (HistoCode ==
"H_HFN_RuDs") {
12858 num_crys = i0StinEcha;
12860 if (HistoCode ==
"H_SCs_RuDs") {
12861 num_crys = i0StinEcha;
12864 Int_t num_samp = -1;
12865 if (HistoCode ==
"D_Adc_EvDs") {
12866 num_samp = i0Sample;
12868 if (HistoCode ==
"D_Adc_EvNb") {
12869 num_samp = i0Sample;
12874 if (HistoCode ==
"D_NOE_ChNb" || HistoCode ==
"D_NOE_ChDs" || HistoCode ==
"D_Ped_ChNb" ||
12875 HistoCode ==
"D_Ped_ChDs" || HistoCode ==
"D_TNo_ChNb" || HistoCode ==
"D_TNo_ChDs" ||
12876 HistoCode ==
"D_MCs_ChNb" || HistoCode ==
"D_MCs_ChDs" || HistoCode ==
"D_LFN_ChNb" ||
12877 HistoCode ==
"D_LFN_ChDs" || HistoCode ==
"D_HFN_ChNb" || HistoCode ==
"D_HFN_ChDs" ||
12878 HistoCode ==
"D_SCs_ChNb" || HistoCode ==
"D_SCs_ChDs") {
12880 "%s_%s_S1_%d_R%d_%d_%d_%d_%s%d_%s_%s",
12881 name_quantity.Data(),
12890 name_opt_plot.Data(),
12894 if (HistoCode ==
"D_MSp_SpNb" || HistoCode ==
"D_SSp_SpNb" || HistoCode ==
"H_Ped_Date" ||
12895 HistoCode ==
"H_TNo_Date" || HistoCode ==
"H_MCs_Date" || HistoCode ==
"H_LFN_Date" ||
12896 HistoCode ==
"H_HFN_Date" || HistoCode ==
"H_SCs_Date" || HistoCode ==
"D_MSp_SpDs" ||
12897 HistoCode ==
"D_SSp_SpDs" || HistoCode ==
"H_Ped_RuDs" || HistoCode ==
"H_TNo_RuDs" ||
12898 HistoCode ==
"H_MCs_RuDs" || HistoCode ==
"H_LFN_RuDs" || HistoCode ==
"H_HFN_RuDs" ||
12899 HistoCode ==
"H_SCs_RuDs") {
12901 "%s_%s_S1_%d_R%d_%d_%d_%d_%s%d_%s%d_Xtal%d_%s_%s",
12902 name_quantity.Data(),
12914 name_opt_plot.Data(),
12918 if (HistoCode ==
"D_Adc_EvNb" || HistoCode ==
"D_Adc_EvDs") {
12920 "%s_%s_S1_%d_R%d_%d_%d_%d_%s%d_%s%d_Xtal%d_Samp%d_%s_%s",
12921 name_quantity.Data(),
12934 name_opt_plot.Data(),
12938 canvas_name = f_in;
12939 return canvas_name.Data();
12967 if (chqcode ==
"D_MSp_SpNb" || chqcode ==
"D_SSp_SpNb" || chqcode ==
"D_MSp_SpDs" || chqcode ==
"D_SSp_SpDs") {
12968 if (opt_plot_read ==
"read") {
12971 if (opt_plot_read ==
"plot") {
12977 if (chqcode ==
"D_Adc_EvNb" || chqcode ==
"D_Adc_EvDs") {
12982 if (chqcode ==
"D_NOE_ChNb" || chqcode ==
"D_Ped_ChNb" || chqcode ==
"D_TNo_ChNb" || chqcode ==
"D_MCs_ChNb" ||
12983 chqcode ==
"D_LFN_ChNb" || chqcode ==
"D_HFN_ChNb" || chqcode ==
"D_SCs_ChNb" || chqcode ==
"D_NOE_ChDs" ||
12984 chqcode ==
"D_Ped_ChDs" || chqcode ==
"D_TNo_ChDs" || chqcode ==
"D_MCs_ChDs" || chqcode ==
"D_LFN_ChDs" ||
12985 chqcode ==
"D_HFN_ChDs" || chqcode ==
"D_SCs_ChDs") {
12996 if (opt_plot_read ==
"read") {
12999 if (opt_plot_read ==
"plot") {
13009 if (chqcode ==
"H_Ped_RuDs" || chqcode ==
"H_TNo_RuDs" || chqcode ==
"H_MCs_RuDs" || chqcode ==
"H_LFN_RuDs" ||
13010 chqcode ==
"H_HFN_RuDs" || chqcode ==
"H_SCs_RuDs") {
13018 const Int_t& arg_AlreadyRead,
13020 const TString& HistoCode,
13021 const Int_t& HisSizePlot,
13022 const Int_t& HisSizeRead,
13023 const Int_t& StexStin_A,
13024 const Int_t& i0StinEcha,
13025 const Int_t& i0Sample,
13026 Int_t& i_data_exist) {
13029 TVectorD plot_histo(HisSizePlot);
13030 for (Int_t
i = 0;
i < HisSizePlot;
i++) {
13031 plot_histo(
i) = (Double_t)0.;
13036 if (arg_AlreadyRead >= 1) {
13038 for (Int_t
i = 0;
i < HisSizeRead;
i++) {
13039 plot_histo(
i) = arg_read_histo(
i);
13045 if (arg_AlreadyRead == 0) {
13047 TVectorD read_histo(HisSizeRead);
13048 for (Int_t
i = 0;
i < HisSizeRead;
i++) {
13049 read_histo(
i) = (Double_t)0.;
13052 if (HistoCode ==
"D_MSp_SpNb" || HistoCode ==
"D_MSp_SpDs" || HistoCode ==
"D_SSp_SpNb" ||
13053 HistoCode ==
"D_SSp_SpDs") {
13055 if (HisSizeRead <= HisSizePlot) {
13056 if (HistoCode ==
"D_MSp_SpNb" || HistoCode ==
"D_MSp_SpDs") {
13057 read_histo = aMyRootFile->
ReadSampleMeans(StexStin_A, i0StinEcha, HisSizeRead);
13058 if (aMyRootFile->
DataExist() == kTRUE) {
13062 for (Int_t
i = 0;
i < HisSizeRead;
i++) {
13063 plot_histo(
i) = read_histo(
i);
13067 if (HistoCode ==
"D_SSp_SpNb" || HistoCode ==
"D_SSp_SpDs") {
13068 read_histo = aMyRootFile->
ReadSampleSigmas(StexStin_A, i0StinEcha, HisSizeRead);
13069 if (aMyRootFile->
DataExist() == kTRUE) {
13073 for (Int_t
i = 0;
i < HisSizeRead;
i++) {
13074 plot_histo(
i) = read_histo(
i);
13078 std::cout <<
"!TEcnaHistos::GetHistoValues(...)> *** ERROR *** > HisSizeRead greater than HisSizePlot" 13079 <<
" for plot as a function of sample#. HisSizeRead = " << HisSizeRead
13080 <<
", HisSizePlot = " << HisSizePlot <<
fTTBELL << std::endl;
13085 if (!(HistoCode ==
"D_MSp_SpNb" || HistoCode ==
"D_SSp_SpNb" || HistoCode ==
"D_MSp_SpDs" ||
13086 HistoCode ==
"D_SSp_SpDs"))
13089 if (HisSizeRead == HisSizePlot) {
13093 if (HistoCode ==
"D_Adc_EvNb" || HistoCode ==
"D_Adc_EvDs") {
13094 read_histo = aMyRootFile->
ReadSampleAdcValues(StexStin_A, i0StinEcha, i0Sample, HisSizeRead);
13095 if (aMyRootFile->
DataExist() == kTRUE) {
13101 if (HistoCode ==
"D_NOE_ChNb" || HistoCode ==
"D_NOE_ChDs") {
13103 if (aMyRootFile->
DataExist() == kTRUE) {
13109 if (HistoCode ==
"D_Ped_ChNb" || HistoCode ==
"D_Ped_ChDs") {
13111 if (aMyRootFile->
DataExist() == kTRUE) {
13118 if (HistoCode ==
"D_TNo_ChNb" || HistoCode ==
"D_TNo_ChDs") {
13120 if (aMyRootFile->
DataExist() == kTRUE) {
13126 if (HistoCode ==
"D_LFN_ChNb" || HistoCode ==
"D_LFN_ChDs") {
13128 if (aMyRootFile->
DataExist() == kTRUE) {
13134 if (HistoCode ==
"D_HFN_ChNb" || HistoCode ==
"D_HFN_ChDs") {
13136 if (aMyRootFile->
DataExist() == kTRUE) {
13142 if (HistoCode ==
"D_MCs_ChNb" || HistoCode ==
"D_MCs_ChDs") {
13144 if (aMyRootFile->
DataExist() == kTRUE) {
13150 if (HistoCode ==
"D_SCs_ChNb" || HistoCode ==
"D_SCs_ChDs") {
13152 if (aMyRootFile->
DataExist() == kTRUE) {
13158 for (Int_t
i = 0;
i < HisSizeRead;
i++) {
13159 plot_histo(
i) = read_histo(
i);
13163 std::cout <<
"!TEcnaHistos::GetHistoValues(...)> *** ERROR *** > HisSizeRead not equal to HisSizePlot." 13164 <<
" HisSizeRead = " << HisSizeRead <<
", HisSizePlot = " << HisSizePlot <<
fTTBELL << std::endl;
13169 if (i_data_exist == 0) {
13170 std::cout <<
"!TEcnaHistos::GetHistoValues(...)> Histo not found." <<
fTTBELL << std::endl;
13180 TString axis_x_var_name;
13182 if (HistoCode ==
"D_NOE_ChNb" || HistoCode ==
"D_Ped_ChNb" || HistoCode ==
"D_TNo_ChNb" ||
13183 HistoCode ==
"D_MCs_ChNb" || HistoCode ==
"D_LFN_ChNb" || HistoCode ==
"D_HFN_ChNb" ||
13184 HistoCode ==
"D_SCs_ChNb") {
13187 axis_x_var_name =
"Xtal (electronic channel number)";
13190 axis_x_var_name =
"Xtal";
13195 axis_x_var_name =
"Tower number";
13198 axis_x_var_name =
"SC number";
13203 if (HistoCode ==
"D_NOE_ChDs") {
13204 axis_x_var_name =
"Number of events";
13206 if (HistoCode ==
"D_Ped_ChDs") {
13207 axis_x_var_name =
"Pedestal";
13209 if (HistoCode ==
"D_TNo_ChDs") {
13210 axis_x_var_name =
"Total noise";
13212 if (HistoCode ==
"D_MCs_ChDs") {
13213 axis_x_var_name =
"Mean cor(s,s')";
13215 if (HistoCode ==
"D_LFN_ChDs") {
13216 axis_x_var_name =
"Low frequency noise";
13218 if (HistoCode ==
"D_HFN_ChDs") {
13219 axis_x_var_name =
"High frequency noise";
13221 if (HistoCode ==
"D_SCs_ChDs") {
13222 axis_x_var_name =
"Sigmas cor(s,s')";
13224 if (HistoCode ==
"D_MSp_SpNb") {
13225 axis_x_var_name =
"Sample";
13227 if (HistoCode ==
"D_MSp_SpDs") {
13228 axis_x_var_name =
"Pedestal";
13230 if (HistoCode ==
"D_SSp_SpNb") {
13231 axis_x_var_name =
"Sample";
13233 if (HistoCode ==
"D_SSp_SpDs") {
13234 axis_x_var_name =
"Total noise";
13236 if (HistoCode ==
"D_Adc_EvDs") {
13237 axis_x_var_name =
"ADC";
13239 if (HistoCode ==
"D_Adc_EvNb") {
13240 axis_x_var_name =
"Event number";
13242 if (HistoCode ==
"H_Ped_Date" || HistoCode ==
"H_TNo_Date" || HistoCode ==
"H_MCs_Date" ||
13243 HistoCode ==
"H_LFN_Date" || HistoCode ==
"H_HFN_Date" || HistoCode ==
"H_SCs_Date") {
13244 axis_x_var_name =
"Time";
13246 if (HistoCode ==
"H_Ped_RuDs") {
13247 axis_x_var_name =
"Pedestal";
13249 if (HistoCode ==
"H_TNo_RuDs") {
13250 axis_x_var_name =
"Total noise";
13252 if (HistoCode ==
"H_MCs_RuDs") {
13253 axis_x_var_name =
"Mean cor(s,s')";
13255 if (HistoCode ==
"H_LFN_RuDs") {
13256 axis_x_var_name =
"Low frequency noise";
13258 if (HistoCode ==
"H_HFN_RuDs") {
13259 axis_x_var_name =
"High frequency noise";
13261 if (HistoCode ==
"H_SCs_RuDs") {
13262 axis_x_var_name =
"Sigmas cor(s,s')";
13265 return axis_x_var_name;
13271 TString axis_y_var_name;
13273 if (HistoCode ==
"D_NOE_ChNb") {
13274 axis_y_var_name =
"Number of events";
13276 if (HistoCode ==
"D_Ped_ChNb") {
13277 axis_y_var_name =
"Pedestal";
13279 if (HistoCode ==
"D_TNo_ChNb") {
13280 axis_y_var_name =
"Total noise";
13282 if (HistoCode ==
"D_MCs_ChNb") {
13283 axis_y_var_name =
"Mean cor(s,s')";
13285 if (HistoCode ==
"D_LFN_ChNb") {
13286 axis_y_var_name =
"Low frequency noise";
13288 if (HistoCode ==
"D_HFN_ChNb") {
13289 axis_y_var_name =
"High frequency noise";
13291 if (HistoCode ==
"D_SCs_ChNb") {
13292 axis_y_var_name =
"Sigma of cor(s,s')";
13295 if (HistoCode ==
"D_NOE_ChDs" || HistoCode ==
"D_Ped_ChDs" || HistoCode ==
"D_TNo_ChDs" ||
13296 HistoCode ==
"D_MCs_ChDs" || HistoCode ==
"D_LFN_ChDs" || HistoCode ==
"D_HFN_ChDs" ||
13297 HistoCode ==
"D_SCs_ChDs") {
13299 axis_y_var_name =
"number of crystals";
13303 axis_y_var_name =
"number of towers";
13306 axis_y_var_name =
"number of SC's";
13311 if (HistoCode ==
"D_MSp_SpNb") {
13312 axis_y_var_name =
"Sample mean";
13314 if (HistoCode ==
"D_MSp_SpDs") {
13315 axis_y_var_name =
"Number of samples";
13317 if (HistoCode ==
"D_SSp_SpNb") {
13318 axis_y_var_name =
"Sample sigma";
13320 if (HistoCode ==
"D_SSp_SpDs") {
13321 axis_y_var_name =
"Number of samples";
13323 if (HistoCode ==
"D_Adc_EvNb") {
13324 axis_y_var_name =
"Sample ADC value";
13326 if (HistoCode ==
"D_Adc_EvDs") {
13327 axis_y_var_name =
"Number of events";
13329 if (HistoCode ==
"H_Ped_Date") {
13330 axis_y_var_name =
"Pedestal";
13332 if (HistoCode ==
"H_TNo_Date") {
13333 axis_y_var_name =
"Total noise";
13335 if (HistoCode ==
"H_MCs_Date") {
13336 axis_y_var_name =
"Mean cor(s,s')";
13338 if (HistoCode ==
"H_LFN_Date") {
13339 axis_y_var_name =
"Low frequency noise";
13341 if (HistoCode ==
"H_HFN_Date") {
13342 axis_y_var_name =
"High frequency noise";
13344 if (HistoCode ==
"H_SCs_Date") {
13345 axis_y_var_name =
"Sigma cor(s,s')";
13348 if (HistoCode ==
"H_Ped_RuDs" || HistoCode ==
"H_TNo_RuDs" || HistoCode ==
"H_MCs_RuDs" ||
13349 HistoCode ==
"H_LFN_RuDs" || HistoCode ==
"H_HFN_RuDs" || HistoCode ==
"H_SCs_RuDs") {
13350 axis_y_var_name =
"number of runs";
13353 return axis_y_var_name;
13359 Axis_t xinf_his = (Axis_t)0;
13361 if (HistoCode ==
"D_NOE_ChNb") {
13362 xinf_his = (Axis_t)0.;
13364 if (HistoCode ==
"D_Ped_ChNb") {
13365 xinf_his = (Axis_t)0.;
13367 if (HistoCode ==
"D_TNo_ChNb") {
13368 xinf_his = (Axis_t)0.;
13370 if (HistoCode ==
"D_MCs_ChNb") {
13371 xinf_his = (Axis_t)0.;
13373 if (HistoCode ==
"D_LFN_ChNb") {
13374 xinf_his = (Axis_t)0.;
13376 if (HistoCode ==
"D_HFN_ChNb") {
13377 xinf_his = (Axis_t)0.;
13379 if (HistoCode ==
"D_SCs_ChNb") {
13380 xinf_his = (Axis_t)0.;
13382 if (HistoCode ==
"D_MSp_SpNb") {
13383 xinf_his = (Axis_t)0.;
13385 if (HistoCode ==
"D_SSp_SpNb") {
13386 xinf_his = (Axis_t)0.;
13388 if (HistoCode ==
"D_Adc_EvNb") {
13389 xinf_his = (Axis_t)0.;
13392 if (HistoCode ==
"D_NOE_ChDs") {
13395 if (HistoCode ==
"D_Ped_ChDs") {
13398 if (HistoCode ==
"D_TNo_ChDs") {
13401 if (HistoCode ==
"D_MCs_ChDs") {
13404 if (HistoCode ==
"D_LFN_ChDs") {
13407 if (HistoCode ==
"D_HFN_ChDs") {
13410 if (HistoCode ==
"D_SCs_ChDs") {
13413 if (HistoCode ==
"D_MSp_SpDs") {
13416 if (HistoCode ==
"D_SSp_SpDs") {
13419 if (HistoCode ==
"D_Adc_EvDs") {
13423 if (HistoCode ==
"H_Ped_Date") {
13424 xinf_his = (Axis_t)0.;
13426 if (HistoCode ==
"H_TNo_Date") {
13427 xinf_his = (Axis_t)0.;
13429 if (HistoCode ==
"H_MCs_Date") {
13430 xinf_his = (Axis_t)0.;
13432 if (HistoCode ==
"H_LFN_Date") {
13433 xinf_his = (Axis_t)0.;
13435 if (HistoCode ==
"H_HFN_Date") {
13436 xinf_his = (Axis_t)0.;
13438 if (HistoCode ==
"H_SCs_Date") {
13439 xinf_his = (Axis_t)0.;
13442 if (HistoCode ==
"H_Ped_RuDs") {
13445 if (HistoCode ==
"H_TNo_RuDs") {
13448 if (HistoCode ==
"H_MCs_RuDs") {
13451 if (HistoCode ==
"H_LFN_RuDs") {
13454 if (HistoCode ==
"H_HFN_RuDs") {
13457 if (HistoCode ==
"H_SCs_RuDs") {
13467 Axis_t xsup_his = (Axis_t)0;
13469 if (HistoCode ==
"D_NOE_ChNb") {
13470 xsup_his = (Axis_t)HisSize;
13472 if (HistoCode ==
"D_Ped_ChNb") {
13473 xsup_his = (Axis_t)HisSize;
13475 if (HistoCode ==
"D_TNo_ChNb") {
13476 xsup_his = (Axis_t)HisSize;
13478 if (HistoCode ==
"D_MCs_ChNb") {
13479 xsup_his = (Axis_t)HisSize;
13481 if (HistoCode ==
"D_LFN_ChNb") {
13482 xsup_his = (Axis_t)HisSize;
13484 if (HistoCode ==
"D_HFN_ChNb") {
13485 xsup_his = (Axis_t)HisSize;
13487 if (HistoCode ==
"D_SCs_ChNb") {
13488 xsup_his = (Axis_t)HisSize;
13490 if (HistoCode ==
"D_MSp_SpNb") {
13491 xsup_his = (Axis_t)HisSize;
13493 if (HistoCode ==
"D_SSp_SpNb") {
13494 xsup_his = (Axis_t)HisSize;
13496 if (HistoCode ==
"D_Adc_EvNb") {
13500 if (HistoCode ==
"D_NOE_ChDs") {
13503 if (HistoCode ==
"D_Ped_ChDs") {
13506 if (HistoCode ==
"D_TNo_ChDs") {
13509 if (HistoCode ==
"D_MCs_ChDs") {
13512 if (HistoCode ==
"D_LFN_ChDs") {
13515 if (HistoCode ==
"D_HFN_ChDs") {
13518 if (HistoCode ==
"D_SCs_ChDs") {
13521 if (HistoCode ==
"D_MSp_SpDs") {
13524 if (HistoCode ==
"D_SSp_SpDs") {
13527 if (HistoCode ==
"D_Adc_EvDs") {
13531 if (HistoCode ==
"H_Ped_Date") {
13532 xsup_his = (Axis_t)0.;
13534 if (HistoCode ==
"H_TNo_Date") {
13535 xsup_his = (Axis_t)0.;
13537 if (HistoCode ==
"H_MCs_Date") {
13538 xsup_his = (Axis_t)0.;
13540 if (HistoCode ==
"H_LFN_Date") {
13541 xsup_his = (Axis_t)0.;
13543 if (HistoCode ==
"H_HFN_Date") {
13544 xsup_his = (Axis_t)0.;
13546 if (HistoCode ==
"H_SCs_Date") {
13547 xsup_his = (Axis_t)0.;
13550 if (HistoCode ==
"H_Ped_RuDs") {
13553 if (HistoCode ==
"H_TNo_RuDs") {
13556 if (HistoCode ==
"H_MCs_RuDs") {
13559 if (HistoCode ==
"H_LFN_RuDs") {
13562 if (HistoCode ==
"H_HFN_RuDs") {
13565 if (HistoCode ==
"H_SCs_RuDs") {
13575 Int_t nb_binx = HisSize;
13577 if (HistoType ==
"Proj" || HistoType ==
"SampProj" || HistoType ==
"EvolProj" || HistoType ==
"H1BasicProj") {
13589 for (Int_t
i = 0;
i < HisSize;
i++) {
13590 Double_t his_val = (Double_t)0;
13591 Double_t
xi = (Double_t)0;
13593 if (HistoCode ==
"D_NOE_ChNb" || HistoCode ==
"D_Ped_ChNb" || HistoCode ==
"D_LFN_ChNb" ||
13594 HistoCode ==
"D_TNo_ChNb" || HistoCode ==
"D_HFN_ChNb" || HistoCode ==
"D_MCs_ChNb" ||
13595 HistoCode ==
"D_SCs_ChNb" || HistoCode ==
"D_MSp_SpNb" || HistoCode ==
"D_SSp_SpNb") {
13597 his_val = (Double_t)read_histo[
i];
13598 h_his0->Fill(xi, his_val);
13602 if (HistoCode ==
"D_Adc_EvNb") {
13604 his_val = (Double_t)read_histo[
i];
13605 h_his0->Fill(xi, his_val);
13608 if (HistoCode ==
"D_NOE_ChDs" || HistoCode ==
"D_Ped_ChDs" || HistoCode ==
"D_LFN_ChDs" ||
13609 HistoCode ==
"D_TNo_ChDs" || HistoCode ==
"D_HFN_ChDs" || HistoCode ==
"D_MCs_ChDs" ||
13610 HistoCode ==
"D_SCs_ChDs" || HistoCode ==
"D_MSp_SpDs" || HistoCode ==
"D_SSp_SpDs" ||
13611 HistoCode ==
"D_Adc_EvDs") {
13612 his_val = (Double_t)read_histo[
i];
13613 Double_t increment = (Double_t)1;
13614 h_his0->Fill(his_val, increment);
13631 if (HistoCode ==
"D_NOE_ChNb") {
13634 if (HistoCode ==
"D_NOE_ChDs") {
13637 if (HistoCode ==
"D_Ped_ChNb") {
13640 if (HistoCode ==
"D_Ped_ChDs") {
13643 if (HistoCode ==
"D_TNo_ChNb") {
13646 if (HistoCode ==
"D_TNo_ChDs") {
13649 if (HistoCode ==
"D_MCs_ChNb") {
13652 if (HistoCode ==
"D_MCs_ChDs") {
13655 if (HistoCode ==
"D_LFN_ChNb") {
13658 if (HistoCode ==
"D_LFN_ChDs") {
13661 if (HistoCode ==
"D_HFN_ChNb") {
13664 if (HistoCode ==
"D_HFN_ChDs") {
13667 if (HistoCode ==
"D_SCs_ChNb") {
13670 if (HistoCode ==
"D_SCs_ChDs") {
13673 if (HistoCode ==
"D_MSp_SpNb") {
13676 if (HistoCode ==
"D_MSp_SpDs") {
13679 if (HistoCode ==
"D_SSp_SpNb") {
13682 if (HistoCode ==
"D_SSp_SpDs") {
13685 if (HistoCode ==
"D_Adc_EvNb") {
13688 if (HistoCode ==
"D_Adc_EvDs") {
13691 if (HistoCode ==
"H_Ped_Date") {
13694 if (HistoCode ==
"H_TNo_Date") {
13697 if (HistoCode ==
"H_MCs_Date") {
13700 if (HistoCode ==
"H_LFN_Date") {
13703 if (HistoCode ==
"H_HFN_Date") {
13706 if (HistoCode ==
"H_SCs_Date") {
13709 if (HistoCode ==
"H_Ped_RuDs") {
13712 if (HistoCode ==
"H_TNo_RuDs") {
13715 if (HistoCode ==
"H_MCs_RuDs") {
13718 if (HistoCode ==
"H_LFN_RuDs") {
13721 if (HistoCode ==
"H_HFN_RuDs") {
13724 if (HistoCode ==
"H_SCs_RuDs") {
13732 if (HistoCode ==
"D_NOE_ChNb") {
13735 if (HistoCode ==
"D_NOE_ChDs") {
13738 if (HistoCode ==
"D_Ped_ChNb") {
13741 if (HistoCode ==
"D_Ped_ChDs") {
13744 if (HistoCode ==
"D_TNo_ChNb") {
13747 if (HistoCode ==
"D_TNo_ChDs") {
13750 if (HistoCode ==
"D_MCs_ChNb") {
13753 if (HistoCode ==
"D_MCs_ChDs") {
13756 if (HistoCode ==
"D_LFN_ChNb") {
13759 if (HistoCode ==
"D_LFN_ChDs") {
13762 if (HistoCode ==
"D_HFN_ChNb") {
13765 if (HistoCode ==
"D_HFN_ChDs") {
13768 if (HistoCode ==
"D_SCs_ChNb") {
13771 if (HistoCode ==
"D_SCs_ChDs") {
13774 if (HistoCode ==
"D_MSp_SpNb") {
13777 if (HistoCode ==
"D_MSp_SpDs") {
13780 if (HistoCode ==
"D_SSp_SpNb") {
13783 if (HistoCode ==
"D_SSp_SpDs") {
13786 if (HistoCode ==
"D_Adc_EvNb") {
13789 if (HistoCode ==
"D_Adc_EvDs") {
13792 if (HistoCode ==
"H_Ped_Date") {
13795 if (HistoCode ==
"H_TNo_Date") {
13798 if (HistoCode ==
"H_MCs_Date") {
13801 if (HistoCode ==
"H_LFN_Date") {
13804 if (HistoCode ==
"H_HFN_Date") {
13807 if (HistoCode ==
"H_SCs_Date") {
13810 if (HistoCode ==
"H_Ped_RuDs") {
13813 if (HistoCode ==
"H_TNo_RuDs") {
13816 if (HistoCode ==
"H_MCs_RuDs") {
13819 if (HistoCode ==
"H_LFN_RuDs") {
13822 if (HistoCode ==
"H_HFN_RuDs") {
13825 if (HistoCode ==
"H_SCs_RuDs") {
13833 Double_t val_inf = (Double_t)0.;
13835 if (HistoCode ==
"D_NOE_ChNb") {
13838 if (HistoCode ==
"D_NOE_ChDs") {
13841 if (HistoCode ==
"D_Ped_ChNb") {
13844 if (HistoCode ==
"D_Ped_ChDs") {
13847 if (HistoCode ==
"D_TNo_ChNb") {
13850 if (HistoCode ==
"D_TNo_ChDs") {
13853 if (HistoCode ==
"D_MCs_ChNb") {
13856 if (HistoCode ==
"D_MCs_ChDs") {
13859 if (HistoCode ==
"D_LFN_ChNb") {
13862 if (HistoCode ==
"D_LFN_ChDs") {
13865 if (HistoCode ==
"D_HFN_ChNb") {
13868 if (HistoCode ==
"D_HFN_ChDs") {
13871 if (HistoCode ==
"D_SCs_ChNb") {
13874 if (HistoCode ==
"D_SCs_ChDs") {
13877 if (HistoCode ==
"D_MSp_SpNb") {
13880 if (HistoCode ==
"D_MSp_SpDs") {
13883 if (HistoCode ==
"D_SSp_SpNb") {
13886 if (HistoCode ==
"D_SSp_SpDs") {
13889 if (HistoCode ==
"D_Adc_EvNb") {
13892 if (HistoCode ==
"D_Adc_EvDs") {
13895 if (HistoCode ==
"H_Ped_Date") {
13898 if (HistoCode ==
"H_TNo_Date") {
13901 if (HistoCode ==
"H_MCs_Date") {
13904 if (HistoCode ==
"H_LFN_Date") {
13907 if (HistoCode ==
"H_HFN_Date") {
13910 if (HistoCode ==
"H_SCs_Date") {
13913 if (HistoCode ==
"H_Ped_RuDs") {
13916 if (HistoCode ==
"H_TNo_RuDs") {
13919 if (HistoCode ==
"H_MCs_RuDs") {
13922 if (HistoCode ==
"H_LFN_RuDs") {
13925 if (HistoCode ==
"H_HFN_RuDs") {
13928 if (HistoCode ==
"H_SCs_RuDs") {
13937 Double_t val_sup = (Double_t)0.;
13939 if (HistoCode ==
"D_NOE_ChNb") {
13942 if (HistoCode ==
"D_NOE_ChDs") {
13945 if (HistoCode ==
"D_Ped_ChNb") {
13948 if (HistoCode ==
"D_Ped_ChDs") {
13951 if (HistoCode ==
"D_TNo_ChNb") {
13954 if (HistoCode ==
"D_TNo_ChDs") {
13957 if (HistoCode ==
"D_MCs_ChNb") {
13960 if (HistoCode ==
"D_MCs_ChDs") {
13963 if (HistoCode ==
"D_LFN_ChNb") {
13966 if (HistoCode ==
"D_LFN_ChDs") {
13969 if (HistoCode ==
"D_HFN_ChNb") {
13972 if (HistoCode ==
"D_HFN_ChDs") {
13975 if (HistoCode ==
"D_SCs_ChNb") {
13978 if (HistoCode ==
"D_SCs_ChDs") {
13981 if (HistoCode ==
"D_MSp_SpNb") {
13984 if (HistoCode ==
"D_MSp_SpDs") {
13987 if (HistoCode ==
"D_SSp_SpNb") {
13990 if (HistoCode ==
"D_SSp_SpDs") {
13993 if (HistoCode ==
"D_Adc_EvNb") {
13996 if (HistoCode ==
"D_Adc_EvDs") {
13999 if (HistoCode ==
"H_Ped_Date") {
14002 if (HistoCode ==
"H_TNo_Date") {
14005 if (HistoCode ==
"H_MCs_Date") {
14008 if (HistoCode ==
"H_LFN_Date") {
14011 if (HistoCode ==
"H_HFN_Date") {
14014 if (HistoCode ==
"H_SCs_Date") {
14017 if (HistoCode ==
"H_Ped_RuDs") {
14020 if (HistoCode ==
"H_TNo_RuDs") {
14023 if (HistoCode ==
"H_MCs_RuDs") {
14026 if (HistoCode ==
"H_LFN_RuDs") {
14029 if (HistoCode ==
"H_HFN_RuDs") {
14032 if (HistoCode ==
"H_SCs_RuDs") {
14179 if (HistoCode ==
"D_NOE_ChNb") {
14182 if (HistoCode ==
"D_NOE_ChDs") {
14185 if (HistoCode ==
"D_Ped_ChNb") {
14188 if (HistoCode ==
"D_Ped_ChDs") {
14191 if (HistoCode ==
"D_TNo_ChNb") {
14194 if (HistoCode ==
"D_TNo_ChDs") {
14197 if (HistoCode ==
"D_MCs_ChNb") {
14200 if (HistoCode ==
"D_MCs_ChDs") {
14203 if (HistoCode ==
"D_LFN_ChNb") {
14206 if (HistoCode ==
"D_LFN_ChDs") {
14209 if (HistoCode ==
"D_HFN_ChNb") {
14212 if (HistoCode ==
"D_HFN_ChDs") {
14215 if (HistoCode ==
"D_SCs_ChNb") {
14218 if (HistoCode ==
"D_SCs_ChDs") {
14221 if (HistoCode ==
"D_MSp_SpNb") {
14224 if (HistoCode ==
"D_MSp_SpDs") {
14227 if (HistoCode ==
"D_SSp_SpNb") {
14230 if (HistoCode ==
"D_SSp_SpDs") {
14233 if (HistoCode ==
"D_Adc_EvNb") {
14236 if (HistoCode ==
"D_Adc_EvDs") {
14239 if (HistoCode ==
"H_Ped_Date") {
14242 if (HistoCode ==
"H_TNo_Date") {
14245 if (HistoCode ==
"H_MCs_Date") {
14248 if (HistoCode ==
"H_LFN_Date") {
14251 if (HistoCode ==
"H_HFN_Date") {
14254 if (HistoCode ==
"H_SCs_Date") {
14257 if (HistoCode ==
"H_Ped_RuDs") {
14260 if (HistoCode ==
"H_TNo_RuDs") {
14263 if (HistoCode ==
"H_MCs_RuDs") {
14266 if (HistoCode ==
"H_LFN_RuDs") {
14269 if (HistoCode ==
"H_HFN_RuDs") {
14272 if (HistoCode ==
"H_SCs_RuDs") {
14275 if (HistoCode ==
"H2LFccMosMatrix") {
14278 if (HistoCode ==
"H2HFccMosMatrix") {
14281 if (HistoCode ==
"H2CorccInStins") {
14287 if (HistoCode ==
"D_NOE_ChNb") {
14290 if (HistoCode ==
"D_NOE_ChDs") {
14293 if (HistoCode ==
"D_Ped_ChNb") {
14296 if (HistoCode ==
"D_Ped_ChDs") {
14299 if (HistoCode ==
"D_TNo_ChNb") {
14302 if (HistoCode ==
"D_TNo_ChDs") {
14305 if (HistoCode ==
"D_MCs_ChNb") {
14308 if (HistoCode ==
"D_MCs_ChDs") {
14311 if (HistoCode ==
"D_LFN_ChNb") {
14314 if (HistoCode ==
"D_LFN_ChDs") {
14317 if (HistoCode ==
"D_HFN_ChNb") {
14320 if (HistoCode ==
"D_HFN_ChDs") {
14323 if (HistoCode ==
"D_SCs_ChNb") {
14326 if (HistoCode ==
"D_SCs_ChDs") {
14329 if (HistoCode ==
"D_MSp_SpNb") {
14332 if (HistoCode ==
"D_MSp_SpDs") {
14335 if (HistoCode ==
"D_SSp_SpNb") {
14338 if (HistoCode ==
"D_SSp_SpDs") {
14341 if (HistoCode ==
"D_Adc_EvNb") {
14344 if (HistoCode ==
"D_Adc_EvDs") {
14347 if (HistoCode ==
"H_Ped_Date") {
14350 if (HistoCode ==
"H_TNo_Date") {
14353 if (HistoCode ==
"H_MCs_Date") {
14356 if (HistoCode ==
"H_LFN_Date") {
14359 if (HistoCode ==
"H_HFN_Date") {
14362 if (HistoCode ==
"H_SCs_Date") {
14365 if (HistoCode ==
"H_Ped_RuDs") {
14368 if (HistoCode ==
"H_TNo_RuDs") {
14371 if (HistoCode ==
"H_MCs_RuDs") {
14374 if (HistoCode ==
"H_LFN_RuDs") {
14377 if (HistoCode ==
"H_HFN_RuDs") {
14380 if (HistoCode ==
"H_SCs_RuDs") {
14383 if (HistoCode ==
"H2LFccMosMatrix") {
14386 if (HistoCode ==
"H2HFccMosMatrix") {
14389 if (HistoCode ==
"H2CorccInStins") {
14395 Double_t val_min = (Double_t)0.;
14396 Double_t val_min_proj = (Double_t)0.1;
14398 if (HistoCode ==
"D_NOE_ChNb") {
14401 if (HistoCode ==
"D_NOE_ChDs") {
14402 val_min = val_min_proj;
14404 if (HistoCode ==
"D_Ped_ChNb") {
14407 if (HistoCode ==
"D_Ped_ChDs") {
14408 val_min = val_min_proj;
14410 if (HistoCode ==
"D_TNo_ChNb") {
14413 if (HistoCode ==
"D_TNo_ChDs") {
14414 val_min = val_min_proj;
14416 if (HistoCode ==
"D_MCs_ChNb") {
14419 if (HistoCode ==
"D_MCs_ChDs") {
14420 val_min = val_min_proj;
14422 if (HistoCode ==
"D_LFN_ChNb") {
14425 if (HistoCode ==
"D_LFN_ChDs") {
14426 val_min = val_min_proj;
14428 if (HistoCode ==
"D_HFN_ChNb") {
14431 if (HistoCode ==
"D_HFN_ChDs") {
14432 val_min = val_min_proj;
14434 if (HistoCode ==
"D_SCs_ChNb") {
14437 if (HistoCode ==
"D_SCs_ChDs") {
14438 val_min = val_min_proj;
14440 if (HistoCode ==
"D_MSp_SpNb") {
14443 if (HistoCode ==
"D_MSp_SpDs") {
14444 val_min = val_min_proj;
14446 if (HistoCode ==
"D_SSp_SpNb") {
14449 if (HistoCode ==
"D_SSp_SpDs") {
14450 val_min = val_min_proj;
14452 if (HistoCode ==
"D_Adc_EvNb") {
14455 if (HistoCode ==
"D_Adc_EvDs") {
14456 val_min = val_min_proj;
14458 if (HistoCode ==
"H_Ped_Date") {
14461 if (HistoCode ==
"H_TNo_Date") {
14464 if (HistoCode ==
"H_MCs_Date") {
14467 if (HistoCode ==
"H_LFN_Date") {
14470 if (HistoCode ==
"H_HFN_Date") {
14473 if (HistoCode ==
"H_SCs_Date") {
14476 if (HistoCode ==
"H_Ped_RuDs") {
14479 if (HistoCode ==
"H_TNo_RuDs") {
14482 if (HistoCode ==
"H_MCs_RuDs") {
14485 if (HistoCode ==
"H_LFN_RuDs") {
14488 if (HistoCode ==
"H_HFN_RuDs") {
14491 if (HistoCode ==
"H_SCs_RuDs") {
14494 if (HistoCode ==
"H2LFccMosMatrix") {
14497 if (HistoCode ==
"H2HFccMosMatrix") {
14500 if (HistoCode ==
"H2CorccInStins") {
14507 Double_t val_max = (Double_t)0.;
14508 Double_t val_max_proj = (Double_t)2000.;
14510 if (HistoCode ==
"D_NOE_ChNb") {
14513 if (HistoCode ==
"D_NOE_ChDs") {
14514 val_max = val_max_proj;
14516 if (HistoCode ==
"D_Ped_ChNb") {
14519 if (HistoCode ==
"D_Ped_ChDs") {
14520 val_max = val_max_proj;
14522 if (HistoCode ==
"D_TNo_ChNb") {
14525 if (HistoCode ==
"D_TNo_ChDs") {
14526 val_max = val_max_proj;
14528 if (HistoCode ==
"D_MCs_ChNb") {
14531 if (HistoCode ==
"D_MCs_ChDs") {
14532 val_max = val_max_proj;
14534 if (HistoCode ==
"D_LFN_ChNb") {
14537 if (HistoCode ==
"D_LFN_ChDs") {
14538 val_max = val_max_proj;
14540 if (HistoCode ==
"D_HFN_ChNb") {
14543 if (HistoCode ==
"D_HFN_ChDs") {
14544 val_max = val_max_proj;
14546 if (HistoCode ==
"D_SCs_ChNb") {
14549 if (HistoCode ==
"D_SCs_ChDs") {
14550 val_max = val_max_proj;
14552 if (HistoCode ==
"D_MSp_SpNb") {
14555 if (HistoCode ==
"D_MSp_SpDs") {
14556 val_max = val_max_proj;
14558 if (HistoCode ==
"D_SSp_SpNb") {
14561 if (HistoCode ==
"D_SSp_SpDs") {
14562 val_max = val_max_proj;
14564 if (HistoCode ==
"D_Adc_EvNb") {
14567 if (HistoCode ==
"D_Adc_EvDs") {
14568 val_max = val_max_proj;
14570 if (HistoCode ==
"H_Ped_Date") {
14573 if (HistoCode ==
"H_TNo_Date") {
14576 if (HistoCode ==
"H_MCs_Date") {
14579 if (HistoCode ==
"H_LFN_Date") {
14582 if (HistoCode ==
"H_HFN_Date") {
14585 if (HistoCode ==
"H_SCs_Date") {
14588 if (HistoCode ==
"H_Ped_RuDs") {
14591 if (HistoCode ==
"H_TNo_RuDs") {
14594 if (HistoCode ==
"H_MCs_RuDs") {
14597 if (HistoCode ==
"H_LFN_RuDs") {
14600 if (HistoCode ==
"H_HFN_RuDs") {
14603 if (HistoCode ==
"H_SCs_RuDs") {
14606 if (HistoCode ==
"H2LFccMosMatrix") {
14609 if (HistoCode ==
"H2HFccMosMatrix") {
14612 if (HistoCode ==
"H2CorccInStins") {
14621 if (HistoCode ==
"D_NOE_ChNb") {
14624 if (HistoCode ==
"D_NOE_ChDs") {
14627 if (HistoCode ==
"D_Ped_ChNb") {
14630 if (HistoCode ==
"D_Ped_ChDs") {
14633 if (HistoCode ==
"D_TNo_ChNb") {
14636 if (HistoCode ==
"D_TNo_ChDs") {
14639 if (HistoCode ==
"D_MCs_ChNb") {
14642 if (HistoCode ==
"D_MCs_ChDs") {
14645 if (HistoCode ==
"D_LFN_ChNb") {
14648 if (HistoCode ==
"D_LFN_ChDs") {
14651 if (HistoCode ==
"D_HFN_ChNb") {
14654 if (HistoCode ==
"D_HFN_ChDs") {
14657 if (HistoCode ==
"D_SCs_ChNb") {
14660 if (HistoCode ==
"D_SCs_ChDs") {
14663 if (HistoCode ==
"D_MSp_SpNb") {
14666 if (HistoCode ==
"D_MSp_SpDs") {
14669 if (HistoCode ==
"D_SSp_SpNb") {
14672 if (HistoCode ==
"D_SSp_SpDs") {
14675 if (HistoCode ==
"D_Adc_EvNb") {
14678 if (HistoCode ==
"D_Adc_EvDs") {
14681 if (HistoCode ==
"H_Ped_Date") {
14684 if (HistoCode ==
"H_TNo_Date") {
14687 if (HistoCode ==
"H_MCs_Date") {
14690 if (HistoCode ==
"H_LFN_Date") {
14693 if (HistoCode ==
"H_HFN_Date") {
14696 if (HistoCode ==
"H_SCs_Date") {
14699 if (HistoCode ==
"H_Ped_RuDs") {
14702 if (HistoCode ==
"H_TNo_RuDs") {
14705 if (HistoCode ==
"H_MCs_RuDs") {
14708 if (HistoCode ==
"H_LFN_RuDs") {
14711 if (HistoCode ==
"H_HFN_RuDs") {
14714 if (HistoCode ==
"H_SCs_RuDs") {
14717 if (HistoCode ==
"H2LFccMosMatrix") {
14720 if (HistoCode ==
"H2HFccMosMatrix") {
14723 if (HistoCode ==
"H2CorccInStins") {
14731 if (HistoCode ==
"D_NOE_ChNb") {
14734 if (HistoCode ==
"D_NOE_ChDs") {
14737 if (HistoCode ==
"D_Ped_ChNb") {
14740 if (HistoCode ==
"D_Ped_ChDs") {
14743 if (HistoCode ==
"D_TNo_ChNb") {
14746 if (HistoCode ==
"D_TNo_ChDs") {
14749 if (HistoCode ==
"D_MCs_ChNb") {
14752 if (HistoCode ==
"D_MCs_ChDs") {
14755 if (HistoCode ==
"D_LFN_ChNb") {
14758 if (HistoCode ==
"D_LFN_ChDs") {
14761 if (HistoCode ==
"D_HFN_ChNb") {
14764 if (HistoCode ==
"D_HFN_ChDs") {
14767 if (HistoCode ==
"D_SCs_ChNb") {
14770 if (HistoCode ==
"D_SCs_ChDs") {
14773 if (HistoCode ==
"D_MSp_SpNb") {
14776 if (HistoCode ==
"D_MSp_SpDs") {
14779 if (HistoCode ==
"D_SSp_SpNb") {
14782 if (HistoCode ==
"D_SSp_SpDs") {
14785 if (HistoCode ==
"D_Adc_EvNb") {
14788 if (HistoCode ==
"D_Adc_EvDs") {
14791 if (HistoCode ==
"H_Ped_Date") {
14794 if (HistoCode ==
"H_TNo_Date") {
14797 if (HistoCode ==
"H_MCs_Date") {
14800 if (HistoCode ==
"H_LFN_Date") {
14803 if (HistoCode ==
"H_HFN_Date") {
14806 if (HistoCode ==
"H_SCs_Date") {
14809 if (HistoCode ==
"H_Ped_RuDs") {
14812 if (HistoCode ==
"H_TNo_RuDs") {
14815 if (HistoCode ==
"H_MCs_RuDs") {
14818 if (HistoCode ==
"H_LFN_RuDs") {
14821 if (HistoCode ==
"H_HFN_RuDs") {
14824 if (HistoCode ==
"H_SCs_RuDs") {
14827 if (HistoCode ==
"H2LFccMosMatrix") {
14830 if (HistoCode ==
"H2HFccMosMatrix") {
14833 if (HistoCode ==
"H2CorccInStins") {
14845 if (HistoCode ==
"D_NOE_ChNb") {
14848 if (HistoCode ==
"D_NOE_ChDs") {
14851 if (HistoCode ==
"D_Ped_ChNb") {
14854 if (HistoCode ==
"D_Ped_ChDs") {
14857 if (HistoCode ==
"D_TNo_ChNb") {
14860 if (HistoCode ==
"D_TNo_ChDs") {
14863 if (HistoCode ==
"D_MCs_ChNb") {
14866 if (HistoCode ==
"D_MCs_ChDs") {
14869 if (HistoCode ==
"D_LFN_ChNb") {
14872 if (HistoCode ==
"D_LFN_ChDs") {
14875 if (HistoCode ==
"D_HFN_ChNb") {
14878 if (HistoCode ==
"D_HFN_ChDs") {
14881 if (HistoCode ==
"D_SCs_ChNb") {
14884 if (HistoCode ==
"D_SCs_ChDs") {
14887 if (HistoCode ==
"D_MSp_SpNb") {
14890 if (HistoCode ==
"D_MSp_SpDs") {
14893 if (HistoCode ==
"D_SSp_SpNb") {
14896 if (HistoCode ==
"D_SSp_SpDs") {
14899 if (HistoCode ==
"D_Adc_EvNb") {
14902 if (HistoCode ==
"D_Adc_EvDs") {
14905 if (HistoCode ==
"H_Ped_Date") {
14908 if (HistoCode ==
"H_TNo_Date") {
14911 if (HistoCode ==
"H_MCs_Date") {
14914 if (HistoCode ==
"H_LFN_Date") {
14917 if (HistoCode ==
"H_HFN_Date") {
14920 if (HistoCode ==
"H_SCs_Date") {
14923 if (HistoCode ==
"H_Ped_RuDs") {
14926 if (HistoCode ==
"H_TNo_RuDs") {
14929 if (HistoCode ==
"H_MCs_RuDs") {
14932 if (HistoCode ==
"H_LFN_RuDs") {
14935 if (HistoCode ==
"H_HFN_RuDs") {
14938 if (HistoCode ==
"H_SCs_RuDs") {
14945 TString xvar =
"(xvar not found)";
14952 if (HistoCode ==
"D_NOE_ChNb") {
14955 if (HistoCode ==
"D_NOE_ChDs") {
14958 if (HistoCode ==
"D_Ped_ChNb") {
14961 if (HistoCode ==
"D_Ped_ChDs") {
14964 if (HistoCode ==
"D_TNo_ChNb") {
14967 if (HistoCode ==
"D_TNo_ChDs") {
14970 if (HistoCode ==
"D_MCs_ChNb") {
14973 if (HistoCode ==
"D_MCs_ChDs") {
14976 if (HistoCode ==
"D_LFN_ChNb") {
14979 if (HistoCode ==
"D_LFN_ChDs") {
14982 if (HistoCode ==
"D_HFN_ChNb") {
14985 if (HistoCode ==
"D_HFN_ChDs") {
14988 if (HistoCode ==
"D_SCs_ChNb") {
14991 if (HistoCode ==
"D_SCs_ChDs") {
14994 if (HistoCode ==
"D_MSp_SpNb") {
14997 if (HistoCode ==
"D_MSp_SpDs") {
15000 if (HistoCode ==
"D_SSp_SpNb") {
15003 if (HistoCode ==
"D_SSp_SpDs") {
15006 if (HistoCode ==
"D_Adc_EvNb") {
15009 if (HistoCode ==
"D_Adc_EvDs") {
15012 if (HistoCode ==
"H_Ped_Date") {
15015 if (HistoCode ==
"H_TNo_Date") {
15018 if (HistoCode ==
"H_MCs_Date") {
15021 if (HistoCode ==
"H_LFN_Date") {
15024 if (HistoCode ==
"H_HFN_Date") {
15027 if (HistoCode ==
"H_SCs_Date") {
15030 if (HistoCode ==
"H_Ped_RuDs") {
15033 if (HistoCode ==
"H_TNo_RuDs") {
15036 if (HistoCode ==
"H_MCs_RuDs") {
15039 if (HistoCode ==
"H_LFN_RuDs") {
15042 if (HistoCode ==
"H_HFN_RuDs") {
15045 if (HistoCode ==
"H_SCs_RuDs") {
15058 if (HistoCode ==
"D_NOE_ChNb") {
15061 if (HistoCode ==
"D_NOE_ChDs") {
15064 if (HistoCode ==
"D_Ped_ChNb") {
15067 if (HistoCode ==
"D_Ped_ChDs") {
15070 if (HistoCode ==
"D_TNo_ChNb") {
15073 if (HistoCode ==
"D_TNo_ChDs") {
15076 if (HistoCode ==
"D_MCs_ChNb") {
15079 if (HistoCode ==
"D_MCs_ChDs") {
15082 if (HistoCode ==
"D_LFN_ChNb") {
15085 if (HistoCode ==
"D_LFN_ChDs") {
15088 if (HistoCode ==
"D_HFN_ChNb") {
15091 if (HistoCode ==
"D_HFN_ChDs") {
15094 if (HistoCode ==
"D_SCs_ChNb") {
15097 if (HistoCode ==
"D_SCs_ChDs") {
15100 if (HistoCode ==
"D_MSp_SpNb") {
15103 if (HistoCode ==
"D_MSp_SpDs") {
15106 if (HistoCode ==
"D_SSp_SpNb") {
15109 if (HistoCode ==
"D_Adc_EvDs") {
15112 if (HistoCode ==
"D_SSp_SpDs") {
15115 if (HistoCode ==
"D_Adc_EvNb") {
15118 if (HistoCode ==
"H_Ped_Date") {
15121 if (HistoCode ==
"H_TNo_Date") {
15124 if (HistoCode ==
"H_MCs_Date") {
15127 if (HistoCode ==
"H_LFN_Date") {
15130 if (HistoCode ==
"H_HFN_Date") {
15133 if (HistoCode ==
"H_SCs_Date") {
15136 if (HistoCode ==
"H_Ped_RuDs") {
15139 if (HistoCode ==
"H_TNo_RuDs") {
15142 if (HistoCode ==
"H_MCs_RuDs") {
15145 if (HistoCode ==
"H_LFN_RuDs") {
15148 if (HistoCode ==
"H_HFN_RuDs") {
15151 if (HistoCode ==
"H_SCs_RuDs") {
15158 TString yvar =
"(yvar not found)";
15165 if (HistoCode ==
"D_NOE_ChNb") {
15168 if (HistoCode ==
"D_NOE_ChDs") {
15171 if (HistoCode ==
"D_Ped_ChNb") {
15174 if (HistoCode ==
"D_Ped_ChDs") {
15177 if (HistoCode ==
"D_TNo_ChNb") {
15180 if (HistoCode ==
"D_TNo_ChDs") {
15183 if (HistoCode ==
"D_MCs_ChNb") {
15186 if (HistoCode ==
"D_MCs_ChDs") {
15189 if (HistoCode ==
"D_LFN_ChNb") {
15192 if (HistoCode ==
"D_LFN_ChDs") {
15195 if (HistoCode ==
"D_HFN_ChNb") {
15198 if (HistoCode ==
"D_HFN_ChDs") {
15201 if (HistoCode ==
"D_SCs_ChNb") {
15204 if (HistoCode ==
"D_SCs_ChDs") {
15207 if (HistoCode ==
"D_MSp_SpNb") {
15210 if (HistoCode ==
"D_MSp_SpDs") {
15213 if (HistoCode ==
"D_SSp_SpNb") {
15216 if (HistoCode ==
"D_SSp_SpDs") {
15219 if (HistoCode ==
"D_Adc_EvNb") {
15222 if (HistoCode ==
"D_Adc_EvDs") {
15225 if (HistoCode ==
"H_Ped_Date") {
15228 if (HistoCode ==
"H_TNo_Date") {
15231 if (HistoCode ==
"H_MCs_Date") {
15234 if (HistoCode ==
"H_LFN_Date") {
15237 if (HistoCode ==
"H_HFN_Date") {
15240 if (HistoCode ==
"H_SCs_Date") {
15243 if (HistoCode ==
"H_Ped_RuDs") {
15246 if (HistoCode ==
"H_TNo_RuDs") {
15249 if (HistoCode ==
"H_MCs_RuDs") {
15252 if (HistoCode ==
"H_LFN_RuDs") {
15255 if (HistoCode ==
"H_HFN_RuDs") {
15258 if (HistoCode ==
"H_SCs_RuDs") {
15271 if (HistoCode ==
"D_NOE_ChNb") {
15274 if (HistoCode ==
"D_NOE_ChDs") {
15277 if (HistoCode ==
"D_Ped_ChNb") {
15280 if (HistoCode ==
"D_Ped_ChDs") {
15283 if (HistoCode ==
"D_TNo_ChNb") {
15286 if (HistoCode ==
"D_TNo_ChDs") {
15289 if (HistoCode ==
"D_MCs_ChNb") {
15292 if (HistoCode ==
"D_MCs_ChDs") {
15295 if (HistoCode ==
"D_LFN_ChNb") {
15298 if (HistoCode ==
"D_LFN_ChDs") {
15301 if (HistoCode ==
"D_HFN_ChNb") {
15304 if (HistoCode ==
"D_HFN_ChDs") {
15307 if (HistoCode ==
"D_SCs_ChNb") {
15310 if (HistoCode ==
"D_SCs_ChDs") {
15313 if (HistoCode ==
"D_MSp_SpNb") {
15316 if (HistoCode ==
"D_MSp_SpDs") {
15319 if (HistoCode ==
"D_SSp_SpNb") {
15322 if (HistoCode ==
"D_SSp_SpDs") {
15325 if (HistoCode ==
"D_Adc_EvNb") {
15328 if (HistoCode ==
"D_Adc_EvDs") {
15331 if (HistoCode ==
"H_Ped_Date") {
15334 if (HistoCode ==
"H_TNo_Date") {
15337 if (HistoCode ==
"H_MCs_Date") {
15340 if (HistoCode ==
"H_LFN_Date") {
15343 if (HistoCode ==
"H_HFN_Date") {
15346 if (HistoCode ==
"H_SCs_Date") {
15349 if (HistoCode ==
"H_Ped_RuDs") {
15352 if (HistoCode ==
"H_TNo_RuDs") {
15355 if (HistoCode ==
"H_MCs_RuDs") {
15358 if (HistoCode ==
"H_LFN_RuDs") {
15361 if (HistoCode ==
"H_HFN_RuDs") {
15364 if (HistoCode ==
"H_SCs_RuDs") {
15378 if (HistoCode ==
"D_NOE_ChNb") {
15381 if (HistoCode ==
"D_NOE_ChDs") {
15384 if (HistoCode ==
"D_Ped_ChNb") {
15387 if (HistoCode ==
"D_Ped_ChDs") {
15390 if (HistoCode ==
"D_TNo_ChNb") {
15393 if (HistoCode ==
"D_TNo_ChDs") {
15396 if (HistoCode ==
"D_MCs_ChNb") {
15399 if (HistoCode ==
"D_MCs_ChDs") {
15402 if (HistoCode ==
"D_LFN_ChNb") {
15405 if (HistoCode ==
"D_LFN_ChDs") {
15408 if (HistoCode ==
"D_HFN_ChNb") {
15411 if (HistoCode ==
"D_HFN_ChDs") {
15414 if (HistoCode ==
"D_SCs_ChNb") {
15417 if (HistoCode ==
"D_SCs_ChDs") {
15420 if (HistoCode ==
"D_MSp_SpNb") {
15423 if (HistoCode ==
"D_MSp_SpDs") {
15426 if (HistoCode ==
"D_SSp_SpNb") {
15429 if (HistoCode ==
"D_SSp_SpDs") {
15432 if (HistoCode ==
"D_Adc_EvNb") {
15435 if (HistoCode ==
"D_Adc_EvDs") {
15438 if (HistoCode ==
"H_Ped_Date") {
15441 if (HistoCode ==
"H_TNo_Date") {
15444 if (HistoCode ==
"H_MCs_Date") {
15447 if (HistoCode ==
"H_LFN_Date") {
15450 if (HistoCode ==
"H_HFN_Date") {
15453 if (HistoCode ==
"H_SCs_Date") {
15456 if (HistoCode ==
"H_Ped_RuDs") {
15459 if (HistoCode ==
"H_TNo_RuDs") {
15462 if (HistoCode ==
"H_MCs_RuDs") {
15465 if (HistoCode ==
"H_LFN_RuDs") {
15468 if (HistoCode ==
"H_HFN_RuDs") {
15471 if (HistoCode ==
"H_SCs_RuDs") {
15481 memo_flag =
"(no memo_flag info)";
15483 Int_t memo_flag_number = -1;
15494 if (memo_flag_number == 0) {
15495 memo_flag =
"Free";
15497 if (memo_flag_number >= 1) {
15498 memo_flag =
"Busy";
15509 memo_flag =
"(no memo_flag info)";
15511 Int_t memo_flag_number = -1;
15518 if (HistoCode ==
"D_NOE_ChNb") {
15521 if (HistoCode ==
"D_NOE_ChDs") {
15524 if (HistoCode ==
"D_Ped_ChNb") {
15527 if (HistoCode ==
"D_Ped_ChDs") {
15530 if (HistoCode ==
"D_TNo_ChNb") {
15533 if (HistoCode ==
"D_TNo_ChDs") {
15536 if (HistoCode ==
"D_MCs_ChNb") {
15539 if (HistoCode ==
"D_MCs_ChDs") {
15542 if (HistoCode ==
"D_LFN_ChNb") {
15545 if (HistoCode ==
"D_LFN_ChDs") {
15548 if (HistoCode ==
"D_HFN_ChNb") {
15551 if (HistoCode ==
"D_HFN_ChDs") {
15554 if (HistoCode ==
"D_SCs_ChNb") {
15557 if (HistoCode ==
"D_SCs_ChDs") {
15560 if (HistoCode ==
"D_MSp_SpNb") {
15563 if (HistoCode ==
"D_MSp_SpDs") {
15566 if (HistoCode ==
"D_SSp_SpNb") {
15569 if (HistoCode ==
"D_SSp_SpDs") {
15572 if (HistoCode ==
"D_Adc_EvNb") {
15575 if (HistoCode ==
"D_Adc_EvDs") {
15578 if (HistoCode ==
"H_Ped_Date") {
15581 if (HistoCode ==
"H_TNo_Date") {
15584 if (HistoCode ==
"H_MCs_Date") {
15587 if (HistoCode ==
"H_LFN_Date") {
15590 if (HistoCode ==
"H_HFN_Date") {
15593 if (HistoCode ==
"H_SCs_Date") {
15596 if (HistoCode ==
"H_Ped_RuDs") {
15599 if (HistoCode ==
"H_TNo_RuDs") {
15602 if (HistoCode ==
"H_MCs_RuDs") {
15605 if (HistoCode ==
"H_LFN_RuDs") {
15608 if (HistoCode ==
"H_HFN_RuDs") {
15611 if (HistoCode ==
"H_SCs_RuDs") {
15616 if (memo_flag_number == 0) {
15617 memo_flag =
"Free";
15619 if (memo_flag_number == 1) {
15620 memo_flag =
"Busy";
15627 const TString& HistoCode,
const TString& opt_plot,
const TString& canvas_name, UInt_t canv_w, UInt_t canv_h) {
15630 TCanvas* main_canvas =
nullptr;
15633 fCanvH1SamePlus =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15638 if (HistoCode ==
"D_NOE_ChNb") {
15639 fCanvD_NOE_ChNb =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15643 if (HistoCode ==
"D_NOE_ChDs") {
15644 fCanvD_NOE_ChDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15648 if (HistoCode ==
"D_Ped_ChNb") {
15649 fCanvD_Ped_ChNb =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15653 if (HistoCode ==
"D_Ped_ChDs") {
15654 fCanvD_Ped_ChDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15658 if (HistoCode ==
"D_TNo_ChNb") {
15659 fCanvD_TNo_ChNb =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15663 if (HistoCode ==
"D_TNo_ChDs") {
15664 fCanvD_TNo_ChDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15668 if (HistoCode ==
"D_MCs_ChNb") {
15669 fCanvD_MCs_ChNb =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15673 if (HistoCode ==
"D_MCs_ChDs") {
15674 fCanvD_MCs_ChDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15678 if (HistoCode ==
"D_LFN_ChNb") {
15679 fCanvD_LFN_ChNb =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15683 if (HistoCode ==
"D_LFN_ChDs") {
15684 fCanvD_LFN_ChDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15688 if (HistoCode ==
"D_HFN_ChNb") {
15689 fCanvD_HFN_ChNb =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15693 if (HistoCode ==
"D_HFN_ChDs") {
15694 fCanvD_HFN_ChDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15698 if (HistoCode ==
"D_SCs_ChNb") {
15699 fCanvD_SCs_ChNb =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15703 if (HistoCode ==
"D_SCs_ChDs") {
15704 fCanvD_SCs_ChDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15709 if (HistoCode ==
"D_MSp_SpNb") {
15710 fCanvD_MSp_SpNb =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15714 if (HistoCode ==
"D_MSp_SpDs") {
15715 fCanvD_MSp_SpDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15719 if (HistoCode ==
"D_SSp_SpNb") {
15720 fCanvD_SSp_SpNb =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15724 if (HistoCode ==
"D_SSp_SpDs") {
15725 fCanvD_SSp_SpDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15730 if (HistoCode ==
"D_Adc_EvNb") {
15731 fCanvD_Adc_EvNb =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15735 if (HistoCode ==
"D_Adc_EvDs") {
15736 fCanvD_Adc_EvDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15741 if (HistoCode ==
"H_Ped_Date") {
15742 fCanvH_Ped_Date =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15746 if (HistoCode ==
"H_TNo_Date") {
15747 fCanvH_TNo_Date =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15751 if (HistoCode ==
"H_MCs_Date") {
15752 fCanvH_MCs_Date =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15756 if (HistoCode ==
"H_LFN_Date") {
15757 fCanvH_LFN_Date =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15761 if (HistoCode ==
"H_HFN_Date") {
15762 fCanvH_HFN_Date =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15766 if (HistoCode ==
"H_SCs_Date") {
15767 fCanvH_SCs_Date =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15772 if (HistoCode ==
"H_Ped_RuDs") {
15773 fCanvH_Ped_RuDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15777 if (HistoCode ==
"H_TNo_RuDs") {
15778 fCanvH_TNo_RuDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15782 if (HistoCode ==
"H_MCs_RuDs") {
15783 fCanvH_MCs_RuDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15787 if (HistoCode ==
"H_LFN_RuDs") {
15788 fCanvH_LFN_RuDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15792 if (HistoCode ==
"H_HFN_RuDs") {
15793 fCanvH_HFN_RuDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15797 if (HistoCode ==
"H_SCs_RuDs") {
15798 fCanvH_SCs_RuDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15803 return main_canvas;
15824 if (HistoCode ==
"D_NOE_ChNb") {
15834 if (HistoCode ==
"D_NOE_ChDs")
15845 if (HistoCode ==
"D_Ped_ChNb") {
15855 if (HistoCode ==
"D_Ped_ChDs") {
15865 if (HistoCode ==
"D_TNo_ChNb") {
15875 if (HistoCode ==
"D_TNo_ChDs")
15886 if (HistoCode ==
"D_MCs_ChNb") {
15896 if (HistoCode ==
"D_MCs_ChDs") {
15906 if (HistoCode ==
"D_LFN_ChNb")
15917 if (HistoCode ==
"D_LFN_ChDs") {
15927 if (HistoCode ==
"D_HFN_ChNb") {
15937 if (HistoCode ==
"D_HFN_ChDs") {
15947 if (HistoCode ==
"D_SCs_ChNb")
15958 if (HistoCode ==
"D_SCs_ChDs") {
15968 if (HistoCode ==
"D_MSp_SpNb") {
15978 if (HistoCode ==
"D_MSp_SpDs") {
15988 if (HistoCode ==
"D_SSp_SpNb")
15999 if (HistoCode ==
"D_SSp_SpDs")
16010 if (HistoCode ==
"D_Adc_EvDs") {
16020 if (HistoCode ==
"D_Adc_EvNb") {
16030 if (HistoCode ==
"H_Ped_Date")
16040 if (HistoCode ==
"H_TNo_Date") {
16049 if (HistoCode ==
"H_MCs_Date") {
16059 if (HistoCode ==
"H_LFN_Date")
16069 if (HistoCode ==
"H_HFN_Date") {
16078 if (HistoCode ==
"H_SCs_Date") {
16088 if (HistoCode ==
"H_Ped_RuDs")
16098 if (HistoCode ==
"H_TNo_RuDs") {
16107 if (HistoCode ==
"H_MCs_RuDs") {
16117 if (HistoCode ==
"H_LFN_RuDs")
16127 if (HistoCode ==
"H_HFN_RuDs") {
16136 if (HistoCode ==
"H_SCs_RuDs") {
16150 TCanvas* main_canvas =
nullptr;
16157 if (HistoCode ==
"D_NOE_ChNb") {
16160 if (HistoCode ==
"D_NOE_ChDs") {
16163 if (HistoCode ==
"D_Ped_ChNb") {
16166 if (HistoCode ==
"D_Ped_ChDs") {
16169 if (HistoCode ==
"D_TNo_ChNb") {
16172 if (HistoCode ==
"D_TNo_ChDs") {
16175 if (HistoCode ==
"D_MCs_ChNb") {
16178 if (HistoCode ==
"D_MCs_ChDs") {
16181 if (HistoCode ==
"D_LFN_ChNb") {
16184 if (HistoCode ==
"D_LFN_ChDs") {
16187 if (HistoCode ==
"D_HFN_ChNb") {
16190 if (HistoCode ==
"D_HFN_ChDs") {
16193 if (HistoCode ==
"D_SCs_ChNb") {
16196 if (HistoCode ==
"D_SCs_ChDs") {
16199 if (HistoCode ==
"D_MSp_SpNb") {
16202 if (HistoCode ==
"D_MSp_SpDs") {
16205 if (HistoCode ==
"D_SSp_SpNb") {
16208 if (HistoCode ==
"D_SSp_SpDs") {
16211 if (HistoCode ==
"D_Adc_EvNb") {
16214 if (HistoCode ==
"D_Adc_EvDs") {
16217 if (HistoCode ==
"H_Ped_Date") {
16220 if (HistoCode ==
"H_TNo_Date") {
16223 if (HistoCode ==
"H_MCs_Date") {
16226 if (HistoCode ==
"H_LFN_Date") {
16229 if (HistoCode ==
"H_HFN_Date") {
16232 if (HistoCode ==
"H_SCs_Date") {
16235 if (HistoCode ==
"H_Ped_RuDs") {
16238 if (HistoCode ==
"H_TNo_RuDs") {
16241 if (HistoCode ==
"H_MCs_RuDs") {
16244 if (HistoCode ==
"H_LFN_RuDs") {
16247 if (HistoCode ==
"H_HFN_RuDs") {
16250 if (HistoCode ==
"H_SCs_RuDs") {
16254 return main_canvas;
16266 std::cout <<
"TEcnaHistos::PlotCloneOfCurrentCanvas()> Last canvas has been removed. No clone can be done." 16268 <<
" Please, display the canvas again." <<
fTTBELL << std::endl;
16271 std::cout <<
"TEcnaHistos::PlotCloneOfCurrentCanvas()> No canvas has been created. No clone can be done." <<
fTTBELL 16280 TVirtualPad* main_subpad =
nullptr;
16286 fCanvH1SamePlus->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16293 if (HistoCode ==
"D_NOE_ChNb") {
16294 fCanvD_NOE_ChNb->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16300 if (HistoCode ==
"D_NOE_ChDs") {
16301 fCanvD_NOE_ChDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16307 if (HistoCode ==
"D_Ped_ChNb") {
16308 fCanvD_Ped_ChNb->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16314 if (HistoCode ==
"D_Ped_ChDs") {
16315 fCanvD_Ped_ChDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16321 if (HistoCode ==
"D_TNo_ChNb") {
16322 fCanvD_TNo_ChNb->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16328 if (HistoCode ==
"D_TNo_ChDs") {
16329 fCanvD_TNo_ChDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16335 if (HistoCode ==
"D_MCs_ChNb") {
16336 fCanvD_MCs_ChNb->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16342 if (HistoCode ==
"D_MCs_ChDs") {
16343 fCanvD_MCs_ChDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16349 if (HistoCode ==
"D_LFN_ChNb") {
16350 fCanvD_LFN_ChNb->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16356 if (HistoCode ==
"D_LFN_ChDs") {
16357 fCanvD_LFN_ChDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16363 if (HistoCode ==
"D_HFN_ChNb") {
16364 fCanvD_HFN_ChNb->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16370 if (HistoCode ==
"D_HFN_ChDs") {
16371 fCanvD_HFN_ChDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16377 if (HistoCode ==
"D_SCs_ChNb") {
16378 fCanvD_SCs_ChNb->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16384 if (HistoCode ==
"D_SCs_ChDs") {
16385 fCanvD_SCs_ChDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16391 if (HistoCode ==
"D_MSp_SpNb") {
16392 fCanvD_MSp_SpNb->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16398 if (HistoCode ==
"D_MSp_SpDs") {
16399 fCanvD_MSp_SpDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16405 if (HistoCode ==
"D_SSp_SpNb") {
16406 fCanvD_SSp_SpNb->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16412 if (HistoCode ==
"D_SSp_SpDs") {
16413 fCanvD_SSp_SpDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16419 if (HistoCode ==
"D_Adc_EvNb") {
16420 fCanvD_Adc_EvNb->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16426 if (HistoCode ==
"D_Adc_EvDs") {
16427 fCanvD_Adc_EvDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16433 if (HistoCode ==
"H_Ped_Date") {
16434 fCanvH_Ped_Date->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16440 if (HistoCode ==
"H_TNo_Date") {
16441 fCanvH_TNo_Date->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16447 if (HistoCode ==
"H_MCs_Date") {
16448 fCanvH_MCs_Date->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16454 if (HistoCode ==
"H_LFN_Date") {
16455 fCanvH_LFN_Date->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16461 if (HistoCode ==
"H_HFN_Date") {
16462 fCanvH_HFN_Date->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16468 if (HistoCode ==
"H_SCs_Date") {
16469 fCanvH_SCs_Date->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16475 if (HistoCode ==
"H_Ped_RuDs") {
16476 fCanvH_Ped_RuDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16482 if (HistoCode ==
"H_TNo_RuDs") {
16483 fCanvH_TNo_RuDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16489 if (HistoCode ==
"H_MCs_RuDs") {
16490 fCanvH_MCs_RuDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16496 if (HistoCode ==
"H_LFN_RuDs") {
16497 fCanvH_LFN_RuDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16503 if (HistoCode ==
"H_HFN_RuDs") {
16504 fCanvH_HFN_RuDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16510 if (HistoCode ==
"H_SCs_RuDs") {
16511 fCanvH_SCs_RuDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16518 if (main_subpad ==
nullptr) {
16519 std::cout <<
"*TEcnaHistos::ActivePad(...)> main_subpad = " << main_subpad <<
". This canvas has been closed." 16523 return main_subpad;
16633 std::cout <<
"!TEcnaHistos::DoCanvasClosed(...)> WARNING: canvas has been closed." << std::endl;
16644 if (HistoCode ==
"D_NOE_ChNb") {
16647 if (HistoCode ==
"D_NOE_ChDs") {
16650 if (HistoCode ==
"D_Ped_ChNb") {
16653 if (HistoCode ==
"D_Ped_ChDs") {
16656 if (HistoCode ==
"D_TNo_ChNb") {
16659 if (HistoCode ==
"D_TNo_ChDs") {
16662 if (HistoCode ==
"D_MCs_ChNb") {
16665 if (HistoCode ==
"D_MCs_ChDs") {
16668 if (HistoCode ==
"D_LFN_ChNb") {
16671 if (HistoCode ==
"D_LFN_ChDs") {
16674 if (HistoCode ==
"D_HFN_ChNb") {
16677 if (HistoCode ==
"D_HFN_ChDs") {
16680 if (HistoCode ==
"D_SCs_ChNb") {
16683 if (HistoCode ==
"D_SCs_ChDs") {
16686 if (HistoCode ==
"D_MSp_SpNb") {
16689 if (HistoCode ==
"D_MSp_SpDs") {
16692 if (HistoCode ==
"D_SSp_SpNb") {
16695 if (HistoCode ==
"D_SSp_SpDs") {
16698 if (HistoCode ==
"D_Adc_EvNb") {
16701 if (HistoCode ==
"D_Adc_EvDs") {
16704 if (HistoCode ==
"H_Ped_Date") {
16707 if (HistoCode ==
"H_TNo_Date") {
16710 if (HistoCode ==
"H_MCs_Date") {
16713 if (HistoCode ==
"H_LFN_Date") {
16716 if (HistoCode ==
"H_HFN_Date") {
16719 if (HistoCode ==
"H_SCs_Date") {
16722 if (HistoCode ==
"H_Ped_RuDs") {
16725 if (HistoCode ==
"H_TNo_RuDs") {
16728 if (HistoCode ==
"H_MCs_RuDs") {
16731 if (HistoCode ==
"H_LFN_RuDs") {
16734 if (HistoCode ==
"H_HFN_RuDs") {
16737 if (HistoCode ==
"H_SCs_RuDs") {
16747 TPaveText* main_pavtxt =
nullptr;
16754 if (HistoCode ==
"D_NOE_ChNb") {
16757 if (HistoCode ==
"D_NOE_ChDs") {
16760 if (HistoCode ==
"D_Ped_ChNb") {
16763 if (HistoCode ==
"D_Ped_ChDs") {
16766 if (HistoCode ==
"D_TNo_ChNb") {
16769 if (HistoCode ==
"D_TNo_ChDs") {
16772 if (HistoCode ==
"D_MCs_ChNb") {
16775 if (HistoCode ==
"D_MCs_ChDs") {
16778 if (HistoCode ==
"D_LFN_ChNb") {
16781 if (HistoCode ==
"D_LFN_ChDs") {
16784 if (HistoCode ==
"D_HFN_ChNb") {
16787 if (HistoCode ==
"D_HFN_ChDs") {
16790 if (HistoCode ==
"D_SCs_ChNb") {
16793 if (HistoCode ==
"D_SCs_ChDs") {
16796 if (HistoCode ==
"D_MSp_SpNb") {
16799 if (HistoCode ==
"D_MSp_SpDs") {
16802 if (HistoCode ==
"D_SSp_SpNb") {
16805 if (HistoCode ==
"D_SSp_SpDs") {
16808 if (HistoCode ==
"D_Adc_EvNb") {
16811 if (HistoCode ==
"D_Adc_EvDs") {
16814 if (HistoCode ==
"H_Ped_Date") {
16817 if (HistoCode ==
"H_TNo_Date") {
16820 if (HistoCode ==
"H_MCs_Date") {
16823 if (HistoCode ==
"H_LFN_Date") {
16826 if (HistoCode ==
"H_HFN_Date") {
16829 if (HistoCode ==
"H_SCs_Date") {
16832 if (HistoCode ==
"H_Ped_RuDs") {
16835 if (HistoCode ==
"H_TNo_RuDs") {
16838 if (HistoCode ==
"H_MCs_RuDs") {
16841 if (HistoCode ==
"H_LFN_RuDs") {
16844 if (HistoCode ==
"H_HFN_RuDs") {
16847 if (HistoCode ==
"H_SCs_RuDs") {
16852 if (main_pavtxt ==
nullptr) {
16853 std::cout <<
"*TEcnaHistos::ActivePavTxt(...)> ERROR: main_pavtxt = " << main_pavtxt << std::endl;
16856 return main_pavtxt;
16881 const TString& HistoCode,
16882 const TString& opt_plot,
16883 const Int_t& arg_AlreadyRead) {
16887 if (HistoType ==
"Global") {
16888 h_his0->SetMarkerStyle(1);
16903 if (HistoCode ==
"D_NOE_ChNb") {
16916 if (HistoCode ==
"D_NOE_ChDs") {
16929 if (HistoCode ==
"D_Ped_ChNb") {
16942 if (HistoCode ==
"D_Ped_ChDs") {
16955 if (HistoCode ==
"D_TNo_ChNb") {
16968 if (HistoCode ==
"D_TNo_ChDs") {
16982 if (HistoCode ==
"D_MCs_ChNb") {
16995 if (HistoCode ==
"D_MCs_ChDs") {
17008 if (HistoCode ==
"D_LFN_ChNb") {
17021 if (HistoCode ==
"D_LFN_ChDs") {
17034 if (HistoCode ==
"D_HFN_ChNb") {
17047 if (HistoCode ==
"D_HFN_ChDs") {
17061 if (HistoCode ==
"D_SCs_ChNb") {
17074 if (HistoCode ==
"D_SCs_ChDs") {
17088 if (HistoCode ==
"D_MSp_SpNb") {
17089 if ((opt_plot ==
fOnlyOnePlot && arg_AlreadyRead == 0) ||
17095 h_his0->SetFillColor((Color_t)0);
17108 if (HistoCode ==
"D_MSp_SpDs") {
17109 if ((opt_plot ==
fOnlyOnePlot && arg_AlreadyRead == 0) ||
17115 h_his0->SetFillColor((Color_t)0);
17128 if (HistoCode ==
"D_SSp_SpNb") {
17129 if ((opt_plot ==
fOnlyOnePlot && arg_AlreadyRead == 0) ||
17135 h_his0->SetFillColor((Color_t)0);
17148 if (HistoCode ==
"D_SSp_SpDs") {
17149 if ((opt_plot ==
fOnlyOnePlot && arg_AlreadyRead == 0) ||
17155 h_his0->SetFillColor((Color_t)0);
17168 if (HistoCode ==
"D_Adc_EvNb") {
17180 gPad->SetGrid(1, 0);
17183 if (HistoCode ==
"D_Adc_EvDs") {
17197 if (HistoCode ==
"H_Ped_RuDs") {
17209 gPad->SetGrid(1, 1);
17212 if (HistoCode ==
"H_TNo_RuDs") {
17224 gPad->SetGrid(1, 1);
17227 if (HistoCode ==
"H_MCs_RuDs") {
17239 gPad->SetGrid(1, 1);
17242 if (HistoCode ==
"H_LFN_RuDs") {
17254 gPad->SetGrid(1, 1);
17257 if (HistoCode ==
"H_HFN_RuDs") {
17269 gPad->SetGrid(1, 1);
17272 if (HistoCode ==
"H_SCs_RuDs") {
17284 gPad->SetGrid(1, 1);
17304 gPad->SetGrid(1, 1);
17308 if (HistoCode ==
"H_Ped_Date") {
17320 gPad->SetGrid(1, 1);
17323 if (HistoCode ==
"H_TNo_Date") {
17335 gPad->SetGrid(1, 1);
17338 if (HistoCode ==
"H_MCs_Date") {
17350 gPad->SetGrid(1, 1);
17353 if (HistoCode ==
"H_LFN_Date") {
17365 gPad->SetGrid(1, 1);
17368 if (HistoCode ==
"H_HFN_Date") {
17380 gPad->SetGrid(1, 1);
17383 if (HistoCode ==
"H_SCs_Date") {
17395 gPad->SetGrid(1, 1);
17410 if (HistoCode ==
"D_NOE_ChNb") {
17413 if (HistoCode ==
"D_NOE_ChDs") {
17416 if (HistoCode ==
"D_Ped_ChNb") {
17419 if (HistoCode ==
"D_Ped_ChDs") {
17422 if (HistoCode ==
"D_TNo_ChNb") {
17425 if (HistoCode ==
"D_TNo_ChDs") {
17428 if (HistoCode ==
"D_MCs_ChNb") {
17431 if (HistoCode ==
"D_MCs_ChDs") {
17434 if (HistoCode ==
"D_LFN_ChNb") {
17437 if (HistoCode ==
"D_LFN_ChDs") {
17440 if (HistoCode ==
"D_HFN_ChNb") {
17443 if (HistoCode ==
"D_HFN_ChDs") {
17446 if (HistoCode ==
"D_SCs_ChNb") {
17449 if (HistoCode ==
"D_SCs_ChDs") {
17452 if (HistoCode ==
"D_MSp_SpNb") {
17455 if (HistoCode ==
"D_MSp_SpDs") {
17458 if (HistoCode ==
"D_SSp_SpNb") {
17461 if (HistoCode ==
"D_SSp_SpDs") {
17464 if (HistoCode ==
"D_Adc_EvNb") {
17467 if (HistoCode ==
"D_Adc_EvDs") {
17470 if (HistoCode ==
"H_Ped_Date") {
17473 if (HistoCode ==
"H_TNo_Date") {
17476 if (HistoCode ==
"H_MCs_Date") {
17479 if (HistoCode ==
"H_LFN_Date") {
17482 if (HistoCode ==
"H_HFN_Date") {
17485 if (HistoCode ==
"H_SCs_Date") {
17488 if (HistoCode ==
"H_Ped_RuDs") {
17491 if (HistoCode ==
"H_TNo_RuDs") {
17494 if (HistoCode ==
"H_MCs_RuDs") {
17497 if (HistoCode ==
"H_LFN_RuDs") {
17500 if (HistoCode ==
"H_HFN_RuDs") {
17503 if (HistoCode ==
"H_SCs_RuDs") {
17513 TColor* my_color =
new TColor();
17516 if (DeeEndcap ==
"EE+") {
17517 if (DeeDir ==
"right" && QuadType ==
"top") {
17520 if (DeeDir ==
"right" && QuadType ==
"bottom") {
17523 if (DeeDir ==
"left" && QuadType ==
"top") {
17524 couleur = (Color_t)my_color->GetColor(
"#006600");
17526 if (DeeDir ==
"left" && QuadType ==
"bottom") {
17527 couleur = (Color_t)my_color->GetColor(
"#CC3300");
17530 if (DeeEndcap ==
"EE-") {
17531 if (DeeDir ==
"right" && QuadType ==
"top") {
17532 couleur = (Color_t)my_color->GetColor(
"#008800");
17534 if (DeeDir ==
"right" && QuadType ==
"bottom") {
17535 couleur = (Color_t)my_color->GetColor(
"#EE5500");
17537 if (DeeDir ==
"left" && QuadType ==
"top") {
17540 if (DeeDir ==
"left" && QuadType ==
"bottom") {
17572 graph->SetMarkerStyle(1);
17573 if (HistoType ==
"Evol") {
17574 graph->SetMarkerStyle(20);
17597 std::cout <<
"TEcnaHistos::NewCanvas(...)> *** ERROR *** " << opt_plot.Data() <<
": " 17598 <<
"unknown option for NewCanvas. Only " <<
fSameOnePlot <<
" option is accepted." <<
fTTBELL 17618 if (HistoCode ==
"D_NOE_ChNb") {
17629 if (HistoCode ==
"D_NOE_ChDs") {
17640 if (HistoCode ==
"D_Ped_ChNb")
17652 if (HistoCode ==
"D_Ped_ChDs") {
17663 if (HistoCode ==
"D_TNo_ChNb") {
17674 if (HistoCode ==
"D_TNo_ChDs") {
17685 if (HistoCode ==
"D_MCs_ChNb")
17697 if (HistoCode ==
"D_MCs_ChDs") {
17708 if (HistoCode ==
"D_LFN_ChNb") {
17719 if (HistoCode ==
"D_LFN_ChDs")
17731 if (HistoCode ==
"D_HFN_ChNb") {
17742 if (HistoCode ==
"D_HFN_ChDs") {
17753 if (HistoCode ==
"D_SCs_ChNb") {
17764 if (HistoCode ==
"D_SCs_ChDs")
17776 if (HistoCode ==
"D_MSp_SpNb") {
17787 if (HistoCode ==
"D_MSp_SpDs") {
17798 if (HistoCode ==
"D_SSp_SpNb") {
17809 if (HistoCode ==
"D_SSp_SpDs") {
17820 if (HistoCode ==
"D_Adc_EvNb")
17832 if (HistoCode ==
"D_Adc_EvDs") {
17843 if (HistoCode ==
"H_Ped_Date") {
17854 if (HistoCode ==
"H_TNo_Date") {
17865 if (HistoCode ==
"H_MCs_Date")
17877 if (HistoCode ==
"H_LFN_Date") {
17888 if (HistoCode ==
"H_HFN_Date") {
17899 if (HistoCode ==
"H_SCs_Date") {
17910 if (HistoCode ==
"H_Ped_RuDs") {
17921 if (HistoCode ==
"H_TNo_RuDs") {
17932 if (HistoCode ==
"H_MCs_RuDs")
17944 if (HistoCode ==
"H_LFN_RuDs") {
17955 if (HistoCode ==
"H_HFN_RuDs") {
17966 if (HistoCode ==
"H_SCs_RuDs") {
17982 const TString& CorOrCov,
17983 const Int_t& StexStinEcna,
17984 const Int_t& MatrixBinIndex,
17985 const Int_t& MatSize,
17986 const TMatrixD& read_matrix) {
17989 Int_t ChanNumber = MatrixBinIndex;
TCanvasImp * fImpH_TNo_Date
Int_t fMemoPlotD_HFN_ChDs
TVirtualPad * fPadD_NOE_ChDs
TPaveText * fPavTxtD_MSp_SpNb
Int_t fNbOfListFileH_MCs_Date
Int_t MaxCrysHocoInStex()
void HistimePlot(TGraph *, Axis_t, Axis_t, const TString &, const TString &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const TString &, const Int_t &)
Int_t fMemoPlotH_HFN_Date
TCanvas * CreateCanvas(const TString &, const TString &, const TString &, UInt_t, UInt_t)
TPaveText * fPavTxtH_TNo_RuDs
static constexpr int charArrLen
TEcnaNumbering * fEcalNumbering
Int_t fMemoColorH_LFN_RuDs
TPaveText * fPavTxtD_Ped_ChNb
TString SetHistoXAxisTitle(const TString &)
Int_t fCanvSameD_MCs_ChNb
void PlotDetector(const TVectorD &, const TString &, const TString &)
void SCCrystalNumbering(const Int_t &, const Int_t &)
TCanvas * fCanvH_SCs_RuDs
void XtalSamplesSigma(const TVectorD &, const Int_t &, const Int_t &, const Int_t &, const TString &)
TPaveText * fPavTxtH_HFN_RuDs
TVectorD ReadLowFrequencyNoise(const Int_t &)
Int_t fNbBinsMemoH_LFN_Date
void SetViewHistoStats(TH1D *, const TString &)
TCanvasImp * fImpD_Ped_ChDs
Int_t fNbBinsMemoH_MCs_Date
TVirtualPad * fPadD_LFN_ChNb
Int_t fMemoColorD_TNo_ChNb
Int_t fNbBinsMemoD_HFN_ChNb
Color_t SetColorsForNumbers(const TString &)
Int_t fMemoColorH_TNo_Date
TVectorD ReadAverageHighFrequencyNoise(const Int_t &)
Int_t fMemoColorD_SCs_ChNb
TString BuildStandard1DHistoCodeX(const TString &, const TString &)
Int_t fMemoColorH_SCs_Date
TPaveText * SetPaveStinsXY(const Int_t &, const Int_t &)
TString GetSCQuadFrom1DeeSCEcna(const Int_t &)
TPaveText * fPavComAnaRun
Int_t GetNotConnectedDSSCFromIndex(const Int_t &)
Int_t GetLastReqEvtNumber()
Int_t GetHistoNumberOfBins(const TString &, const Int_t &)
TString fCorrelationMatrix
Int_t fNbBinsMemoD_SSp_SpNb
void InitSpecParBeforeFileReading()
TCanvasImp * fImpH_MCs_Date
Int_t fMemoColorH_HFN_RuDs
void ViewStex(const TVectorD &, const Int_t &, const TString &)
Int_t GetHistoryRunListParameters(const TString &, const TString &)
TPaveText * fPavTxtH_MCs_Date
Int_t Get0SMEchaFrom1SMTowAnd0TowEcha(const Int_t &, const Int_t &)
TString GetMemoFlag(const TString &)
Int_t Get1DeeSCEcnaFromDeeSCCons(const Int_t &, const Int_t &)
TString BuildStandardPlotOption(const TString &, const TString &)
Int_t fMemoColorH_MCs_RuDs
TPaveText * fPavTxtH_SCs_RuDs
void SetNbBinsMemo(const TString &, const TString &, const Int_t &)
Float_t AxisTitleOffset()
Int_t fMemoPlotD_Adc_EvNb
TString GetXVarFromMemo(const TString &, const TString &)
Int_t fMemoPlotD_NOE_ChDs
void SetXsupMemoFromValue(const TString &, const Double_t &)
Int_t GetCodePlotAllXtalsInStin()
TCanvasImp * fImpD_MSp_SpDs
void SetViewHistoPadMargins(const TString &, const TString &)
void ViewStinGrid(const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const TString &)
TString GetCodeSameOnePlot()
void WriteAsciiCovariancesBetweenSamples(const Int_t &, const Int_t &, const Int_t &, const TMatrixD &)
Double_t GetPhiMin(const Int_t &, const Int_t &)
TCanvas * fCanvD_NOE_ChNb
Int_t fNbBinsMemoD_TNo_ChNb
TCanvas * fCanvH_HFN_Date
Double_t GetXinfValueFromMemo()
TVirtualPad * fPadD_HFN_ChDs
TVirtualPad * fPadH_Ped_Date
TCanvas * fCanvD_SCs_ChDs
Int_t GetNotCompleteDSSCFromIndex(const Int_t &)
Int_t fNbBinsMemoH_TNo_RuDs
Int_t MaxCrysVecoInStin()
TString GetYVarFromMemo(const TString &, const TString &)
Int_t fCanvSameD_SSp_SpDs
TString BuildStandard1DHistoCodeY(const TString &, const TString &)
Int_t GetYStinInStas(const Int_t &, const Int_t &)
Int_t fMemoPlotD_MSp_SpNb
TMatrixD ReadCovariancesBetweenSamples(const Int_t &, const Int_t &, const Int_t &)
TCanvas * fCanvD_Adc_EvDs
Float_t DeeNameOffsetX(const Int_t &)
void CorrelationsBetweenSamples(const Int_t &)
void PlotMatrix(const TMatrixD &, const TString &, const TString &)
void RegisterFileParameters(const TString &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const TString &, const TString &, const time_t, const time_t)
Int_t fCanvSameD_SCs_ChNb
Int_t fNbBinsMemoH_Ped_RuDs
TString GetYDirectionEB(const Int_t &)
TString GetSMHalfBarrel(const Int_t &)
Int_t MaxStinVecoInStex()
Bool_t GetOkViewHisto(TEcnaRead *, const Int_t &, const Int_t &, const Int_t &, const TString &)
Int_t fCanvSameH_MCs_Date
TVirtualPad * ActivePad(const TString &, const TString &)
Int_t fNbBinsMemoD_LFN_ChDs
void ViewSMGrid(const Int_t &, const TString &)
Int_t fMemoColorD_MCs_ChDs
void ViewStin(const Int_t &, const TString &)
Double_t GetYmaxFromHistoFrameAndMarginValue(TH1D *, const Double_t)
TPaveText * fPavTxtH_TNo_Date
TVectorD ReadSampleAdcValues(const Int_t &, const Int_t &, const Int_t &, const Int_t &)
void PlotHistory(const TString &, const TString &, const TString &, const Int_t &, const Int_t &)
TVirtualPad * fPadD_TNo_ChDs
TVirtualPad * fPadD_HFN_ChNb
TPaveText * fPavTxtH_Ped_RuDs
TVirtualPad * fPadD_MSp_SpDs
Double_t GetYmaxFromGraphFrameAndMarginValue(TGraph *, const Double_t)
Int_t fCanvSameH_TNo_RuDs
Int_t GetNumberOfEvents(const Int_t &, const Int_t &)
Double_t GetXsupValueFromMemo()
TVirtualPad * fPadD_SSp_SpNb
TCanvasImp * fImpD_LFN_ChDs
Int_t fNbBinsMemoH_SCs_RuDs
Int_t fNbBinsMemoH_HFN_RuDs
TVirtualPad * fPadD_NOE_ChNb
TString GetDeeDirViewedFromIP(const Int_t &)
TString GetJYDirectionEB(const Int_t &)
Int_t fFapLastReqEvtNumber
Int_t fCanvSameH_HFN_RuDs
Int_t fMemoColorH_Ped_RuDs
Double_t GetJPhiMax(const Int_t &, const Int_t &)
TCanvas * fCanvH_MCs_RuDs
TString GetEEDeeType(const Int_t &)
TMatrixD ReadLowFrequencyCorrelationsBetweenChannels(const Int_t &, const Int_t &, const Int_t &)
TString GetStinLvrbType(const Int_t &)
Int_t fMemoColorD_MCs_ChNb
void SetAllPavesViewStex(const TString &, const Int_t &)
Double_t GetPhiMax(const Int_t &, const Int_t &)
TPaveText * fPavTxtH_LFN_Date
void ReInitCanvas(const TString &, const TString &)
UInt_t CanvasFormatH(const TString &)
TVectorD ReadSigmaOfCorrelationsBetweenSamples(const Int_t &)
Int_t MaxStinHocoInStas()
void SetViewHistoColors(TH1D *, const TString &, const TString &, const Int_t &)
TPaveText * SetPaveEvolRuns(const Int_t &, const TString &, const Int_t &, const TString &, const TString &, const TString &)
TCanvasImp * fImpH1SamePlus
Int_t fCanvSameD_LFN_ChNb
Int_t Get1SCEchaFrom0DeeEcha(const Int_t &)
TPaveText * fPavComGeneralTitle
TCanvasImp * fImpD_LFN_ChNb
Double_t GetYminDefaultValue(const TString &)
TString HistoryRunListFilePath()
Int_t fCanvSameD_NOE_ChDs
void XtalSamplesEv(const TVectorD &, const Int_t &, const Int_t &, const Int_t &, const TString &)
TVirtualPad * fPadH_MCs_RuDs
TString GetRootFileNameShort()
Int_t fCanvSameH_LFN_Date
Double_t BoxLeftX(const TString &)
TVectorD ReadAverageNumberOfEvents(const Int_t &)
TCanvasImp * fImpH_Ped_RuDs
TEcnaParCout * fCnaParCout
void SetRunNumberFromList(const Int_t &, const Int_t &)
Int_t fCanvSameH_MCs_RuDs
TCanvas * fCanvH1SamePlus
TString fCovarianceMatrix
Int_t fCanvSameD_LFN_ChDs
void SetYmaxMemoFromPreviousMemo(const TString &)
Int_t fNbBinsMemoD_TNo_ChDs
TPaveText * fPavTxtH1SamePlus
TCanvasImp * fImpD_Adc_EvDs
TCanvasImp * fImpH_SCs_RuDs
Int_t fMemoPlotD_MSp_SpDs
TVirtualPad * fPadH_MCs_Date
TCanvasImp * fImpD_NOE_ChDs
UInt_t SetCanvasWidth(const TString &, const TString &)
void SetViewHistoOffsets(TH1D *, const TString &, const TString &)
Double_t fH2HFccMosMatrixYmax
TPaveText * fPavTxtD_NOE_ChDs
Int_t fMemoColorH_LFN_Date
void SetParametersPavTxt(const TString &, const TString &)
TCanvas * fCanvH_HFN_RuDs
TPaveText * SetPaveLVRB(const Int_t &, const Int_t &)
Int_t SetGraphFrameYminYmaxFromMemo(TGraph *, const TString &)
TString StexNumberToString(const Int_t &)
void CovariancesBetweenSamples(const Int_t &)
Int_t fMemoPlotD_TNo_ChNb
void SetHistoScaleY(const TString &)
void SetViewHistoStyle(const TString &)
TString GetXVarHisto(const TString &, const TString &, const Int_t &)
TMatrixD fReadMatrixDummy
TMatrixD ReadHighFrequencyMeanCorrelationsBetweenStins(const Int_t &)
Double_t GetYmaxDefaultValue(const TString &)
TVirtualPad * fPadH_Ped_RuDs
Int_t fMemoColorH_SCs_RuDs
Int_t fMemoColorD_Adc_EvNb
TPaveText * fPavTxtD_HFN_ChNb
const std::map< ValueQuantityType, double > min_value
Int_t fNbBinsMemoD_Adc_EvDs
void DeeSCNumbering(const Int_t &)
TCanvasImp * fImpD_Adc_EvNb
TString fAllXtalsInStinPlot
void SetAllPavesViewStinCrysNb(const Int_t &, const Int_t &)
TPaveText * fPavTxtH_LFN_RuDs
Int_t fMemoPlotH_MCs_Date
void ViewStexStinNumberingPad(const Int_t &)
Float_t DeeNumberOffsetX(const TString &, const Int_t &)
TCanvasImp * fImpD_SSp_SpNb
Int_t GetHashedNumberFromIEtaAndIPhi(const Int_t &, const Int_t &)
TString BuildStandardBetweenWhatCode(const TString &, const TString &)
TCanvas * fCanvH_Ped_Date
Double_t GetIIXMin(const Int_t &)
Int_t fMemoPlotH_TNo_Date
void FillHisto(TH1D *, const TVectorD &, const TString &, const Int_t &)
void TowerCrystalNumbering(const Int_t &, const Int_t &)
void StexHocoVecoLHFCorcc(const TString &)
Int_t fCanvSameD_NOE_ChNb
void WriteHistoAscii(const TString &, const Int_t &, const TVectorD &)
TPaveText * SetPaveNbOfEvts(const Int_t &, const TString &, const TString &, const TString &)
Bool_t RegisterPointer(const TString &, const Long_t &)
Double_t fH2LFccMosMatrixYmax
void ViewStas(const TVectorD &, const Int_t &, const TString &)
TMatrixD ReadLowFrequencyMeanCorrelationsBetweenStins(const Int_t &)
TVectorD ReadAverageTotalNoise(const Int_t &)
Int_t fMemoPlotH_TNo_RuDs
TCanvas * fCanvD_SSp_SpDs
Int_t fNbOfListFileH_SCs_RuDs
Int_t fMemoColorD_LFN_ChDs
TString GetEtaPhiAxisTitle(const TString &)
TString GetXDirectionEE(const Int_t &)
Int_t SetHistoFrameYminYmaxFromMemo(TH1D *, const TString &)
Axis_t fH1SameOnePlotXsup
Double_t GetYmaxValueFromMemo(const TString &)
Int_t fCanvSameD_HFN_ChNb
Int_t GetFirstReqEvtNumber()
Double_t GetYminValueFromMemo(const TString &)
TPaveText * fPavTxtD_Ped_ChDs
Color_t GetViewHistoColor(const TString &, const TString &)
void ViewStexGrid(const Int_t &, const TString &)
TString GetTowerLvrbType(const Int_t &)
void StexStinNumbering(const Int_t &)
TPaveText * ActivePavTxt(const TString &, const TString &)
TPaveText * SetPaveEvolNbOfEvtsAna(const TString &, const Int_t &, const Int_t &, const Int_t &, const TString &)
Int_t fMemoPlotD_MCs_ChDs
TPaveText * fPavTxtH_SCs_Date
Int_t fFapFirstReqEvtNumber
TPaveText * SetPaveStex(const TString &, const Int_t &)
Int_t fNbBinsMemoD_Adc_EvNb
Int_t fCanvSameH_TNo_Date
Int_t fNbOfListFileH_TNo_Date
TString BuildStandardDetectorCode(const TString &)
Double_t fH2CorccInStinsYmax
TPaveText * fPavTxtD_Adc_EvNb
TCanvas * fCanvD_Ped_ChDs
Float_t AxisLabelOffset()
Int_t fMemoColorH_Ped_Date
TString GetAsciiFileName()
TVirtualPad * fPadD_Ped_ChNb
TCanvasImp * fImpH_HFN_RuDs
Int_t fMemoColorD_NOE_ChNb
Int_t fNbBinsMemoH1SamePlus
Int_t fCanvSameD_Adc_EvNb
TVirtualPad * fPadH_HFN_RuDs
Int_t fMemoColorD_Ped_ChDs
void RunType(const TString &)
Int_t fMemoPlotH_LFN_Date
UInt_t CanvasFormatW(const TString &)
void HistoPlot(TH1D *, const Int_t &, const Axis_t &, const Axis_t &, const TString &, const TString &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const TString &, const Int_t &, const Int_t &)
Int_t fNbBinsMemoD_SSp_SpDs
Int_t fMemoPlotD_LFN_ChNb
TVectorD GetHistoValues(const TVectorD &, const Int_t &, TEcnaRead *, const TString &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, Int_t &)
Int_t fMemoColorD_TNo_ChDs
Int_t fMemoColorH_HFN_Date
Double_t GetJIYMax(const Int_t &, const Int_t &)
Int_t GetXSampInStin(const Int_t &, const Int_t &, const Int_t &, const Int_t &)
Int_t GetJYCrysInDee(const Int_t &, const Int_t &, const Int_t &)
TVirtualPad * fPadD_MCs_ChDs
Int_t fNbBinsMemoD_MSp_SpDs
TString GetCodeSeveralPlot()
Int_t fCanvSameD_TNo_ChDs
Int_t MaxNbOfRunsInLists()
Double_t GetIIXMax(const Int_t &)
TString GetCodeAllXtalsInStinPlot()
TVectorD ReadStinNumbers(const Int_t &)
Color_t ColorTab(const Int_t &)
Int_t fMemoPlotH_LFN_RuDs
Int_t fMemoPlotD_SCs_ChNb
Int_t MaxStinVecoInStas()
Int_t fNbOfListFileH_SCs_Date
TCanvas * fCanvD_HFN_ChNb
TPaveText * fPavTxtH_Ped_Date
Double_t fH2CorccInStinsYmin
TVectorD ReadSampleSigmas(const Int_t &, const Int_t &, const Int_t &)
TCanvas * fCanvD_Adc_EvNb
Int_t fNbBinsMemoD_SCs_ChNb
TPaveText * fPavComNbOfEvts
Int_t fCanvSameH_HFN_Date
TCanvas * fCanvD_MSp_SpNb
TCanvas * fCanvD_HFN_ChDs
TCanvas * fCanvH_Ped_RuDs
TCanvasImp * fImpD_SCs_ChNb
Int_t fNbBinsMemoD_MSp_SpNb
Int_t fNbBinsMemoH_SCs_Date
Int_t fNbBinsMemoD_MCs_ChDs
TPaveText * SetPaveCxyz(const Int_t &)
TVirtualPad * fPadD_MSp_SpNb
void SetYminMemoFromValue(const TString &, const Double_t &)
void ViewTowerGrid(const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const TString &)
Int_t GetStexStinFromIndex(const Int_t &)
Double_t GetJPhiMin(const Int_t &, const Int_t &)
TString GetHocoVecoAxisTitle(const TString &)
void SetYminMemoFromPreviousMemo(const TString &)
TVirtualPad * fPadD_SCs_ChNb
void SetAllYminYmaxMemoFromDefaultValues()
Int_t fNbBinsMemoH_TNo_Date
Int_t fMemoPlotD_NOE_ChNb
Int_t fMemoPlotH_SCs_Date
Double_t GetYminFromHistoFrameAndMarginValue(TH1D *, const Double_t)
UInt_t SetCanvasHeight(const TString &, const TString &)
TString GetQuantityName(const TString &)
Int_t fNbBinsMemoH_LFN_RuDs
Int_t fCanvSameD_SCs_ChDs
Int_t fMemoColorD_SSp_SpDs
TCanvasImp * fImpD_NOE_ChNb
TPaveText * fPavTxtD_TNo_ChDs
TString fCfgResultsRootFilePath
void ViewHistime(const TString &, const Int_t &, const Int_t &, const TString &, const TString &)
TVectorD ReadTotalNoise(const Int_t &)
void SetXinfMemoFromValue(const TString &, const Double_t &)
Float_t DeeOffsetX(const TString &, const Int_t &)
TCanvasImp * fImpD_SSp_SpDs
Int_t fNbBinsMemoD_HFN_ChDs
void SetHistoColorPalette(const TString &)
Int_t fNbBinsMemoH_HFN_Date
TString fCurrentHistoCode
Int_t GetDSSCFrom1DeeSCEcna(const Int_t &, const Int_t &, const Int_t &)
TCanvas * fCanvD_LFN_ChDs
TPaveText * SetPaveGeneralComment(const TString &)
Int_t fMemoColorH1SamePlus
TVirtualPad * fPadH_LFN_RuDs
TString fCfgHistoryRunListFilePath
void ViewSMTowerNumberingPad(const Int_t &)
TVectorD ReadAveragePedestals(const Int_t &)
Int_t GetNotCompleteSCForConsFromIndex(const Int_t &)
Int_t fNbOfListFileH_LFN_Date
void SetAllPavesViewStas()
TPaveText * fPavTxtD_HFN_ChDs
Int_t fMemoColorD_HFN_ChDs
TString GetHistoType(const TString &)
TCanvasImp * fImpH_Ped_Date
void SetAllPavesViewHisto(const TString &, const Int_t &, const Int_t &, const Int_t &, const TString &)
TCanvasImp * fImpD_Ped_ChNb
Int_t fMemoPlotD_SSp_SpNb
void ViewHisto(const TVectorD &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const TString &, const TString &)
Int_t GetListFileNumber(const TString &)
TVirtualPad * fPadH_SCs_Date
Int_t fMemoPlotD_SCs_ChDs
Int_t fMemoPlotH_MCs_RuDs
void ViewDeeSCNumberingPad(const Int_t &)
Int_t fCanvSameH_Ped_Date
TPaveText * fPavComEvolNbOfEvtsAna
TVectorD ReadPedestals(const Int_t &)
TMatrixD ReadLowFrequencyCovariancesBetweenChannels(const Int_t &, const Int_t &, const Int_t &)
TString GetCurrentCanvasName()
void SetParametersCanvas(const TString &, const TString &)
Int_t fNbBinsMemoH_Ped_Date
TPaveText * fPavTxtD_LFN_ChNb
void EEGridAxis(const Int_t &, const TString &, const TString &)
Int_t fNbBinsMemoD_MCs_ChNb
TPaveText * fPavTxtD_MCs_ChNb
Int_t fCanvSameD_MCs_ChDs
Double_t GetJIYMin(const Int_t &, const Int_t &)
TString fFlagGeneralTitle
Int_t GetDSFrom1DeeSCEcna(const Int_t &, const Int_t &)
TCanvas * fCanvD_Ped_ChNb
Axis_t GetHistoXsup(const TString &, const Int_t &, const TString &)
TCanvasImp * fImpH_MCs_RuDs
TPaveText * fPavComEvolRuns
TCanvas * fCanvH_SCs_Date
void ViewEEGrid(const Int_t &)
Int_t fNbOfListFileH_HFN_RuDs
Int_t fCanvSameD_MSp_SpDs
Int_t GetDeeSCConsFrom1DeeSCEcna(const Int_t &, const Int_t &)
Int_t fNbOfListFileH_Ped_Date
Int_t fMemoPlotH_Ped_Date
Int_t fNbOfListFileH_Ped_RuDs
void Plot1DHisto(const TVectorD &, const TString &, const TString &, const TString &)
Int_t fNbBinsMemoD_SCs_ChDs
void WriteAsciiHisto(const TString &, const Int_t &, const TVectorD &)
TCanvas * fCanvH_TNo_Date
TPaveText * SetPaveCrystal(const Int_t &, const Int_t &, const Int_t &)
void SetEcalSubDetector(const TString &)
TCanvasImp * fImpD_MSp_SpNb
TCanvas * fCanvD_NOE_ChDs
TString GetAnalysisName()
Int_t GetXCrysInStex(const Int_t &, const Int_t &, const Int_t &)
TString GetYVarHisto(const TString &, const TString &, const Int_t &)
Int_t fMemoColorD_SCs_ChDs
void SetAllPavesViewMatrix(const TString &, const Int_t &, const Int_t &, const Int_t &)
Int_t fMemoPlotD_MCs_ChNb
TVirtualPad * fPadH_SCs_RuDs
Double_t fH2LFccMosMatrixYmin
TCanvasImp * fImpD_HFN_ChNb
TVirtualPad * fPadD_SCs_ChDs
TVirtualPad * fPadH_LFN_Date
Double_t GetEta(const Int_t &, const Int_t &, const Int_t &)
Int_t Get1SMCrysFrom1SMTowAnd0TowEcha(const Int_t &, const Int_t &)
Color_t ColorDefinition(const TString &)
TPaveText * fPavTxtD_SCs_ChNb
TMatrixD ReadHighFrequencyCorrelationsBetweenChannels(const Int_t &, const Int_t &, const Int_t &)
Int_t fMemoPlotD_Ped_ChDs
Int_t fCanvSameH1SamePlus
Int_t fMemoPlotD_TNo_ChDs
Int_t fMemoColorH_MCs_Date
TPaveText * fPavTxtH_MCs_RuDs
void SetViewGraphColors(TGraph *, const TString &, const TString &)
TCanvasImp * fImpD_TNo_ChNb
TPaveText * SetPaveStin(const Int_t &, const Int_t &)
Int_t NumberOfNotConnectedSCs()
TVirtualPad * fPadH_TNo_RuDs
Int_t fMemoColorD_MSp_SpNb
TVectorD ReadHighFrequencyNoise(const Int_t &)
TPaveText * SetPaveAnalysisRun(const TString &, const Int_t &, const Int_t &, const TString &, const Int_t &, const Int_t &, const TString &)
Double_t GetIEtaMin(const Int_t &, const Int_t &)
Int_t GetIXCrysInSC(const Int_t &, const Int_t &, const Int_t &)
void StinCrystalNumbering(const Int_t &, const Int_t &)
TCanvas * fCanvD_MCs_ChNb
Int_t GetYCrysInStex(const Int_t &, const Int_t &, const Int_t &)
TCanvasImp * fImpD_TNo_ChDs
Int_t GetMaxSCInDS(const Int_t &)
TString GetTechHistoCode(const TString &)
Double_t BoxTopY(const TString &)
void SetAllPavesViewStin(const Int_t &)
Color_t GetSCColor(const TString &, const TString &, const TString &)
TString BuildStandardCovOrCorCode(const TString &, const TString &)
Int_t MaxStexInStasMinus()
Axis_t fH1SameOnePlotXinf
void SetXVarMemo(const TString &, const TString &, const TString &)
TEcnaParPaths * fCnaParPaths
Int_t GetSCOffset(const Int_t &, const Int_t &, const Int_t &)
TVirtualPad * fPadH_HFN_Date
TPaveText * fPavComSeveralChanging
TCanvasImp * fImpH_TNo_RuDs
TVirtualPad * fPadD_LFN_ChDs
void SMTowerNumbering(const Int_t &)
void EvSamplesXtals(const TVectorD &, const Int_t &, const Int_t &, const Int_t &, const TString &)
TCanvas * fCanvD_TNo_ChNb
TPaveText * fPavTxtD_MSp_SpDs
Int_t ModifiedSCEchaForNotConnectedSCs(const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &)
void SetColorPalette(const TString &)
Int_t fNbOfListFileH_TNo_RuDs
TPaveText * fPavTxtD_SSp_SpDs
TString fLFBetweenChannels
Int_t fCanvSameD_TNo_ChNb
TVectorD ReadAverageLowFrequencyNoise(const Int_t &)
Int_t MaxCrysVecoInStex()
TCanvasImp * fImpD_HFN_ChDs
TPaveText * fPavTxtD_SSp_SpNb
void FileParameters(const TString &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const TString &)
Int_t fMemoColorD_HFN_ChNb
void SetHistoScaleX(const TString &)
Int_t fCanvSameH_SCs_Date
Int_t fNbBinsMemoD_Ped_ChDs
TString fFlagUserHistoMin
Int_t fCanvSameD_HFN_ChDs
Int_t MaxSCForConsInDee()
void NumberOfEvents(const Int_t &)
void TopAxisForHistos(TH1D *, const TString &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &)
Int_t GetJYCrysInSC(const Int_t &, const Int_t &, const Int_t &)
void SqrtContourLevels(const Int_t &, Double_t *)
TCanvasImp * fImpH_SCs_Date
Int_t fMemoPlotD_LFN_ChDs
TString ResultsRootFilePath()
Int_t fCanvSameH_Ped_RuDs
Int_t GetNbOfRunsDisplayed()
Int_t GetYSampInStin(const Int_t &, const Int_t &, const Int_t &, const Int_t &)
void SetGraphPresentation(TGraph *, const TString &, const TString &)
TPaveText * fPavTxtD_NOE_ChNb
Double_t GetPhi(const Int_t &, const Int_t &, const Int_t &)
Int_t fNbBinsMemoD_Ped_ChNb
Int_t fCanvSameD_Adc_EvDs
TString fCurrentCanvasName
TCanvas * fCanvD_TNo_ChDs
TCanvas * fCanvH_LFN_Date
Int_t MaxCrysEcnaInStex()
Int_t fCanvSameD_MSp_SpNb
TCanvasImp * fImpD_MCs_ChDs
TPaveText * fPavTxtD_MCs_ChDs
Int_t GetDSOffset(const Int_t &, const Int_t &)
TString GetSCType(const Int_t &)
TVirtualPad * fPadH1SamePlus
Int_t fMemoPlotH_Ped_RuDs
TPaveText * SetPaveCrystalSample(const Int_t &, const Int_t &, const Int_t &, const Int_t &)
Int_t fMemoColorD_NOE_ChDs
TCanvas * GetCurrentCanvas()
Int_t GetNbBinsFromMemo(const TString &, const TString &)
Int_t MaxCrysHocoInStin()
Int_t fMemoPlotH_SCs_RuDs
TVirtualPad * fCurrentPad
TCanvas * fCanvD_MCs_ChDs
Int_t fMemoColorD_Adc_EvDs
Int_t fCanvSameD_Ped_ChNb
TVirtualPad * fPadD_Adc_EvDs
TString fHFBetweenChannels
Int_t GetNotConnectedSCForConsFromIndex(const Int_t &)
TCanvas * fCanvD_LFN_ChNb
TPaveText * SetOptionSamePaveBorder(const TString &, const TString &)
void SetHistoPresentation(TH1D *, const TString &)
Int_t fCanvSameH_LFN_RuDs
void ViewDeeGrid(const Int_t &, const TString &)
TMatrixD ReadCorrelationsBetweenSamples(const Int_t &, const Int_t &, const Int_t &)
TPaveText * fPavTxtD_SCs_ChDs
TCanvas * fCanvD_SSp_SpNb
Int_t fMemoColorD_MSp_SpDs
Int_t fMemoPlotD_Ped_ChNb
Int_t GetIXCrysInDee(const Int_t &, const Int_t &, const Int_t &)
const std::map< ValueQuantityType, double > max_value
Int_t fMemoPlotH1SamePlus
TPaveText * fPavTxtD_TNo_ChNb
TCanvas * fCanvH_MCs_Date
Int_t fMemoColorH_TNo_RuDs
void WriteAsciiCorrelationsBetweenSamples(const Int_t &, const Int_t &, const Int_t &, const TMatrixD &)
TPaveText * fPavTxtH_HFN_Date
Int_t Get0StexEchaFrom1StexStinAnd0StinEcha(const Int_t &, const Int_t &)
TString GetCodeOnlyOnePlot()
Double_t GetMarginAutoMinMax()
Int_t fNbBinsMemoD_NOE_ChDs
TPaveText * fPavTxtD_Adc_EvDs
TVectorD ReadMeanCorrelationsBetweenSamples(const Int_t &)
Int_t GetXStinInStas(const Int_t &, const Int_t &, const Int_t &)
Double_t GetIEtaMax(const Int_t &, const Int_t &)
TString GetStexHalfStas(const Int_t &)
TCanvas * fCanvD_MSp_SpDs
Double_t NotConnectedSCH1DBin(const Int_t &)
TVirtualPad * fPadD_TNo_ChNb
Int_t fCanvSameH_SCs_RuDs
TString GetEEDeeEndcap(const Int_t &)
Int_t MaxStinEcnaInStex()
Int_t fNbBinsMemoD_LFN_ChNb
void NewCanvas(const TString &)
TCanvasImp * fImpH_HFN_Date
TMatrixD ReadHighFrequencyCovariancesBetweenChannels(const Int_t &, const Int_t &, const Int_t &)
TString SetHistoYAxisTitle(const TString &)
Double_t GetYminFromGraphFrameAndMarginValue(TGraph *, const Double_t)
Double_t BoxRightX(const TString &)
TString GetEcalSubDetector()
Int_t fNbBinsMemoH_MCs_RuDs
TCanvas * fCanvD_SCs_ChNb
TVirtualPad * fPadH_TNo_Date
Int_t fNbOfListFileH_MCs_RuDs
TString GetIXIYAxisTitle(const TString &)
Double_t fH2HFccMosMatrixYmin
void SetYVarMemo(const TString &, const TString &, const TString &)
Int_t MaxStinHocoInStex()
TCanvasImp * fImpH_LFN_RuDs
TVirtualPad * fPadD_MCs_ChNb
int ism(int ieta, int iphi)
TString GetJYDirectionEE(const Int_t &)
Axis_t GetHistoXinf(const TString &, const Int_t &, const TString &)
TCanvasImp * fImpD_SCs_ChDs
TPaveText * fPavTxtD_LFN_ChDs
Int_t NumberOfNotCompleteSCs()
Double_t BoxBottomY(const TString &)
void ViewStasGrid(const Int_t &)
TCanvasImp * fImpH_LFN_Date
Int_t fNbOfListFileH_LFN_RuDs
Int_t Get1StexCrysFrom1StexStinAnd0StinEcha(const Int_t &, const Int_t &, const Int_t &)
Int_t fNbOfListFileH_HFN_Date
void SetViewGraphOffsets(TGraph *, const TString &)
TCanvasImp * fImpD_MCs_ChNb
TString GetXDirectionEB(const Int_t &)
Long_t GetPointerValue(const TString &)
void EEDataSectors(const Float_t &, const Float_t &, const Int_t &, const TString &)
Double_t NotCompleteSCH1DBin(const Int_t &)
TVectorD ReadSampleMeans(const Int_t &, const Int_t &, const Int_t &)
TEcnaParHistos * fCnaParHistos
TVectorD ReadAverageMeanCorrelationsBetweenSamples(const Int_t &)
TVirtualPad * fPadD_SSp_SpDs
TString fFlagUserHistoMax
void SetYmaxMemoFromValue(const TString &, const Double_t &)
Int_t fMemoPlotD_SSp_SpDs
TPaveText * SetPaveStas()
Int_t MaxCrysForConsInDee()
Int_t GetHistoSize(const TString &, const TString &)
Int_t fPlotAllXtalsInStin
TVectorD ReadAverageSigmaOfCorrelationsBetweenSamples(const Int_t &)
void FileParameters(const TString &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &)
Int_t fNbBinsMemoD_NOE_ChNb
TString SetCanvasName(const TString &, const Int_t &, const Int_t &, const TString &, const Int_t &, const Int_t &, const Int_t &, const Int_t &)
void ViewMatrix(const TMatrixD &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const TString &, const TString &, const TString &)
void StartStopDate(const TString &, const TString &)
void SigmaSamplesXtals(const TVectorD &, const Int_t &, const Int_t &, const Int_t &, const TString &)
void ViewSCGrid(const Int_t &, const Int_t &, const Int_t &, const Int_t &, const Int_t &, const TString &)
Int_t fMemoPlotD_Adc_EvDs
Int_t fMemoColorD_SSp_SpNb
Int_t fMemoColorD_Ped_ChNb
TVectorD ReadNumberOfEvents(const Int_t &)
void GeneralTitle(const TString &)
void PlotCloneOfCurrentCanvas()
Int_t fMemoColorD_LFN_ChNb
TVirtualPad * fPadD_Adc_EvNb
void WriteMatrixAscii(const TString &, const TString &, const Int_t &, const Int_t &, const Int_t &, const TMatrixD &)
TCanvas * fCanvH_LFN_RuDs
Int_t fMemoPlotD_HFN_ChNb
Int_t fMemoPlotH_HFN_RuDs
TVirtualPad * fPadD_Ped_ChDs
Int_t fCanvSameD_SSp_SpNb
TCanvas * fCanvH_TNo_RuDs
Int_t fCanvSameD_Ped_ChDs