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";
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 if (sup_axis_x !=
nullptr) {
3041 sup_axis_x->SetTitle(x_var_name);
3042 sup_axis_x->SetTitleSize(tit_siz_x);
3043 sup_axis_x->SetTitleOffset(tit_off_x);
3044 sup_axis_x->SetLabelSize(lab_siz_x);
3045 sup_axis_x->SetLabelOffset(lab_off_x);
3046 sup_axis_x->SetTickSize(tic_siz_x);
3047 sup_axis_x->Draw(
"SAME");
3057 if (chopt ==
"CrystalNumbering") {
3064 new TF1(
"f2", y_direction.Data(), phi_min, phi_max);
3066 TGaxis* sup_axis_y =
nullptr;
3068 if (y_direction ==
"-x")
3070 sup_axis_y =
new TGaxis((Float_t)(size_eta * MatSize),
3072 (Float_t)(size_eta * MatSize),
3073 (Float_t)(size_phi * MatSize),
3081 if (y_direction ==
"x")
3084 new TGaxis((Float_t)0., (Float_t)0., (Float_t)0., (Float_t)(size_phi * MatSize),
"f2", size_phi,
"BCS", 0.);
3088 if (sup_axis_y !=
nullptr) {
3089 sup_axis_y->SetTitle(y_var_name);
3090 sup_axis_y->SetTitleSize(tit_siz_y);
3091 sup_axis_y->SetTitleOffset(tit_off_y);
3092 sup_axis_y->SetLabelSize(lab_siz_y);
3093 sup_axis_y->SetLabelOffset(lab_off_y);
3094 sup_axis_y->SetTickSize(tic_siz_y);
3095 sup_axis_y->Draw(
"SAME");
3106 new TF1(
"f3", jy_direction.Data(), j_phi_min, j_phi_max);
3108 TGaxis* sup_axis_jy =
nullptr;
3111 new TGaxis((Float_t)0., (Float_t)0., (Float_t)0., (Float_t)(size_phi * MatSize),
"f3", size_phi,
"SC", 0.);
3114 sup_axis_jy->SetTitle(jy_var_name);
3115 sup_axis_jy->SetTitleSize(tit_siz_y);
3116 sup_axis_jy->SetTitleOffset(tit_off_y);
3117 sup_axis_jy->SetLabelSize(lab_siz_y);
3118 sup_axis_jy->SetLabelOffset(lab_off_y);
3119 sup_axis_jy->SetTickSize(tic_siz_y);
3120 sup_axis_jy->Draw(
"SAME");
3130 const Int_t& n1DeeSCEcna,
3131 const Int_t& MatSize,
3132 const Int_t& size_IX,
3133 const Int_t& size_IY,
3134 const TString& chopt) {
3137 Double_t xline = 0.;
3139 Double_t yline_bot = 0.;
3140 Double_t yline_top = (Double_t)(MatSize * size_IX);
3142 for (Int_t
i = 0;
i < size_IX;
i++) {
3143 xline = xline + (Double_t)MatSize;
3145 lin =
new TLine(xline, yline_bot, xline, yline_top);
3151 Double_t xline_left = 0;
3152 Double_t xline_right = (Double_t)(MatSize * size_IX);
3154 Double_t yline = -(Double_t)MatSize;
3156 for (Int_t
j = 0;
j < size_IX + 1;
j++) {
3157 yline = yline + (Double_t)MatSize;
3159 lin =
new TLine(xline_left, yline, xline_right, yline);
3172 Float_t axis_x_inf = 0;
3173 Float_t axis_x_sup = 0;
3174 Float_t axis_y_inf = 0;
3175 Float_t axis_y_sup = 0;
3176 Int_t axis_nb_div = 1;
3177 Double_t IX_values_min = 0;
3178 Double_t IX_values_max = 0;
3179 Option_t* axis_chopt =
"CS";
3187 TString StrDee =
"iIXSC";
3188 if (DeeNumber == 1) {
3191 if (DeeNumber == 2) {
3194 if (DeeNumber == 3) {
3197 if (DeeNumber == 4) {
3204 TGaxis* sup_axis_x =
nullptr;
3210 axis_x_sup = size_IX * MatSize;
3212 axis_nb_div = size_IX;
3213 IX_values_min = -IX_min;
3214 IX_values_max = -IX_max;
3221 axis_x_sup = size_IX * MatSize;
3223 axis_nb_div = size_IX;
3224 IX_values_min = IX_min;
3225 IX_values_max = IX_max;
3232 axis_x_sup = size_IX * MatSize;
3234 axis_nb_div = size_IX;
3235 IX_values_min = IX_min;
3236 IX_values_max = IX_max;
3243 axis_x_sup = size_IX * MatSize;
3245 axis_nb_div = size_IX;
3246 IX_values_min = -IX_min;
3247 IX_values_max = -IX_max;
3251 new TF1(
"f1", x_direction.Data(), IX_values_min, IX_values_max);
3253 sup_axis_x =
new TGaxis(axis_x_inf, axis_y_inf, axis_x_sup, axis_y_sup,
"f1", axis_nb_div, axis_chopt, 0.);
3256 sup_axis_x->SetTitle(x_var_name);
3257 sup_axis_x->SetTitleSize(tit_siz_x);
3258 sup_axis_x->SetTitleOffset(tit_off_x);
3259 sup_axis_x->SetLabelSize(lab_siz_x);
3260 sup_axis_x->SetLabelOffset(lab_off_x);
3261 sup_axis_x->SetTickSize(tic_siz_x);
3262 sup_axis_x->Draw(
"SAME");
3278 new TF1(
"f2", jy_direction.Data(), j_IY_min, j_IY_max);
3281 TGaxis* sup_axis_jy =
3282 new TGaxis((Float_t)0., (Float_t)0., (Float_t)0., (Float_t)(size_IY * MatSize),
"f2", size_IY,
"CS", 0.);
3285 sup_axis_jy->SetTitle(jy_var_name);
3286 sup_axis_jy->SetTitleSize(tit_siz_y);
3287 sup_axis_jy->SetTitleOffset(tit_off_y);
3288 sup_axis_jy->SetLabelSize(lab_siz_y);
3289 sup_axis_jy->SetLabelOffset(lab_off_y);
3290 sup_axis_jy->SetTickSize(tic_siz_y);
3291 sup_axis_jy->Draw();
3312 Bool_t OKFileExists = kFALSE;
3313 Bool_t OKData = kFALSE;
3315 Int_t n1StexStin = -1;
3329 OKFileExists = kTRUE;
3332 if (OKFileExists == kTRUE) {
3343 if (arg_AlreadyRead >= 1) {
3344 OKFileExists = kTRUE;
3347 if (OKFileExists == kTRUE) {
3352 sprintf(f_in_mat_tit,
"?");
3354 if (HistoCode ==
"D_NOE_ChNb") {
3355 sprintf(f_in_mat_tit,
"Number of events");
3357 if (HistoCode ==
"D_Ped_ChNb") {
3358 sprintf(f_in_mat_tit,
"Pedestals");
3360 if (HistoCode ==
"D_TNo_ChNb") {
3361 sprintf(f_in_mat_tit,
"Total noise");
3363 if (HistoCode ==
"D_MCs_ChNb") {
3364 sprintf(f_in_mat_tit,
"Mean cor(s,s')");
3366 if (HistoCode ==
"D_LFN_ChNb") {
3367 sprintf(f_in_mat_tit,
"Low frequency noise");
3369 if (HistoCode ==
"D_HFN_ChNb") {
3370 sprintf(f_in_mat_tit,
"High frequency noise");
3372 if (HistoCode ==
"D_SCs_ChNb") {
3373 sprintf(f_in_mat_tit,
"Sigma of cor(s,s')");
3380 Int_t nb_binx = GeoBidSizeHoco;
3381 Int_t nb_biny = GeoBidSizeVeco;
3382 Axis_t xinf_bid = (Axis_t)0.;
3383 Axis_t xsup_bid = (Axis_t)GeoBidSizeHoco;
3384 Axis_t yinf_bid = (Axis_t)0.;
3385 Axis_t ysup_bid = (Axis_t)GeoBidSizeVeco;
3387 TString axis_x_var_name =
" #Hoco ";
3388 TString axis_y_var_name =
" #Veco ";
3393 new TH2D(
"geobidim_ViewStex", f_in_mat_tit, nb_binx, xinf_bid, xsup_bid, nb_biny, yinf_bid, ysup_bid);
3401 partial_histp(
i) = (Double_t)0.;
3405 if (HistoCode ==
"D_NOE_ChNb") {
3408 if (HistoCode ==
"D_Ped_ChNb") {
3411 if (HistoCode ==
"D_TNo_ChNb") {
3414 if (HistoCode ==
"D_MCs_ChNb") {
3417 if (HistoCode ==
"D_LFN_ChNb") {
3420 if (HistoCode ==
"D_HFN_ChNb") {
3423 if (HistoCode ==
"D_SCs_ChNb") {
3430 if (arg_AlreadyRead >= 1) {
3431 partial_histp = arg_read_histo;
3436 TMatrixD read_matrix(nb_binx, nb_biny);
3437 for (Int_t
i = 0;
i < nb_binx;
i++) {
3438 for (Int_t
j = 0;
j < nb_biny;
j++) {
3439 read_matrix(
i,
j) = (Double_t)0.;
3443 if (OKData == kTRUE) {
3450 if (arg_AlreadyRead >= 1) {
3451 n1StexStin = i0StexStinEcna + 1;
3454 if (n1StexStin != -1) {
3461 if (i_xgeo >= 0 && i_xgeo < nb_binx && i_ygeo >= 0 && i_ygeo < nb_biny) {
3462 read_matrix(i_xgeo, i_ygeo) = partial_histp(iStexEcha);
3463 h_geo_bid->Fill((Double_t)i_xgeo, (Double_t)i_ygeo, (Double_t)read_matrix(i_xgeo, i_ygeo));
3534 TString name_cov_cor;
3538 if (HistoCode ==
"D_NOE_ChNb") {
3539 name_cov_cor =
"Nb_Of_D_Adc_EvDs";
3541 if (HistoCode ==
"D_Ped_ChNb") {
3542 name_cov_cor =
"Pedestals";
3544 if (HistoCode ==
"D_TNo_ChNb") {
3545 name_cov_cor =
"Total_noise";
3547 if (HistoCode ==
"D_MCs_ChNb") {
3548 name_cov_cor =
"Mean_Corss";
3550 if (HistoCode ==
"D_LFN_ChNb") {
3551 name_cov_cor =
"Low_Fq_Noise";
3553 if (HistoCode ==
"D_HFN_ChNb") {
3554 name_cov_cor =
"High_Fq_Noise";
3556 if (HistoCode ==
"D_SCs_ChNb") {
3557 name_cov_cor =
"Sigma_Corss";
3564 TString flag_already_read;
3566 flag_already_read =
"?";
3567 sprintf(f_in,
"M%d", arg_AlreadyRead);
3568 flag_already_read = f_in;
3571 "%s_%s_S1_%d_R%d_%d_%d_%s%d_%s_HocoVeco_R%s",
3572 name_cov_cor.Data(),
3581 flag_already_read.Data());
3590 TCanvas* MainCanvas =
new TCanvas(f_in, f_in, canv_w, canv_h);
3608 Double_t x_margin = x_low;
3609 Double_t y_margin = y_low;
3610 MainCanvas->Divide(1, 1, x_margin, y_margin);
3617 TVirtualPad* main_subpad = gPad;
3618 main_subpad->SetPad(x_low, y_low, x_up, y_up);
3622 h_geo_bid->GetXaxis()->SetTitle(axis_x_var_name);
3623 h_geo_bid->GetYaxis()->SetTitle(axis_y_var_name);
3625 h_geo_bid->DrawCopy(
"COLZ");
3633 Bool_t b_true =
true;
3634 h_geo_bid->SetStats(b_true);
3635 h_geo_bid->Delete();
3636 h_geo_bid =
nullptr;
3645 std::cout <<
"!TEcnaHistos::ViewStex(...)> *ERROR* =====> " 3646 <<
" ROOT file not found" <<
fTTBELL << std::endl;
3688 sprintf(f_in_mat_tit,
"LF Cor(Xtal,Xtal') for each tower in SM");
3691 sprintf(f_in_mat_tit,
"HF Cor(Xtal,Xtal') for each tower in SM");
3694 sprintf(f_in_mat_tit,
"LF Cor(Xtal,Xtal') for each SC in Dee");
3697 sprintf(f_in_mat_tit,
"HF Cor(Xtal,Xtal') for each SC in Dee");
3704 Int_t nb_binx = GeoBidSizeHoco;
3705 Int_t nb_biny = GeoBidSizeVeco;
3706 Axis_t xinf_bid = (Axis_t)0.;
3707 Axis_t xsup_bid = (Axis_t)GeoBidSizeHoco;
3708 Axis_t yinf_bid = (Axis_t)0.;
3709 Axis_t ysup_bid = (Axis_t)GeoBidSizeVeco;
3711 TString axis_x_var_name =
" #Hoco ";
3712 TString axis_y_var_name =
" #varVeco ";
3717 Stin_numbers(
i) = (Double_t)0.;
3728 partial_matrix(
i,
j) = (Double_t)0.;
3743 TH2D* h_geo_bid =
new TH2D(
3744 "geobidim_HocoVecoLHFCorcc", f_in_mat_tit, nb_binx, xinf_bid, xsup_bid, nb_biny, yinf_bid, ysup_bid);
3751 Int_t n1StexStin = (Int_t)Stin_numbers(i0StexStinEcna);
3755 if (n1StexStin != -1) {
3760 Int_t i_xgeo = offset_x + i0StinEcha;
3761 Int_t i_ygeo = offset_y + j0StinEcha;
3763 if (i_xgeo >= 0 && i_xgeo < nb_binx && i_ygeo >= 0 && i_ygeo < nb_biny) {
3767 h_geo_bid->Fill((Double_t)i_xgeo, (Double_t)i_ygeo, (Double_t)partial_matrix(iEcha, jEcha));
3776 TString HistoCode =
"H2CorccInStins";
3830 TString name_cov_cor;
3833 name_cov_cor =
"StexLFCorcc";
3836 name_cov_cor =
"StexHFCorcc";
3844 "%s_%s_S1_%d_R%d_%d_%d_Stex%s%d_%s_HocoVeco",
3845 name_cov_cor.Data(),
3862 TCanvas* MainCanvas =
new TCanvas(f_in, f_in, canv_w, canv_h);
3881 Double_t x_margin = x_low;
3882 Double_t y_margin = y_low;
3883 MainCanvas->Divide(1, 1, x_margin, y_margin);
3890 TVirtualPad* main_subpad = gPad;
3891 main_subpad->SetPad(x_low, y_low, x_up, y_up);
3894 h_geo_bid->GetXaxis()->SetTitle(axis_x_var_name);
3895 h_geo_bid->GetYaxis()->SetTitle(axis_y_var_name);
3897 h_geo_bid->DrawCopy(
"COLZ");
3905 Bool_t b_true =
true;
3906 h_geo_bid->SetStats(b_true);
3907 h_geo_bid->Delete();
3908 h_geo_bid =
nullptr;
3918 std::cout <<
"!TEcnaHistos::StexHocoVecoLHFCorcc(...)> *ERROR* =====> " 3919 <<
" ROOT file not found" <<
fTTBELL << std::endl;
3938 if (ctype ==
"EB-") {
3946 if (DeeDir ==
"right") {
3949 if (DeeDir ==
"left") {
3968 if (ctype ==
"EB-") {
4041 if ((SMNumber > 0) && (SMNumber <= fEcal->MaxSMInEB())) {
4045 Int_t nb_binx = GeoBidSizeEta;
4046 Int_t nb_biny = GeoBidSizePhi;
4047 Axis_t xinf_bid = (Axis_t)0.;
4048 Axis_t xsup_bid = (Axis_t)GeoBidSizeEta;
4049 Axis_t yinf_bid = (Axis_t)0.;
4050 Axis_t ysup_bid = (Axis_t)GeoBidSizePhi;
4052 TString axis_x_var_name =
" #eta ";
4053 TString axis_y_var_name =
" #varphi ";
4060 if (SMNumber <= fEcal->MaxSMPhiInEB()) {
4061 sprintf(f_in_mat_tit,
" SM tower numbering");
4064 sprintf(f_in_mat_tit,
" SM tower numbering ");
4070 new TH2D(
"grid_bidim_eta_phi", f_in_mat_tit, nb_binx, xinf_bid, xsup_bid, nb_biny, yinf_bid, ysup_bid);
4072 h_empty_bid->Reset();
4074 h_empty_bid->GetXaxis()->SetTitle(axis_x_var_name);
4075 h_empty_bid->GetYaxis()->SetTitle(axis_y_var_name);
4095 sprintf(f_in,
"tower_numbering_for_SuperModule_SM%d", SMNumber);
4099 TCanvas* MainCanvas =
new TCanvas(f_in, f_in, canv_w, canv_h);
4111 MainCanvas->Divide(1, 1, x_margin, y_margin);
4114 h_empty_bid->DrawCopy(
"COL");
4120 Bool_t b_true =
true;
4121 h_empty_bid->SetStats(b_true);
4123 h_empty_bid->Delete();
4124 h_empty_bid =
nullptr;
4130 std::cout <<
"!TEcnaHistos::SMTowerNumbering(...)> SM = " << SMNumber <<
". Out of range ( range = [1," 4139 gStyle->SetTitleW(0.2);
4140 gStyle->SetTitleH(0.07);
4150 gStyle->SetTextSize(0.075);
4153 Int_t y_channel = 12;
4154 Int_t x_channel = 12;
4160 TText* text_SMtow_num =
new TText();
4165 text_SMtow_num->SetTextColor(couleur_rouge);
4168 text_SMtow_num->SetTextColor(couleur_bleu_fonce);
4178 Double_t y_from_phi =
4184 sprintf(f_in,
"%d", i_SMtow);
4185 text_SMtow_num->DrawText(x_from_eta, y_from_phi, f_in);
4188 text_SMtow_num->Delete();
4189 text_SMtow_num =
nullptr;
4193 Double_t offset_tow_tex_eta = (Double_t)8.;
4194 Double_t offset_tow_tex_phi = (Double_t)15.;
4197 Double_t x_legend = (Double_t)0.;
4198 Double_t y_legend = (Double_t)0.;
4203 gStyle->SetTextSize(0.075);
4204 gStyle->SetTextColor(couleur_rouge);
4209 x_legend = x_legend + offset_tow_tex_eta;
4210 y_legend = y_legend + offset_tow_tex_phi;
4213 x_legend = -x_legend + offset_tow_tex_eta;
4214 y_legend = y_legend + offset_tow_tex_phi;
4217 sprintf(f_in,
"xx");
4218 TText* text_legend_rouge =
new TText(x_legend, y_legend, f_in);
4220 text_legend_rouge->Draw();
4221 gStyle->SetTextSize(0.05);
4222 x_legend = x_legend - (Double_t)3.5;
4223 y_legend = y_legend - (Double_t)2.;
4224 sprintf(f_in,
" LVRB ");
4225 TText* text_legend_rouge_expl =
new TText(x_legend, y_legend, f_in);
4227 text_legend_rouge_expl->Draw();
4228 y_legend = y_legend - (Double_t)1.75;
4230 sprintf(f_in,
" <--- ");
4233 sprintf(f_in,
" ---> ");
4235 TText* text_legend_rouge_expm =
new TText(x_legend, y_legend, f_in);
4237 text_legend_rouge_expm->Draw();
4241 gStyle->SetTextSize(0.075);
4242 gStyle->SetTextColor(couleur_bleu_fonce);
4247 x_legend = x_legend + offset_tow_tex_eta;
4248 y_legend = y_legend + offset_tow_tex_phi / 3;
4251 x_legend = -x_legend + offset_tow_tex_eta;
4252 y_legend = y_legend + offset_tow_tex_phi / 3;
4255 sprintf(f_in,
"xx");
4256 TText* text_legend_bleu =
new TText(x_legend, y_legend, f_in);
4258 text_legend_bleu->Draw();
4260 gStyle->SetTextSize(0.05);
4261 x_legend = x_legend - (Double_t)3.5;
4262 y_legend = y_legend - (Double_t)2.;
4263 sprintf(f_in,
" LVRB ");
4264 TText* text_legend_bleu_expl =
new TText(x_legend, y_legend, f_in);
4266 text_legend_bleu_expl->Draw();
4267 y_legend = y_legend - (Double_t)1.75;
4269 sprintf(f_in,
" ---> ");
4272 sprintf(f_in,
" <--- ");
4274 TText* text_legend_bleu_expm =
new TText(x_legend, y_legend, f_in);
4276 text_legend_bleu_expm->Draw();
4279 gStyle->SetTextColor(couleur_noir);
4289 if (c_option ==
"corcc") {
4294 Int_t nb_binx = GeoBidSizeEta;
4295 Int_t nb_biny = GeoBidSizePhi;
4296 Axis_t xinf_bid = (Axis_t)0.;
4297 Axis_t xsup_bid = (Axis_t)GeoBidSizeEta;
4298 Axis_t yinf_bid = (Axis_t)0.;
4299 Axis_t ysup_bid = (Axis_t)GeoBidSizePhi;
4305 if (c_option ==
"corcc") {
4309 Int_t max_x = nb_binx / size_eta;
4310 Int_t max_y = nb_biny / size_phi;
4313 Double_t yline = (Double_t)yinf_bid;
4315 Double_t xline_left = (Double_t)xinf_bid;
4316 Double_t xline_right = (Double_t)xsup_bid;
4318 for (Int_t
j = 0;
j < max_y;
j++) {
4319 yline = yline + (Double_t)size_phi;
4321 lin =
new TLine(xline_left, yline, xline_right, yline);
4328 Double_t xline = (Double_t)xinf_bid - (Double_t)size_eta;
4330 Double_t yline_bot = (Double_t)yinf_bid;
4331 Double_t yline_top = (Double_t)ysup_bid;
4337 gStyle->SetTextColor(coul_textmodu);
4338 gStyle->SetTextSize(0.075);
4342 for (Int_t
i = 0;
i < max_x;
i++) {
4343 xline = xline + (Double_t)size_eta;
4345 lin =
new TLine(xline, yline_bot, xline, yline_top);
4350 lin->SetLineWidth(2);
4351 lin->SetLineColor(coul_surligne);
4354 lin->SetLineWidth(2);
4355 lin->SetLineColor(coul_surligne);
4364 sprintf(f_in,
"M4");
4367 sprintf(f_in,
"M3");
4370 sprintf(f_in,
"M2");
4373 sprintf(f_in,
"M1");
4376 TText* text_num_module =
new TText(xline + 1, yline_top + 1, f_in);
4378 text_num_module->Draw();
4383 sprintf(f_in,
"M1");
4386 sprintf(f_in,
"M2");
4389 sprintf(f_in,
"M3");
4392 sprintf(f_in,
"M4");
4395 TText* text_num_module =
new TText(xline, yline_top + 1, f_in);
4397 text_num_module->Draw();
4405 if (c_option ==
"corcc") {
4428 TGaxis* sup_axis_x =
nullptr;
4430 if (x_direction ==
"-x")
4432 sup_axis_x =
new TGaxis(
4433 (Float_t)0., (Float_t)0., (Float_t)(size_eta_sm * MatSize), (Float_t)0.,
"f1", size_eta_sm,
"SC", 0.);
4437 if (x_direction ==
"x")
4439 sup_axis_x =
new TGaxis(
4440 (Float_t)0., (Float_t)0., (Float_t)(size_eta_sm * MatSize), (Float_t)0.,
"f1", size_eta_sm,
"SC", 0.);
4444 if (sup_axis_x !=
nullptr) {
4445 sup_axis_x->SetTitle(x_var_name);
4446 sup_axis_x->SetTitleSize(tit_siz_x);
4447 sup_axis_x->SetTitleOffset(tit_off_x);
4448 sup_axis_x->SetLabelSize(lab_siz_x);
4449 sup_axis_x->SetLabelOffset(lab_off_x);
4450 sup_axis_x->SetTickSize(tic_siz_x);
4451 sup_axis_x->Draw(
"SAME");
4467 new TF1(
"f2", y_direction.Data(), phi_min, phi_max);
4469 TGaxis* sup_axis_y =
nullptr;
4471 if (y_direction ==
"-x")
4473 sup_axis_y =
new TGaxis(-(Float_t)1.5 * (Float_t)size_eta,
4475 -(Float_t)1.5 * (Float_t)size_eta,
4476 (Float_t)(size_phi_sm * MatSize),
4484 if (y_direction ==
"x")
4486 sup_axis_y =
new TGaxis(-(Float_t)1.5 * (Float_t)size_eta,
4488 -(Float_t)1.5 * (Float_t)size_eta,
4489 (Float_t)(size_phi_sm * MatSize),
4497 if (sup_axis_y !=
nullptr) {
4498 sup_axis_y->SetTitle(y_var_name);
4499 sup_axis_y->SetTitleSize(tit_siz_y);
4500 sup_axis_y->SetTitleOffset(tit_off_y);
4501 sup_axis_y->SetLabelSize(lab_siz_y);
4502 sup_axis_y->SetLabelOffset(lab_off_y);
4503 sup_axis_y->SetTickSize(tic_siz_y);
4504 sup_axis_y->Draw(
"SAME");
4511 TString jy_var_name =
" ";
4514 new TF1(
"f3", jy_direction.Data(), jphi_min, jphi_max);
4516 TGaxis* sup_axis_jy =
nullptr;
4519 sup_axis_jy =
new TGaxis(
4520 (Float_t)0., (Float_t)0., (Float_t)0., (Float_t)(size_phi_sm * MatSize),
"f3", (Int_t)size_phi_sm,
"SC", 0.);
4523 if (jy_direction ==
"-x")
4528 if (jy_direction ==
"x")
4535 sup_axis_jy->SetTitle(jy_var_name);
4536 sup_axis_jy->SetTitleSize(tit_siz_y);
4537 sup_axis_jy->SetTitleOffset(tit_off_y);
4538 sup_axis_jy->SetLabelSize(lab_siz_y);
4539 sup_axis_jy->SetLabelOffset(lab_off_y);
4540 sup_axis_jy->SetTickSize(tic_siz_y);
4541 sup_axis_jy->Draw(
"SAME");
4553 if ((DeeNumber > 0) && (DeeNumber <= fEcal->MaxDeeInEE())) {
4557 Int_t nb_binx = GeoBidSizeIX;
4558 Int_t nb_biny = GeoBidSizeIY;
4559 Axis_t xinf_bid = (Axis_t)0.;
4560 Axis_t xsup_bid = (Axis_t)GeoBidSizeIX;
4561 Axis_t yinf_bid = (Axis_t)0.;
4562 Axis_t ysup_bid = (Axis_t)GeoBidSizeIY;
4564 TString axis_x_var_name =
" IX ";
4565 TString axis_y_var_name =
" IY ";
4572 sprintf(f_in_mat_tit,
" Dee SC numbering ");
4577 new TH2D(
"grid_bidim_IX_IY", f_in_mat_tit, nb_binx, xinf_bid, xsup_bid, nb_biny, yinf_bid, ysup_bid);
4580 h_empty_bid->Reset();
4582 h_empty_bid->GetXaxis()->SetTitle(axis_x_var_name);
4583 h_empty_bid->GetYaxis()->SetTitle(axis_y_var_name);
4602 sprintf(f_in,
"SC_numbering_for_Dee_Dee%d", DeeNumber);
4604 TCanvas* MainCanvas =
new TCanvas(f_in, f_in, canv_w, canv_h);
4620 Double_t x_margin = x_low;
4621 Double_t y_margin = y_low;
4623 MainCanvas->Divide(1, 1, x_margin, y_margin);
4627 TVirtualPad* main_subpad = gPad;
4628 main_subpad->SetPad(x_low, y_low, x_up, y_up);
4630 h_empty_bid->DrawCopy(
"COL");
4637 Bool_t b_true =
true;
4638 h_empty_bid->SetStats(b_true);
4640 h_empty_bid->Delete();
4641 h_empty_bid =
nullptr;
4646 std::cout <<
"!TEcnaHistos::DeeSCNumbering(...)> Dee = " << DeeNumber <<
". Out of range ( range = [1," 4655 gStyle->SetTitleW(0.4);
4656 gStyle->SetTitleH(0.08);
4663 gStyle->SetTextSize(0.0325);
4666 Int_t x_channel = 0;
4667 TText* text_DSSC_num =
new TText();
4669 TText* text_DeeSCCons_num =
new TText();
4675 if (SCQuadType ==
"top" && DeeDir ==
"right") {
4678 if (SCQuadType ==
"top" && DeeDir ==
"left") {
4681 if (SCQuadType ==
"bottom" && DeeDir ==
"left") {
4684 if (SCQuadType ==
"bottom" && DeeDir ==
"right") {
4687 Int_t i_SCEcha = (Int_t)x_channel;
4689 Double_t x_from_IX = (Double_t)
GetXCrysInStex(DeeNumber, n1DeeSCEcna, i_SCEcha);
4690 Double_t y_from_IY = (Double_t)
GetYCrysInStex(DeeNumber, n1DeeSCEcna, i_SCEcha);
4691 Double_t y_from_IYp = y_from_IY + (Double_t)1.;
4692 Double_t y_from_IYm = y_from_IY - (Double_t)1.;
4695 Color_t couleur_SC =
GetSCColor(DeeEndcap, DeeDir, SCQuadType);
4696 text_DSSC_num->SetTextColor(couleur_SC);
4697 text_DeeSCCons_num->SetTextColor((Color_t)1);
4704 !(i_DeeSCCons == 33 && n1DeeSCEcna == 60) && !(i_DeeSCCons == 33 && n1DeeSCEcna == 119) &&
4706 !(i_DeeSCCons == 29 && n1DeeSCEcna == 32) &&
4707 !(i_DeeSCCons == 29 && n1DeeSCEcna == 138) && !(i_DeeSCCons == 29 && n1DeeSCEcna == 157) &&
4708 !(i_DeeSCCons == 58 && n1DeeSCEcna == 176) && !(i_DeeSCCons == 58 && n1DeeSCEcna == 193) &&
4710 !(i_DeeSCCons == 149 && n1DeeSCEcna == 188) &&
4712 !(i_DeeSCCons == 112 && n1DeeSCEcna == 29) && !(i_DeeSCCons == 112 && n1DeeSCEcna == 144) &&
4713 !(i_DeeSCCons == 112 && n1DeeSCEcna == 165) && !(i_DeeSCCons == 119 && n1DeeSCEcna == 102) &&
4714 !(i_DeeSCCons == 119 && n1DeeSCEcna == 123) &&
4716 !(i_DeeSCCons == 132 && n1DeeSCEcna == 41) &&
4719 !(i_DeeSCCons == 182 && n1DeeSCEcna == 60) && !(i_DeeSCCons == 182 && n1DeeSCEcna == 119) &&
4721 !(i_DeeSCCons == 178 && n1DeeSCEcna == 32) &&
4722 !(i_DeeSCCons == 178 && n1DeeSCEcna == 138) && !(i_DeeSCCons == 178 && n1DeeSCEcna == 157) &&
4723 !(i_DeeSCCons == 207 && n1DeeSCEcna == 176) && !(i_DeeSCCons == 207 && n1DeeSCEcna == 193) &&
4725 !(i_DeeSCCons == 298 && n1DeeSCEcna == 188) &&
4727 !(i_DeeSCCons == 261 && n1DeeSCEcna == 29) &&
4728 !(i_DeeSCCons == 261 && n1DeeSCEcna == 144) && !(i_DeeSCCons == 261 && n1DeeSCEcna == 165) &&
4729 !(i_DeeSCCons == 268 && n1DeeSCEcna == 102) && !(i_DeeSCCons == 268 && n1DeeSCEcna == 123) &&
4731 !(i_DeeSCCons == 281 && n1DeeSCEcna == 41)) {
4732 sprintf(f_in,
"%d", i_DSSC);
4733 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4734 sprintf(f_in,
"%d", i_DeeSCCons);
4735 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4740 if (i_DeeSCCons == 33 && n1DeeSCEcna == 60) {
4741 sprintf(f_in,
"30a");
4742 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4743 sprintf(f_in,
"33a");
4744 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4746 if (i_DeeSCCons == 33 && n1DeeSCEcna == 119) {
4747 sprintf(f_in,
"30b");
4748 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4749 sprintf(f_in,
"33b");
4750 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4753 if (i_DeeSCCons == 29 && n1DeeSCEcna == 32) {
4754 sprintf(f_in,
" 3c-25c");
4755 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4756 sprintf(f_in,
"29c-58c");
4757 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4759 if (i_DeeSCCons == 29 && n1DeeSCEcna == 138) {
4760 sprintf(f_in,
"3a");
4761 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4762 sprintf(f_in,
"29a");
4763 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4765 if (i_DeeSCCons == 29 && n1DeeSCEcna == 157) {
4766 sprintf(f_in,
"3b");
4767 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4768 sprintf(f_in,
"29b");
4769 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4772 if (i_DeeSCCons == 58 && n1DeeSCEcna == 176) {
4773 sprintf(f_in,
"25a");
4774 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4775 sprintf(f_in,
"58a");
4776 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4778 if (i_DeeSCCons == 58 && n1DeeSCEcna == 193) {
4779 sprintf(f_in,
"25b");
4780 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4781 sprintf(f_in,
"58b");
4782 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4785 if (i_DeeSCCons == 149 && n1DeeSCEcna == 188) {
4786 sprintf(f_in,
"34a");
4787 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4788 sprintf(f_in,
"149a");
4789 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4792 if (i_DeeSCCons == 112 && n1DeeSCEcna == 29) {
4793 sprintf(f_in,
" 14a-21a");
4794 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4795 sprintf(f_in,
"112a-119a");
4796 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4798 if (i_DeeSCCons == 112 && n1DeeSCEcna == 144) {
4799 sprintf(f_in,
"14c");
4800 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4801 sprintf(f_in,
"112c");
4802 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4804 if (i_DeeSCCons == 112 && n1DeeSCEcna == 165) {
4805 sprintf(f_in,
"14b");
4806 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4807 sprintf(f_in,
"112b");
4808 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4811 if (i_DeeSCCons == 119 && n1DeeSCEcna == 102) {
4812 sprintf(f_in,
"21c");
4813 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4814 sprintf(f_in,
"119c");
4815 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4817 if (i_DeeSCCons == 119 && n1DeeSCEcna == 123) {
4818 sprintf(f_in,
"21b");
4819 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4820 sprintf(f_in,
"119b");
4821 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4824 if (i_DeeSCCons == 132 && n1DeeSCEcna == 41) {
4825 sprintf(f_in,
"3a");
4826 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4827 sprintf(f_in,
"132a");
4828 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4832 if (i_DeeSCCons == 182 && n1DeeSCEcna == 60) {
4833 sprintf(f_in,
"30a");
4834 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4835 sprintf(f_in,
"182a");
4836 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4838 if (i_DeeSCCons == 182 && n1DeeSCEcna == 119) {
4839 sprintf(f_in,
"30b");
4840 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4841 sprintf(f_in,
"182b");
4842 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4845 if (i_DeeSCCons == 178 && n1DeeSCEcna == 32) {
4846 sprintf(f_in,
" 3c-25c");
4847 text_DSSC_num->DrawText(x_from_IX - 6, y_from_IYp, f_in);
4848 sprintf(f_in,
"178c-207c");
4849 text_DeeSCCons_num->DrawText(x_from_IX - 6, y_from_IYm, f_in);
4851 if (i_DeeSCCons == 178 && n1DeeSCEcna == 138) {
4852 sprintf(f_in,
"3a");
4853 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4854 sprintf(f_in,
"178a");
4855 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4857 if (i_DeeSCCons == 178 && n1DeeSCEcna == 157) {
4858 sprintf(f_in,
"3b");
4859 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4860 sprintf(f_in,
"178b");
4861 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4864 if (i_DeeSCCons == 207 && n1DeeSCEcna == 176) {
4865 sprintf(f_in,
"25a");
4866 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4867 sprintf(f_in,
"207a");
4868 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4870 if (i_DeeSCCons == 207 && n1DeeSCEcna == 193) {
4871 sprintf(f_in,
"25b");
4872 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4873 sprintf(f_in,
"207b");
4874 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4877 if (i_DeeSCCons == 298 && n1DeeSCEcna == 188) {
4878 sprintf(f_in,
"34a");
4879 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4880 sprintf(f_in,
"298a");
4881 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4884 if (i_DeeSCCons == 261 && n1DeeSCEcna == 29) {
4885 sprintf(f_in,
" 14a-21a");
4886 text_DSSC_num->DrawText(x_from_IX - 6, y_from_IYp, f_in);
4887 sprintf(f_in,
"261a-268a");
4888 text_DeeSCCons_num->DrawText(x_from_IX - 6, y_from_IYm, f_in);
4890 if (i_DeeSCCons == 261 && n1DeeSCEcna == 144) {
4891 sprintf(f_in,
"14c");
4892 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4893 sprintf(f_in,
"261c");
4894 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4896 if (i_DeeSCCons == 261 && n1DeeSCEcna == 165) {
4897 sprintf(f_in,
"14b");
4898 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4899 sprintf(f_in,
"261b");
4900 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4903 if (i_DeeSCCons == 268 && n1DeeSCEcna == 102) {
4904 sprintf(f_in,
"21c");
4905 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4906 sprintf(f_in,
"268c");
4907 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4909 if (i_DeeSCCons == 268 && n1DeeSCEcna == 123) {
4910 sprintf(f_in,
"21b");
4911 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4912 sprintf(f_in,
"268b");
4913 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4916 if (i_DeeSCCons == 281 && n1DeeSCEcna == 41) {
4917 sprintf(f_in,
"20a");
4918 text_DSSC_num->DrawText(x_from_IX, y_from_IYp, f_in);
4919 sprintf(f_in,
"281a");
4920 text_DeeSCCons_num->DrawText(x_from_IX, y_from_IYm, f_in);
4929 sprintf(f_in,
"color: nb in Data Sector, black: nb for construction");
4931 Int_t y_colors = -14;
4933 TText* text_colors =
new TText(x_colors, y_colors, f_in);
4935 text_colors->SetTextSize(0.03);
4936 text_colors->SetTextColor(coul_textcolors);
4937 text_colors->Draw();
4940 gStyle->SetTextColor(couleur_noir);
4950 if (c_option ==
"corcc") {
4955 Int_t nb_binx = GeoBidSizeIX;
4956 Int_t nb_biny = GeoBidSizeIY;
4957 Axis_t xinf_bid = (Axis_t)0.;
4958 Axis_t xsup_bid = (Axis_t)GeoBidSizeIX;
4960 Axis_t yinf_bid = (Axis_t)0.;
4961 Axis_t ysup_bid = (Axis_t)GeoBidSizeIY;
4962 Double_t ymid_bid = (Double_t)(ysup_bid - yinf_bid) / 2.;
4969 if (c_option ==
"corcc") {
4974 Int_t max_x = nb_binx / size_IX;
4975 Int_t max_y = nb_biny / size_IY;
4976 Int_t max_yd = max_y / 2;
4980 Int_t coefcc_x = (Int_t)1;
4981 Int_t coefcc_y = (Int_t)1;
4982 if (c_option ==
"corcc") {
4988 Double_t yline = (Double_t)yinf_bid - (Double_t)size_IY;
4990 Double_t xline_beg = (Double_t)xinf_bid;
4991 Double_t xline_end = (Double_t)xsup_bid;
4994 Int_t x_min[11] = {11, 11, 7, 0, 0, 0, 0, 0, 0, 0, 0};
4995 Int_t x_max[11] = {50, 50, 47, 45, 45, 42, 37, 35, 30, 15, 50};
4996 for (Int_t
i = 0;
i < 11;
i++) {
4997 x_min[
i] = coefcc_x * x_min[
i];
4998 x_max[
i] = coefcc_x * x_max[
i];
5001 for (Int_t
j = 0;
j < max_y;
j++) {
5004 if (DeeNumber == 1 || DeeNumber == 3) {
5005 xline_beg = xinf_bid + (Double_t)x_min[10 -
j];
5006 xline_end = xinf_bid + (Double_t)x_max[10 -
j];
5008 if (DeeNumber == 2 || DeeNumber == 4) {
5009 xline_beg = xsup_bid - (Double_t)x_max[10 -
j];
5010 xline_end = xsup_bid - (Double_t)x_min[10 -
j];
5016 if (DeeNumber == 1 || DeeNumber == 3) {
5017 xline_beg = xinf_bid + (Double_t)x_min[0];
5018 xline_end = xinf_bid + (Double_t)x_max[0];
5020 if (DeeNumber == 2 || DeeNumber == 4) {
5021 xline_beg = xsup_bid - (Double_t)x_max[0];
5022 xline_end = xsup_bid - (Double_t)x_min[0];
5028 if (DeeNumber == 1 || DeeNumber == 3) {
5029 xline_beg = xinf_bid + (Double_t)x_min[
j - 10];
5030 xline_end = xinf_bid + (Double_t)x_max[
j - 10];
5032 if (DeeNumber == 2 || DeeNumber == 4) {
5033 xline_beg = xsup_bid - (Double_t)x_max[
j - 10];
5034 xline_end = xsup_bid - (Double_t)x_min[
j - 10];
5038 yline = yline + (Double_t)size_IY;
5040 lin =
new TLine(xline_beg, yline, xline_end, yline);
5048 Double_t xline = (Double_t)xinf_bid - (Double_t)size_IX;
5050 Double_t yline_haut_bot = (Double_t)ymid_bid;
5051 Double_t yline_haut_top = (Double_t)ysup_bid;
5053 Double_t yline_bas_bot;
5054 Double_t yline_bas_top;
5058 Int_t y_min[11] = {0, 11, 7, 0, 0, 0, 0, 0, 0, 0, 0};
5059 Int_t y_max[11] = {50, 50, 47, 45, 45, 42, 38, 35, 30, 15, 10};
5060 for (Int_t
i = 0;
i < 11;
i++) {
5061 y_min[
i] = coefcc_y * y_min[
i];
5062 y_max[
i] = coefcc_y * y_max[
i];
5065 gStyle->SetTextSize(0.075);
5067 for (Int_t
i = 0;
i <= max_x;
i++) {
5068 if (DeeNumber == 1 || DeeNumber == 3) {
5069 yline_haut_bot = ymid_bid + (Double_t)y_min[
i];
5070 yline_haut_top = ymid_bid + (Double_t)y_max[
i];
5072 if (DeeNumber == 2 || DeeNumber == 4) {
5073 yline_haut_bot = ymid_bid + (Double_t)y_min[10 -
i];
5074 yline_haut_top = ymid_bid + (Double_t)y_max[10 -
i];
5076 yline_bas_bot = ysup_bid - yline_haut_top;
5077 yline_bas_top = ysup_bid - yline_haut_bot;
5079 xline = xline + (Double_t)size_IX;
5081 lin_haut =
new TLine(xline, yline_haut_bot, xline, yline_haut_top);
5086 lin_bas =
new TLine(xline, yline_bas_bot, xline, yline_bas_top);
5092 Float_t fcoefcc_x = (Float_t)coefcc_x;
5093 Float_t fcoefcc_y = (Float_t)coefcc_y;
5108 Int_t nb_niv2 = (nb_niv + 1) / 2;
5110 for (Int_t num_niv = 0; num_niv < nb_niv2; num_niv++) {
5111 Int_t ind_niv = num_niv + nb_niv2 - 1;
5112 if (ind_niv < 0 || ind_niv > nb_niv) {
5113 std::cout <<
"!TEcnaHistos::ContourLevels(...)> *** ERROR *** " 5114 <<
"wrong contour levels for correlation matrix" <<
fTTBELL << std::endl;
5116 cont_niv[ind_niv] = (Double_t)(num_niv * num_niv) / ((Double_t)((nb_niv2 - 1) * (nb_niv2 - 1)));
5119 for (Int_t num_niv = -1; num_niv > -nb_niv2; num_niv--) {
5120 Int_t ind_niv = num_niv + nb_niv2 - 1;
5121 if (ind_niv < 0 || ind_niv > nb_niv) {
5122 std::cout <<
"!TEcnaHistos::ContourLevels(...)> *** ERROR *** " 5123 <<
"wrong contour levels for correlation matrix" <<
fTTBELL << std::endl;
5125 cont_niv[ind_niv] = -(Double_t)(num_niv * num_niv) / ((Double_t)((nb_niv2 - 1) * (nb_niv2 - 1)));
5136 TString xname =
" ";
5149 TString xname =
" ";
5151 if (chcode ==
"ietaEB") {
5152 xname =
"i#eta Xtal ";
5154 if (chcode ==
"ietaSM") {
5155 xname =
"i#eta Xtal ";
5157 if (chcode ==
"ietaTow") {
5158 xname =
"i#eta Xtal ";
5161 if (chcode ==
"iphiEB") {
5162 xname =
" i#varphi Xtal";
5164 if (chcode ==
"jphiEB+") {
5165 xname =
" i#varphi Xtal";
5167 if (chcode ==
"jphiEB-") {
5168 xname =
" i#varphi Xtal";
5170 if (chcode ==
"jphiSMB+") {
5171 xname =
" i#varphi Xtal";
5173 if (chcode ==
"jphiSMB-") {
5174 xname =
"i#varphi Xtal ";
5176 if (chcode ==
"jphiTow") {
5177 xname =
"i#varphi Xtal in SM ";
5179 if (chcode ==
"phi") {
5180 xname =
"i#varphi Xtal in EB ";
5187 TString xname =
" ";
5189 if (chcode ==
"iIXDee") {
5193 if (chcode ==
"iIXDee1") {
5194 xname =
" -IX Xtal";
5196 if (chcode ==
"iIXDee2") {
5197 xname =
" IX Xtal ";
5199 if (chcode ==
"iIXDee3") {
5202 if (chcode ==
"iIXDee4") {
5203 xname =
"-IX Xtal ";
5206 if (chcode ==
"iIXEE") {
5210 if (chcode ==
"iIXSC") {
5214 if (chcode ==
"jIYDee") {
5217 if (chcode ==
"jIYSC") {
5220 if (chcode ==
"IY") {
5241 if (HistoCode ==
"D_NOE_ChNb") {
5242 sprintf(f_in_mat_tit,
"Number of Events");
5244 if (HistoCode ==
"D_Ped_ChNb") {
5245 sprintf(f_in_mat_tit,
"Pedestals");
5247 if (HistoCode ==
"D_TNo_ChNb") {
5248 sprintf(f_in_mat_tit,
"Total noise");
5250 if (HistoCode ==
"D_MCs_ChNb") {
5251 sprintf(f_in_mat_tit,
"Mean cor(s,s')");
5253 if (HistoCode ==
"D_LFN_ChNb") {
5254 sprintf(f_in_mat_tit,
"Low frequency noise");
5256 if (HistoCode ==
"D_HFN_ChNb") {
5257 sprintf(f_in_mat_tit,
"High frequency noise");
5259 if (HistoCode ==
"D_SCs_ChNb") {
5260 sprintf(f_in_mat_tit,
"Sigma of cor(s,s')");
5267 Int_t vertic_empty_strips = 3;
5268 Int_t vertic_empty_strip_1 = 1;
5276 Int_t nb_binx = GeoBidSizeHoco;
5277 Int_t nb_biny = GeoBidSizeVeco;
5278 Axis_t xinf_bid = (Axis_t)0.;
5279 Axis_t xsup_bid = (Axis_t)GeoBidSizeHoco;
5280 Axis_t yinf_bid = (Axis_t)0.;
5281 Axis_t ysup_bid = (Axis_t)GeoBidSizeVeco;
5283 TString axis_x_var_name =
" #Hoco ";
5284 TString axis_y_var_name =
" #varVeco ";
5289 new TH2D(
"geobidim_ViewStas", f_in_mat_tit, nb_binx, xinf_bid, xsup_bid, nb_biny, yinf_bid, ysup_bid);
5293 Int_t CounterExistingFile = 0;
5294 Int_t CounterDataExist = 0;
5299 xFapNbOfEvts[
i] = 0;
5308 partial_histp(
i) = (Double_t)0.;
5311 Bool_t OKFileExists = kFALSE;
5312 Bool_t OKDataExist = kFALSE;
5316 Int_t n1StasStex = iStasStex + 1;
5327 OKFileExists = kTRUE;
5330 if (OKFileExists == kTRUE) {
5337 if (iStasStex == 0) {
5361 if (HistoCode ==
"D_NOE_ChNb") {
5364 if (HistoCode ==
"D_Ped_ChNb") {
5367 if (HistoCode ==
"D_TNo_ChNb") {
5370 if (HistoCode ==
"D_MCs_ChNb") {
5373 if (HistoCode ==
"D_LFN_ChNb") {
5376 if (HistoCode ==
"D_HFN_ChNb") {
5379 if (HistoCode ==
"D_SCs_ChNb") {
5384 OKDataExist = kTRUE;
5388 std::cout <<
"!TEcnaHistos::ViewStas(...)> *ERROR* =====> " 5389 <<
" ROOT file not found" <<
fTTBELL << std::endl;
5393 if (arg_AlreadyRead == 1) {
5394 OKDataExist = kTRUE;
5400 if (OKDataExist == kTRUE) {
5402 CounterExistingFile++;
5405 TMatrixD read_matrix(nb_binx, nb_biny);
5406 for (Int_t
i = 0;
i < nb_binx;
i++) {
5407 for (Int_t
j = 0;
j < nb_biny;
j++) {
5408 read_matrix(
i,
j) = (Double_t)0.;
5412 if (OKDataExist == kTRUE) {
5418 Int_t i_xgeo =
GetXStinInStas(iStasStex, i0StexStinEcna, vertic_empty_strip_1);
5421 if (i_xgeo >= 0 && i_xgeo < nb_binx && i_ygeo >= 0 && i_ygeo < nb_biny) {
5422 Int_t n1StexStinEcna = i0StexStinEcna + 1;
5425 read_matrix(i_xgeo, i_ygeo) = partial_histp(i0StexStinEcna);
5426 h_geo_bid->Fill((Double_t)i_xgeo, (Double_t)i_ygeo, (Double_t)read_matrix(i_xgeo, i_ygeo));
5431 if (!((n1StexStinEcna == 10 || n1StexStinEcna == 11 || n1StexStinEcna == 29 || n1StexStinEcna == 32))) {
5432 read_matrix(i_xgeo, i_ygeo) = partial_histp(i0StexStinEcna);
5433 h_geo_bid->Fill((Double_t)i_xgeo, (Double_t)i_ygeo, (Double_t)read_matrix(i_xgeo, i_ygeo));
5435 if (n1StexStinEcna == 29) {
5447 read_matrix(i_xgeo, i_ygeo) =
5448 partial_histp(i0StexStinEcna) * (Double_t)(5. / 6.) + partial_histp(9) / (Double_t)6.;
5449 h_geo_bid->Fill((Double_t)i_xgeo, (Double_t)i_ygeo, (Double_t)read_matrix(i_xgeo, i_ygeo));
5452 if (n1StexStinEcna == 32) {
5455 read_matrix(i_xgeo, i_ygeo) =
5456 partial_histp(i0StexStinEcna) * (Double_t)(5. / 6.) + partial_histp(10) / (Double_t)6.;
5457 h_geo_bid->Fill((Double_t)i_xgeo, (Double_t)i_ygeo, (Double_t)read_matrix(i_xgeo, i_ygeo));
5466 std::cout <<
"!TEcnaHistos::ViewStas(...)> " 5467 <<
" Data not available for " <<
fFapStexName <<
" " << iStasStex + 1
5468 <<
" (Quantity not present in the ROOT file)" <<
fTTBELL << std::endl;
5474 std::cout <<
"!TEcnaHistos::ViewStas(...)> " 5475 <<
" Data not available for " <<
fFapStexName <<
" " << iStasStex + 1 <<
" (ROOT file not found)" 5486 delete[] xFapNbOfEvts;
5487 xFapNbOfEvts =
nullptr;
5490 if (CounterExistingFile > 0 && CounterDataExist > 0) {
5555 TString name_cov_cor;
5559 if (HistoCode ==
"D_NOE_ChNb") {
5560 name_cov_cor =
"Number_of_Events";
5562 if (HistoCode ==
"D_Ped_ChNb") {
5563 name_cov_cor =
"Pedestals";
5565 if (HistoCode ==
"D_TNo_ChNb") {
5566 name_cov_cor =
"Total_noise";
5568 if (HistoCode ==
"D_MCs_ChNb") {
5569 name_cov_cor =
"Mean_Corss";
5571 if (HistoCode ==
"D_LFN_ChNb") {
5572 name_cov_cor =
"Low_Fq_Noise";
5574 if (HistoCode ==
"D_HFN_ChNb") {
5575 name_cov_cor =
"High_Fq_Noise";
5577 if (HistoCode ==
"D_SCs_ChNb") {
5578 name_cov_cor =
"Sigma_Corss";
5586 "%s_%s_S1_%d_R%d_%d_%d_%s_%s_HocoVeco_R%d",
5587 name_cov_cor.Data(),
5604 TCanvas* MainCanvas =
new TCanvas(f_in, f_in, canv_w, canv_h);
5623 Double_t x_margin = x_low;
5624 Double_t y_margin = y_low;
5625 MainCanvas->Divide(1, 1, x_margin, y_margin);
5632 TVirtualPad* main_subpad = gPad;
5633 main_subpad->SetPad(x_low, y_low, x_up, y_up);
5637 h_geo_bid->GetXaxis()->SetTitle(axis_x_var_name);
5638 h_geo_bid->GetYaxis()->SetTitle(axis_y_var_name);
5640 h_geo_bid->DrawCopy(
"COLZ");
5651 Bool_t b_true =
true;
5652 h_geo_bid->SetStats(b_true);
5653 h_geo_bid->Delete();
5654 h_geo_bid =
nullptr;
5665 const Int_t& StexStinEcna,
5666 const Int_t& vertic_empty_strip_1) {
5671 Int_t n1StasStex = iStasStex + 1;
5675 if (ctype ==
"EB-") {
5679 if (ctype ==
"EB+") {
5688 if (ctype ==
"EE-" && LeftRightFromIP ==
"left") {
5691 if (ctype ==
"EE-" && LeftRightFromIP ==
"right") {
5694 if (ctype ==
"EE+" && LeftRightFromIP ==
"left") {
5698 if (ctype ==
"EE+" && LeftRightFromIP ==
"right") {
5712 Int_t n1StasStex = iStasStex + 1;
5714 if (ctype ==
"EB+") {
5717 if (ctype ==
"EB-") {
5755 Int_t nb_binx = GeoBidSizePhi;
5756 Int_t nb_biny = GeoBidSizeEta;
5757 Axis_t xinf_bid = (Axis_t)0.;
5758 Axis_t xsup_bid = (Axis_t)nb_binx;
5759 Axis_t yinf_bid = (Axis_t)0.;
5760 Axis_t ysup_bid = (Axis_t)nb_biny;
5764 Int_t max_x = nb_binx / size_x;
5765 Int_t max_y = nb_biny / size_y;
5768 Double_t yline = (Double_t)yinf_bid;
5770 Double_t xline_left = (Double_t)xinf_bid;
5771 Double_t xline_right = (Double_t)xsup_bid;
5773 for (Int_t
j = 0;
j < max_y;
j++) {
5774 yline = yline + (Double_t)size_y;
5776 lin =
new TLine(xline_left, yline, xline_right, yline);
5783 Double_t xline = (Double_t)xinf_bid - (Double_t)size_x;
5785 Double_t yline_bot = (Double_t)yinf_bid;
5786 Double_t yline_top = (Double_t)ysup_bid;
5788 for (Int_t
i = 0;
i < max_x;
i++) {
5789 xline = xline + (Double_t)size_x;
5791 lin =
new TLine(xline, yline_bot, xline, yline_top);
5797 Double_t yTextBot = yline_bot - (yline_top - yline_bot) / 25.;
5798 Double_t yTextTop = yline_top + (yline_top - yline_bot) / 120.;
5799 xline = (Double_t)xinf_bid - (Double_t)size_x;
5802 TText* text_SM =
new TText();
5804 for (Int_t
i = 0;
i < max_x;
i++) {
5805 xline = xline + (Double_t)size_x;
5807 text_SM->SetTextSize((Double_t)0.03);
5808 sprintf(f_in,
" +%d",
i + 1);
5809 text_SM->DrawText(xline, yTextTop, f_in);
5810 sprintf(f_in,
" %d", -
i - 1);
5811 text_SM->DrawText(xline, yTextBot, f_in);
5821 Double_t phi_min = 0;
5822 Double_t phi_max = 360;
5828 new TF1(
"f1", x_direction.Data(), phi_min, phi_max);
5830 TGaxis* sup_axis_x =
nullptr;
5832 if (x_direction ==
"-x")
5835 new TGaxis((Float_t)0., (Float_t)0., (Float_t)(size_x_eb * MatSize), (Float_t)0.,
"f1", size_x_eb,
"SC", 0.);
5839 if (x_direction ==
"x")
5842 new TGaxis((Float_t)0., (Float_t)0., (Float_t)(size_x_eb * MatSize), (Float_t)0.,
"f1", size_x_eb,
"SC", 0.);
5852 if (sup_axis_x !=
nullptr) {
5853 sup_axis_x->SetTitle(x_var_name);
5854 sup_axis_x->SetTitleSize(tit_siz_x);
5855 sup_axis_x->SetTitleOffset(tit_off_x);
5856 sup_axis_x->SetLabelSize(lab_siz_x);
5857 sup_axis_x->SetLabelOffset(lab_off_x);
5858 sup_axis_x->SetTickSize(tic_siz_x);
5859 sup_axis_x->Draw(
"SAME");
5866 Double_t
eta_min = (Double_t)(-85.);
5867 Double_t
eta_max = (Double_t)85.;
5871 TGaxis* sup_axis_y =
nullptr;
5872 sup_axis_y =
new TGaxis(
5873 (Float_t)0., (Float_t)0., (Float_t)0., (Float_t)(size_y_eb * MatSize),
eta_min,
eta_max, MatSize / 2,
"SC", 0.);
5882 sup_axis_y->SetTitle(y_var_name);
5883 sup_axis_y->SetTitleSize(tit_siz_y);
5884 sup_axis_y->SetTitleOffset(tit_off_y);
5885 sup_axis_y->SetLabelColor(1);
5886 sup_axis_y->SetLabelSize(lab_siz_y);
5887 sup_axis_y->SetLabelOffset(lab_off_y);
5888 sup_axis_y->SetTickSize(tic_siz_y);
5889 sup_axis_y->Draw(
"SAME");
5900 Float_t coefcc_x = (Float_t)1. / (Float_t)5.;
5901 Float_t coefcc_y = (Float_t)1. / (Float_t)5.;
5903 for (Int_t DeeNumber = 1; DeeNumber <= 4; DeeNumber++) {
5912 Double_t yline_bot = (Double_t)coefcc_y * (Double_t)0.;
5916 lin =
new TLine(xline, yline_bot, xline, yline_top);
5922 xline = (Double_t)coefcc_x *
5925 lin12 =
new TLine(xline, yline_bot, xline, yline_top);
5927 lin12->SetLineStyle(2);
5933 lin34 =
new TLine(xline, yline_bot, xline, yline_top);
5935 lin34->SetLineStyle(2);
5939 Double_t xline_end =
5944 linh =
new TLine(0., yline_mid, xline_end, yline_mid);
5946 linh->SetLineStyle(2);
5953 const Float_t& coefcc_y,
5954 const Int_t& DeeNumber,
5955 const TString& opt_plot) {
5959 Int_t LineWidth = 2;
5960 if (opt_plot ==
"Dee") {
5967 Float_t xg_dee_int_bot[13] = {0, 5, 5, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11};
5968 Float_t yg_dee_int_bot[13] = {39, 39, 40, 40, 41, 41, 42, 42, 43, 43, 45, 45, 50};
5970 for (Int_t
i = 0;
i < ngmax;
i++) {
5971 xg_dee_int_bot[
i] = coefcc_x * xg_dee_int_bot[
i];
5972 yg_dee_int_bot[
i] = coefcc_y * yg_dee_int_bot[
i];
5975 Float_t XgDeeIntBotRight[13];
5976 Float_t YgDeeIntBotRight[13];
5977 Float_t XgDeeIntTopRight[13];
5978 Float_t YgDeeIntTopRight[13];
5980 for (Int_t
i = 0;
i < ngmax;
i++) {
5981 XgDeeIntBotRight[
i] = xg_dee_int_bot[
i];
5982 YgDeeIntBotRight[
i] = yg_dee_int_bot[
i];
5983 XgDeeIntTopRight[
i] = XgDeeIntBotRight[
i];
5985 if (DeeNumber == 2 || DeeNumber == 4) {
5993 TGraph* BDeeIntBotRight =
new TGraph(ngmax, XgDeeIntBotRight, YgDeeIntBotRight);
5994 BDeeIntBotRight->SetLineWidth(LineWidth);
5995 BDeeIntBotRight->DrawGraph(ngmax, XgDeeIntBotRight, YgDeeIntBotRight);
5997 TGraph* BDeeIntTopRight =
new TGraph(ngmax, XgDeeIntTopRight, YgDeeIntTopRight);
5998 BDeeIntTopRight->SetLineWidth(LineWidth);
5999 BDeeIntTopRight->DrawGraph(ngmax, XgDeeIntTopRight, YgDeeIntTopRight);
6003 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};
6004 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};
6005 for (Int_t
i = 0;
i < ngmax;
i++) {
6006 xg_dee_ext_bot[
i] = coefcc_x * xg_dee_ext_bot[
i];
6007 yg_dee_ext_bot[
i] = coefcc_y * yg_dee_ext_bot[
i];
6010 Float_t XgDeeExtBotRight[21];
6011 Float_t YgDeeExtBotRight[21];
6012 Float_t XgDeeExtTopRight[21];
6013 Float_t YgDeeExtTopRight[21];
6015 for (Int_t
i = 0;
i < ngmax;
i++) {
6016 XgDeeExtBotRight[
i] = xg_dee_ext_bot[
i];
6017 YgDeeExtBotRight[
i] = yg_dee_ext_bot[
i];
6018 XgDeeExtTopRight[
i] = XgDeeExtBotRight[
i];
6020 if (DeeNumber == 2 || DeeNumber == 4) {
6028 TGraph* BDeeExtBotRight =
new TGraph(ngmax, XgDeeExtBotRight, YgDeeExtBotRight);
6029 BDeeExtBotRight->SetLineWidth(LineWidth);
6030 BDeeExtBotRight->DrawGraph(ngmax, XgDeeExtBotRight, YgDeeExtBotRight);
6032 TGraph* BDeeExtTopRight =
new TGraph(ngmax, XgDeeExtTopRight, YgDeeExtTopRight);
6033 BDeeExtTopRight->SetLineWidth(LineWidth);
6034 BDeeExtTopRight->DrawGraph(ngmax, XgDeeExtTopRight, YgDeeExtTopRight);
6041 if (opt_plot ==
"EE") {
6043 Float_t xg_dee_data_sec9[2] = {0, 0};
6044 Float_t yg_dee_data_sec9[2] = {61, 100};
6045 for (Int_t
i = 0;
i < ngmax;
i++) {
6046 xg_dee_data_sec9[
i] = coefcc_x * xg_dee_data_sec9[
i];
6047 yg_dee_data_sec9[
i] = coefcc_y * yg_dee_data_sec9[
i];
6050 Float_t XgDeeDataSec9[11];
6051 Float_t YgDeeDataSec9[11];
6052 for (Int_t
i = 0;
i < ngmax;
i++) {
6053 XgDeeDataSec9[
i] = xg_dee_data_sec9[
i];
6054 YgDeeDataSec9[
i] = yg_dee_data_sec9[
i];
6055 if (DeeNumber == 2 || DeeNumber == 4) {
6060 TGraph* BDeeDataSec9 =
new TGraph(ngmax, XgDeeDataSec9, YgDeeDataSec9);
6061 BDeeDataSec9->SetLineWidth(LineWidth);
6062 BDeeDataSec9->DrawGraph(ngmax, XgDeeDataSec9, YgDeeDataSec9);
6067 Float_t xg_dee_data_sec1[11] = {7, 10, 10, 15, 15, 20, 20, 25, 25, 30, 30};
6068 Float_t yg_dee_data_sec1[11] = {60, 60, 65, 65, 70, 70, 75, 75, 85, 85, 87};
6069 for (Int_t
i = 0;
i < ngmax;
i++) {
6070 xg_dee_data_sec1[
i] = coefcc_x * xg_dee_data_sec1[
i];
6071 yg_dee_data_sec1[
i] = coefcc_y * yg_dee_data_sec1[
i];
6074 Float_t XgDeeDataSec1[11];
6075 Float_t YgDeeDataSec1[11];
6076 for (Int_t
i = 0;
i < ngmax;
i++) {
6077 XgDeeDataSec1[
i] = xg_dee_data_sec1[
i];
6078 YgDeeDataSec1[
i] = yg_dee_data_sec1[
i];
6079 if (DeeNumber == 2 || DeeNumber == 4) {
6085 TGraph* BDeeDataSec1 =
new TGraph(ngmax, XgDeeDataSec1, YgDeeDataSec1);
6086 BDeeDataSec1->SetLineWidth(LineWidth);
6087 BDeeDataSec1->DrawGraph(ngmax, XgDeeDataSec1, YgDeeDataSec1);
6091 Float_t xg_dee_data_sec2[6] = {11, 15, 15, 40, 40, 47};
6092 Float_t yg_dee_data_sec2[6] = {50, 50, 55, 55, 60, 60};
6093 for (Int_t
i = 0;
i < ngmax;
i++) {
6094 xg_dee_data_sec2[
i] = coefcc_x * xg_dee_data_sec2[
i];
6095 yg_dee_data_sec2[
i] = coefcc_y * yg_dee_data_sec2[
i];
6098 Float_t XgDeeDataSec2[6];
6099 Float_t YgDeeDataSec2[6];
6100 for (Int_t
i = 0;
i < ngmax;
i++) {
6101 XgDeeDataSec2[
i] = xg_dee_data_sec2[
i];
6102 YgDeeDataSec2[
i] = yg_dee_data_sec2[
i];
6103 if (DeeNumber == 2 || DeeNumber == 4) {
6108 TGraph* BDeeDataSec2 =
new TGraph(ngmax, XgDeeDataSec2, YgDeeDataSec2);
6109 BDeeDataSec2->SetLineWidth(LineWidth);
6110 BDeeDataSec2->DrawGraph(ngmax, XgDeeDataSec2, YgDeeDataSec2);
6114 Float_t xg_dee_data_sec3[10] = {10, 15, 15, 20, 20, 30, 30, 40, 40, 42};
6115 Float_t yg_dee_data_sec3[10] = {45, 45, 40, 40, 35, 35, 30, 30, 25, 25};
6116 for (Int_t
i = 0;
i < ngmax;
i++) {
6117 xg_dee_data_sec3[
i] = coefcc_x * xg_dee_data_sec3[
i];
6118 yg_dee_data_sec3[
i] = coefcc_y * yg_dee_data_sec3[
i];
6121 Float_t XgDeeDataSec3[10];
6122 Float_t YgDeeDataSec3[10];
6123 for (Int_t
i = 0;
i < ngmax;
i++) {
6124 XgDeeDataSec3[
i] = xg_dee_data_sec3[
i];
6125 YgDeeDataSec3[
i] = yg_dee_data_sec3[
i];
6126 if (DeeNumber == 2 || DeeNumber == 4) {
6131 TGraph* BDeeDataSec3 =
new TGraph(ngmax, XgDeeDataSec3, YgDeeDataSec3);
6132 BDeeDataSec3->SetLineWidth(LineWidth);
6133 BDeeDataSec3->DrawGraph(ngmax, XgDeeDataSec3, YgDeeDataSec3);
6137 Float_t xg_dee_data_sec4[6] = {5, 5, 10, 10, 15, 15};
6138 Float_t yg_dee_data_sec4[6] = {40, 30, 30, 15, 15, 5};
6139 for (Int_t
i = 0;
i < ngmax;
i++) {
6140 xg_dee_data_sec4[
i] = coefcc_x * xg_dee_data_sec4[
i];
6141 yg_dee_data_sec4[
i] = coefcc_y * yg_dee_data_sec4[
i];
6144 Float_t XgDeeDataSec4[6];
6145 Float_t YgDeeDataSec4[6];
6146 for (Int_t
i = 0;
i < ngmax;
i++) {
6147 XgDeeDataSec4[
i] = xg_dee_data_sec4[
i];
6148 YgDeeDataSec4[
i] = yg_dee_data_sec4[
i];
6149 if (DeeNumber == 2 || DeeNumber == 4) {
6154 TGraph* BDeeDataSec4 =
new TGraph(ngmax, XgDeeDataSec4, YgDeeDataSec4);
6155 BDeeDataSec4->SetLineWidth(LineWidth);
6156 BDeeDataSec4->DrawGraph(ngmax, XgDeeDataSec4, YgDeeDataSec4);
6159 if (opt_plot ==
"Dee" || opt_plot ==
"EE") {
6162 Float_t xg_coord_sector[5] = {16, 41, 45, 33, -2};
6163 Float_t yg_coord_sector[5] = {96, 83, 30, 5, -8};
6166 if (opt_plot ==
"Dee" && (DeeNumber == 1)) {
6167 xg_coord_sector[2] += 0.5;
6169 if (opt_plot ==
"Dee" && (DeeNumber == 2)) {
6170 xg_coord_sector[2] -= 1.;
6172 if (opt_plot ==
"Dee" && (DeeNumber == 3)) {
6173 xg_coord_sector[2] += 0.7;
6175 if (opt_plot ==
"Dee" && (DeeNumber == 4)) {
6176 xg_coord_sector[2] -= 1.2;
6179 if (opt_plot ==
"EE" && (DeeNumber == 2 || DeeNumber == 3)) {
6180 xg_coord_sector[2] += 0.55;
6182 if (opt_plot ==
"EE" && (DeeNumber == 4)) {
6183 xg_coord_sector[2] -= 0.2;
6186 for (Int_t
i = 0;
i < ngmax;
i++) {
6187 xg_coord_sector[
i] = coefcc_x * xg_coord_sector[
i];
6188 yg_coord_sector[
i] = coefcc_y * yg_coord_sector[
i];
6191 Float_t xg_sector[9];
6192 Float_t yg_sector[9];
6195 Float_t xinv_d2d4 = coefcc_x * 44;
6197 if (DeeNumber == 1) {
6200 xg_sector[1 - ns1] = xg_coord_sector[1 - ns1];
6201 yg_sector[1 - ns1] = yg_coord_sector[1 - ns1];
6202 xg_sector[2 - ns1] = xg_coord_sector[2 - ns1];
6203 yg_sector[2 - ns1] = yg_coord_sector[2 - ns1];
6204 xg_sector[3 - ns1] = xg_coord_sector[3 - ns1];
6205 yg_sector[3 - ns1] = yg_coord_sector[3 - ns1];
6206 xg_sector[4 - ns1] = xg_coord_sector[4 - ns1];
6207 yg_sector[4 - ns1] = yg_coord_sector[4 - ns1];
6208 xg_sector[5 - ns1] = xg_coord_sector[5 - ns1];
6209 yg_sector[5 - ns1] = yg_coord_sector[5 - ns1];
6212 if (DeeNumber == 2) {
6215 xg_sector[ns2 - 1] = xinv_d2d4 - xg_coord_sector[1 - 1];
6216 yg_sector[ns2 - 1] = yg_coord_sector[1 - 1];
6217 xg_sector[ns2 - 2] = xinv_d2d4 - xg_coord_sector[2 - 1];
6218 yg_sector[ns2 - 2] = yg_coord_sector[2 - 1];
6219 xg_sector[ns2 - 3] = xinv_d2d4 - xg_coord_sector[3 - 1];
6220 yg_sector[ns2 - 3] = yg_coord_sector[3 - 1];
6221 xg_sector[ns2 - 4] = xinv_d2d4 - xg_coord_sector[4 - 1];
6222 yg_sector[ns2 - 4] = yg_coord_sector[4 - 1];
6223 xg_sector[ns2 - 5] = xinv_d2d4 - xg_coord_sector[5 - 1];
6224 yg_sector[ns2 - 5] = yg_coord_sector[5 - 1];
6226 if (DeeNumber == 3) {
6229 xg_sector[ns2 - 1] = xg_coord_sector[1 - 1];
6230 yg_sector[ns2 - 1] = yg_coord_sector[1 - 1];
6231 xg_sector[ns2 - 2] = xg_coord_sector[2 - 1];
6232 yg_sector[ns2 - 2] = yg_coord_sector[2 - 1];
6233 xg_sector[ns2 - 3] = xg_coord_sector[3 - 1];
6234 yg_sector[ns2 - 3] = yg_coord_sector[3 - 1];
6235 xg_sector[ns2 - 4] = xg_coord_sector[4 - 1];
6236 yg_sector[ns2 - 4] = yg_coord_sector[4 - 1];
6237 xg_sector[ns2 - 5] = xg_coord_sector[5 - 1];
6238 yg_sector[ns2 - 5] = yg_coord_sector[5 - 1];
6240 if (DeeNumber == 4) {
6243 xg_sector[1 - ns1] = xinv_d2d4 - xg_coord_sector[1 - ns1];
6244 yg_sector[1 - ns1] = yg_coord_sector[1 - ns1];
6245 xg_sector[2 - ns1] = xinv_d2d4 - xg_coord_sector[2 - ns1];
6246 yg_sector[2 - ns1] = yg_coord_sector[2 - ns1];
6247 xg_sector[3 - ns1] = xinv_d2d4 - xg_coord_sector[3 - ns1];
6248 yg_sector[3 - ns1] = yg_coord_sector[3 - ns1];
6249 xg_sector[4 - ns1] = xinv_d2d4 - xg_coord_sector[4 - ns1];
6250 yg_sector[4 - ns1] = yg_coord_sector[4 - ns1];
6251 xg_sector[5 - ns1] = xinv_d2d4 - xg_coord_sector[5 - ns1];
6252 yg_sector[5 - ns1] = yg_coord_sector[5 - ns1];
6256 for (Int_t ns = ns1; ns <= ns2; ns++) {
6258 if (DeeNumber == 1 || DeeNumber == 2) {
6259 sprintf(f_in,
"+%d", ns);
6261 if (DeeNumber == 3 || DeeNumber == 4) {
6262 sprintf(f_in,
"-%d", ns);
6264 TText* text_num_module =
new TText(xg_sector[ns - 1], yg_sector[ns - 1], f_in);
6266 if (opt_plot ==
"Dee") {
6267 text_num_module->SetTextSize(0.065);
6269 if (opt_plot ==
"EE") {
6270 text_num_module->SetTextSize(0.045);
6272 text_num_module->SetTextColor(coul_textsector);
6273 if (opt_plot ==
"Dee" || (opt_plot ==
"EE" && !((DeeNumber == 3 && ns == 5) || (DeeNumber == 1 && ns == 5)))) {
6274 text_num_module->Draw();
6281 Float_t xg_coord_dee[4] = {0, 0, 0, 0};
6282 Float_t yg_coord_dee[4] = {48, 48, 48, 48};
6284 xg_coord_dee[DeeNumber - 1] = coefcc_x * xg_coord_dee[DeeNumber - 1];
6285 yg_coord_dee[DeeNumber - 1] = coefcc_y * yg_coord_dee[DeeNumber - 1];
6287 Float_t xg_dee = xg_coord_dee[DeeNumber - 1];
6288 Float_t yg_dee = yg_coord_dee[DeeNumber - 1];
6294 if (DeeNumber == 1) {
6295 sprintf(f_in,
"D1");
6297 if (DeeNumber == 2) {
6298 sprintf(f_in,
"D2");
6300 if (DeeNumber == 3) {
6301 sprintf(f_in,
"D3");
6303 if (DeeNumber == 4) {
6304 sprintf(f_in,
"D4");
6307 TText* text_num_module =
new TText(xg_dee, yg_dee, f_in);
6309 if (opt_plot ==
"EE") {
6310 text_num_module->SetTextSize(0.045);
6312 if (opt_plot ==
"Dee") {
6313 text_num_module->SetTextSize(0.085);
6315 text_num_module->SetTextColor(coul_textdee);
6316 text_num_module->Draw();
6320 if (opt_plot ==
"EE") {
6322 Float_t xg_coord_eepm[4] = {0, 0, 0, 0};
6323 Float_t yg_coord_eepm[4] = {95, 95, 95, 95};
6325 xg_coord_eepm[DeeNumber - 1] = coefcc_x * xg_coord_eepm[DeeNumber - 1];
6326 yg_coord_eepm[DeeNumber - 1] = coefcc_y * yg_coord_eepm[DeeNumber - 1];
6328 Float_t xg_eepm = xg_coord_eepm[DeeNumber - 1];
6329 Float_t yg_eepm = yg_coord_eepm[DeeNumber - 1];
6335 if (DeeNumber == 1) {
6336 sprintf(f_in,
"EE+F");
6338 if (DeeNumber == 2) {
6339 sprintf(f_in,
"EE+N");
6341 if (DeeNumber == 3) {
6342 sprintf(f_in,
"EE-N");
6344 if (DeeNumber == 4) {
6345 sprintf(f_in,
"EE-F");
6348 TText* text_num_eepm =
new TText(xg_eepm, yg_eepm, f_in);
6350 text_num_eepm->SetTextSize(0.04);
6351 text_num_eepm->SetTextColor(coul_texteepm);
6352 text_num_eepm->Draw();
6357 sprintf(f_in,
"viewed from IP");
6358 Float_t x_from_ip = 15.;
6359 Float_t y_from_ip = -10.;
6360 if (opt_plot ==
"EE") {
6363 x_from_ip = coefcc_x * x_from_ip;
6364 y_from_ip = coefcc_x * y_from_ip;
6365 if (opt_plot ==
"EE" && DeeNumber == 3) {
6368 TText* text_from_ip =
new TText(x_from_ip, y_from_ip, f_in);
6370 text_from_ip->SetTextSize(0.045);
6371 if (opt_plot ==
"EE") {
6372 text_from_ip->SetTextSize(0.035);
6374 text_from_ip->SetTextColor(coul_textfromIP);
6375 if (opt_plot ==
"Dee" || (opt_plot ==
"EE" && DeeNumber == 3)) {
6376 text_from_ip->Draw();
6392 if (opt_plot ==
"Dee" && c_option ==
"corcc") {
6397 if (opt_plot ==
"EE" && c_option ==
"corcc") {
6401 if (opt_plot ==
"Dee" && c_option !=
"corcc") {
6404 if (opt_plot ==
"EE" && c_option !=
"corcc") {
6408 TString x_var_name =
" ";
6410 Float_t axis_x_inf = 0;
6411 Float_t axis_x_sup = 0;
6412 Float_t axis_y_inf = 0;
6413 Float_t axis_y_sup = 0;
6414 Int_t axis_nb_div = 205;
6415 Double_t IX_values_min = 0;
6416 Double_t IX_values_max = 0;
6417 Option_t* chopt =
"C";
6423 axis_x_inf = size_IX_dee * MatSize;
6427 IX_values_min = -IX_max;
6428 IX_values_max = -IX_min;
6429 if (opt_plot ==
"Dee") {
6432 if (opt_plot ==
"EE") {
6435 if (opt_plot ==
"Dee") {
6436 axis_nb_div = size_IX_dee;
6443 axis_x_inf = size_IX_dee * MatSize;
6447 IX_values_min = IX_min;
6448 IX_values_max = IX_max;
6449 if (opt_plot ==
"Dee") {
6452 if (opt_plot ==
"EE") {
6455 if (opt_plot ==
"Dee") {
6456 axis_nb_div = size_IX_dee;
6463 axis_x_sup = size_IX_dee * MatSize;
6466 IX_values_min = IX_min;
6467 IX_values_max = IX_max;
6468 if (opt_plot ==
"Dee") {
6471 if (opt_plot ==
"EE") {
6474 if (opt_plot ==
"Dee") {
6475 axis_nb_div = size_IX_dee;
6482 axis_x_sup = size_IX_dee * MatSize;
6485 IX_values_min = -IX_max;
6486 IX_values_max = -IX_min;
6487 if (opt_plot ==
"Dee") {
6490 if (opt_plot ==
"EE") {
6493 if (opt_plot ==
"Dee") {
6494 axis_nb_div = size_IX_dee;
6503 TGaxis* sup_axis_x =
nullptr;
6505 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.);
6512 if (opt_plot ==
"EE") {
6517 if (opt_plot ==
"EE") {
6522 if (opt_plot ==
"EE") {
6526 sup_axis_x->SetTitle(x_var_name);
6527 sup_axis_x->SetTitleSize(tit_siz_x);
6528 sup_axis_x->SetTitleOffset(tit_off_x);
6529 sup_axis_x->SetLabelSize(lab_siz_x);
6530 sup_axis_x->SetLabelOffset(lab_off_x);
6531 sup_axis_x->SetTickSize(tic_siz_x);
6532 sup_axis_x->Draw(
"SAME");
6535 if (DeeNumber == 1 || DeeNumber == 2) {
6537 TGaxis* sup_axis_x_bis =
nullptr;
6538 sup_axis_x_bis =
new TGaxis(
6539 axis_x_inf, axis_y_inf, axis_x_sup, axis_y_sup, IX_values_min, IX_values_max, axis_nb_div, chopt, 0.);
6541 sup_axis_x_bis->SetTickSize(0.);
6542 lab_siz_x = sup_axis_x->GetLabelSize();
6543 sup_axis_x_bis->SetLabelSize(lab_siz_x);
6544 lab_off_x = sup_axis_x->GetLabelOffset();
6545 sup_axis_x_bis->SetLabelOffset(-lab_off_x);
6546 sup_axis_x_bis->Draw(
"SAME");
6551 if (opt_plot ==
"Dee" || (opt_plot ==
"EE" && DeeNumber == 4)) {
6553 Int_t size_IY_axis = size_IY_dee;
6555 if (opt_plot ==
"Dee") {
6556 axis_nb_div = size_IY_axis;
6558 if (opt_plot ==
"EE") {
6565 TString jy_var_name =
" ";
6566 TString jy_direction =
"x";
6572 if (opt_plot ==
"EE") {
6577 if (opt_plot ==
"EE") {
6582 if (opt_plot ==
"EE") {
6586 TGaxis* axis_jy_plus =
nullptr;
6587 axis_jy_plus =
new TGaxis((Float_t)0.,
6590 (Float_t)(size_IY_axis * MatSize),
6599 axis_jy_plus->SetTitle(jy_var_name);
6600 axis_jy_plus->SetTitleSize(tit_siz_y);
6601 axis_jy_plus->SetTitleOffset(tit_off_y);
6602 axis_jy_plus->SetLabelSize(lab_siz_y);
6603 axis_jy_plus->SetLabelOffset(lab_off_y);
6604 axis_jy_plus->SetTickSize(tic_siz_y);
6605 axis_jy_plus->Draw(
"SAME");
6611 if (opt_plot ==
"Dee" || (opt_plot ==
"EE" && DeeNumber == 4)) {
6613 Int_t size_IY_axis = size_IY_dee / 2;
6615 if (opt_plot ==
"Dee") {
6616 axis_nb_div = (Int_t)size_IY_axis;
6618 if (opt_plot ==
"EE") {
6625 TString jy_var_name =
" ";
6626 TString jy_direction =
"x";
6632 if (opt_plot ==
"EE") {
6637 if (opt_plot ==
"EE") {
6642 if (opt_plot ==
"EE") {
6646 TGaxis* axis_jy_plus = 0;
6647 axis_jy_plus =
new TGaxis((Float_t)0.,
6648 (Float_t)(size_IY_dee * MatSize / 2),
6650 (Float_t)(2 * size_IY_dee * MatSize / 2),
6659 axis_jy_plus->SetTitle(jy_var_name);
6660 axis_jy_plus->SetTitleSize(tit_siz_y);
6661 axis_jy_plus->SetTitleOffset(tit_off_y);
6662 axis_jy_plus->SetLabelSize(lab_siz_y);
6663 axis_jy_plus->SetLabelOffset(lab_off_y);
6664 axis_jy_plus->SetTickSize(tic_siz_y);
6665 axis_jy_plus->Draw(
"SAME");
6667 TGaxis* axis_jy_minus = 0;
6668 axis_jy_minus =
new TGaxis((Float_t)0.,
6669 (Float_t)(size_IY_dee * MatSize / 2),
6680 axis_jy_minus->SetTitle(jy_var_name);
6681 axis_jy_minus->SetTitleSize(tit_siz_y);
6682 axis_jy_minus->SetTitleOffset(tit_off_y);
6683 axis_jy_minus->SetLabelSize(lab_siz_y);
6684 axis_jy_minus->SetLabelOffset(lab_off_y);
6685 axis_jy_minus->SetTickSize(tic_siz_y);
6686 axis_jy_minus->Draw(
"SAME");
6699 const Int_t& arg_AlreadyRead,
6700 const Int_t& n1StexStin,
6701 const Int_t& i0StinEcha) {
6702 XtalSamplesEv(arg_read_histo, arg_AlreadyRead, n1StexStin, i0StinEcha,
"ONLYONE");
6705 const Int_t& arg_AlreadyRead,
6706 const Int_t& n1StexStin,
6707 const Int_t& i0StinEcha,
6708 const TString& PlotOption) {
6711 Int_t StexStin_A = n1StexStin;
6716 Bool_t aOKData = kFALSE;
6738 std::cout <<
"!TEcnaHistos::XtalSamplesEv(...)> Data not available (ROOT file not found)." << std::endl;
6744 if (arg_AlreadyRead >= 1) {
6746 read_histo[
i] = arg_read_histo[
i];
6752 if (aOKData == kTRUE) {
6755 Int_t xAlreadyRead = 1;
6756 for (Int_t i0_stin_echa = 0; i0_stin_echa <
fEcal->
MaxCrysInStin(); i0_stin_echa++) {
6758 std::cout <<
"*TEcnaHistos::XtalSamplesEv(...)> channel " << std::setw(2) << i0_stin_echa <<
": ";
6761 std::cout <<
"*TEcnaHistos::XtalSamplesEv(...)> Xtal " << std::setw(2) << i0_stin_echa + 1 <<
": ";
6765 read_histo_samps(i0_samp) = read_histo(i0_stin_echa *
fFapNbOfSamples + i0_samp);
6766 std::cout << std::setprecision(4) << std::setw(8) << read_histo_samps(i0_samp) <<
", ";
6773 std::cout <<
"!TEcnaHistos::XtalSamplesEv(...)> Data not available." << std::endl;
6778 Int_t StexStin_A = n1StexStin;
6792 const Int_t& arg_AlreadyRead,
6793 const Int_t& n1StexStin,
6794 const Int_t& i0StinEcha) {
6795 EvSamplesXtals(arg_read_histo, arg_AlreadyRead, n1StexStin, i0StinEcha,
"ONLYONE");
6798 const Int_t& arg_AlreadyRead,
6799 const Int_t& n1StexStin,
6800 const Int_t& i0StinEcha,
6801 const TString& PlotOption) {
6804 Int_t StexStin_A = n1StexStin;
6809 Bool_t aOKData = kFALSE;
6831 std::cout <<
"!TEcnaHistos::EvSamplesXtals(...)> Data not available (ROOT file not found)." << std::endl;
6837 if (arg_AlreadyRead >= 1) {
6839 read_histo[
i] = arg_read_histo[
i];
6844 if (aOKData == kTRUE) {
6847 Int_t xAlreadyRead = 1;
6848 for (Int_t i0_stin_echa = 0; i0_stin_echa <
fEcal->
MaxCrysInStin(); i0_stin_echa++) {
6850 std::cout <<
"*TEcnaHistos::EvSamplesXtals(...)> channel " << std::setw(2) << i0_stin_echa <<
": ";
6853 std::cout <<
"*TEcnaHistos::EvSamplesXtals(...)> Xtal " << std::setw(2) << i0_stin_echa + 1 <<
": ";
6857 read_histo_samps(i0_samp) = read_histo(i0_stin_echa *
fFapNbOfSamples + i0_samp);
6858 std::cout << std::setprecision(4) << std::setw(8) << read_histo_samps(i0_samp) <<
", ";
6865 std::cout <<
"!TEcnaHistos::EvSamplesXtals(...)> Data not available." << std::endl;
6870 Int_t StexStin_A = n1StexStin;
6884 const Int_t& arg_AlreadyRead,
6885 const Int_t& n1StexStin,
6886 const Int_t& i0StinEcha) {
6887 XtalSamplesSigma(arg_read_histo, arg_AlreadyRead, n1StexStin, i0StinEcha,
"ONLYONE");
6890 const Int_t& arg_AlreadyRead,
6891 const Int_t& n1StexStin,
6892 const Int_t& i0StinEcha,
6893 const TString& PlotOption) {
6896 Int_t StexStin_A = n1StexStin;
6901 Bool_t aOKData = kFALSE;
6923 std::cout <<
"!TEcnaHistos::XtalSamplesSigma(...)> Data not available (ROOT file not found)." << std::endl;
6929 if (arg_AlreadyRead >= 1) {
6931 read_histo[
i] = arg_read_histo[
i];
6936 if (aOKData == kTRUE) {
6939 Int_t xAlreadyRead = 1;
6940 for (Int_t i0_stin_echa = 0; i0_stin_echa <
fEcal->
MaxCrysInStin(); i0_stin_echa++) {
6942 std::cout <<
"*TEcnaHistos::XtalSamplesSigma(...)> channel " << std::setw(2) << i0_stin_echa <<
": ";
6945 std::cout <<
"*TEcnaHistos::XtalSamplesSigma(...)> Xtal " << std::setw(2) << i0_stin_echa + 1 <<
": ";
6949 read_histo_samps(i0_samp) = read_histo(i0_stin_echa *
fFapNbOfSamples + i0_samp);
6950 std::cout << std::setprecision(3) << std::setw(6) << read_histo_samps(i0_samp) <<
", ";
6957 std::cout <<
"!TEcnaHistos::XtalSamplesSigma(...)> Data not available." << std::endl;
6962 Int_t StexStin_A = n1StexStin;
6976 const Int_t& arg_AlreadyRead,
6977 const Int_t& n1StexStin,
6978 const Int_t& i0StinEcha) {
6979 SigmaSamplesXtals(arg_read_histo, arg_AlreadyRead, n1StexStin, i0StinEcha,
"ONLYONE");
6982 const Int_t& arg_AlreadyRead,
6983 const Int_t& n1StexStin,
6984 const Int_t& i0StinEcha,
6985 const TString& PlotOption) {
6988 Int_t StexStin_A = n1StexStin;
6993 Bool_t aOKData = kFALSE;
7014 std::cout <<
"!TEcnaHistos::SigmaSamplesXtals(...)> Data not available (ROOT file not found)." << std::endl;
7021 if (arg_AlreadyRead >= 1) {
7023 read_histo[
i] = arg_read_histo[
i];
7028 if (aOKData == kTRUE) {
7031 Int_t xAlreadyRead = 1;
7032 for (Int_t i0_stin_echa = 0; i0_stin_echa <
fEcal->
MaxCrysInStin(); i0_stin_echa++) {
7034 std::cout <<
"*TEcnaHistos::SigmaSamplesXtals(...)> channel " << std::setw(2) << i0_stin_echa <<
": ";
7037 std::cout <<
"*TEcnaHistos::SigmaSamplesXtals(...)> Xtal " << std::setw(2) << i0_stin_echa + 1 <<
": ";
7041 read_histo_samps(i0_samp) = read_histo(i0_stin_echa *
fFapNbOfSamples + i0_samp);
7042 std::cout << std::setprecision(3) << std::setw(6) << read_histo_samps(i0_samp) <<
", ";
7049 std::cout <<
"!TEcnaHistos::SigmaSamplesXtals(...)> Data not available." << std::endl;
7054 Int_t StexStin_A = n1StexStin;
7082 const Int_t& arg_AlreadyRead,
7083 const Int_t& StexStin_A,
7084 const Int_t& i0StinEcha,
7085 const Int_t& i0Sample,
7086 const TString& HistoCode,
7087 const TString& opt_plot_arg) {
7090 TString opt_plot = opt_plot_arg;
7103 Int_t xCanvasExists = 1;
7105 TVirtualPad* main_subpad =
nullptr;
7107 main_subpad =
ActivePad(HistoCode.Data(), opt_plot.Data());
7108 if (main_subpad ==
nullptr) {
7109 std::cout <<
"*TEcnaHistos::ViewHisto(...)> WARNING ===> Canvas has been closed in option SAME or SAME n." 7111 <<
" Please, restart with a new canvas." <<
fTTBELL << std::endl;
7120 Int_t SameXVarMemo = 1;
7133 if (XVarHisto != XVariableMemo) {
7134 std::cout <<
"!TEcnaHistos::ViewHisto(...)> *** ERROR *** ===> X coordinate changed in option SAME n." 7136 <<
" Present X = " << XVarHisto << std::endl
7137 <<
" Present Y = " << YVarHisto << std::endl
7138 <<
" Previous X = " << XVariableMemo << std::endl
7139 <<
" Previous Y = " << YVariableMemo <<
fTTBELL << std::endl;
7149 Int_t SameYVarMemo = 1;
7162 if (YVarHisto != YVariableMemo) {
7163 std::cout <<
"!TEcnaHistos::ViewHisto(...)> *** ERROR *** ===> Y coordinate changed in option SAME n." 7165 <<
" Present X = " << XVarHisto << std::endl
7166 <<
" Present Y = " << YVarHisto << std::endl
7167 <<
" Previous X = " << XVariableMemo << std::endl
7168 <<
" Previous Y = " << YVariableMemo <<
fTTBELL << std::endl;
7178 Int_t OkBinsMemoSameOne = 1;
7180 Int_t SizeForPlot =
GetHistoSize(HistoCode.Data(),
"plot");
7185 OkBinsMemoSameOne = 1;
7190 if (xNbBins != NbBinsMemo) {
7191 std::cout <<
"!TEcnaHistos::ViewHisto(...)> *** ERROR *** ===> Number of bins changed in option SAME or SAME n." 7192 <<
" Present number = " << xNbBins <<
", requested number = " << NbBinsMemo <<
fTTBELL << std::endl;
7193 OkBinsMemoSameOne = 0;
7199 if (xCanvasExists == 1 && SameXVarMemo == 1 && SameYVarMemo == 1 && OkBinsMemoSameOne == 1) {
7222 TString fp_name_short =
" ";
7225 Int_t SizeForRead =
GetHistoSize(HistoCode.Data(),
"read");
7228 TVectorD histo_for_plot(SizeForPlot);
7229 for (Int_t
i = 0;
i < SizeForPlot;
i++) {
7230 histo_for_plot[
i] = (Double_t)0;
7233 TVectorD histo_for_plot_memo(SizeForPlot);
7234 for (Int_t
i = 0;
i < SizeForPlot;
i++) {
7235 histo_for_plot_memo[
i] = (Double_t)0;
7238 Int_t i_data_exist = 0;
7244 Bool_t ok_view_histo = kFALSE;
7247 Int_t CounterExistingFile = 0;
7248 Int_t CounterDataExist = 0;
7253 xFapNbOfEvts[
i] = 0;
7259 Bool_t OKFileExists = kFALSE;
7260 Bool_t ok_data_exists = kFALSE;
7264 read_histo(
i) = (Double_t)0.;
7267 if (arg_AlreadyRead == 0) {
7270 Int_t n1StasStex = iStasStex + 1;
7281 OKFileExists = kTRUE;
7283 if (OKFileExists == kTRUE) {
7289 if (iStasStex == 0) {
7313 if (ok_view_histo == kTRUE) {
7315 if (HistoCode ==
"D_NOE_ChNb" || HistoCode ==
"D_NOE_ChDs") {
7318 if (HistoCode ==
"D_Ped_ChNb" || HistoCode ==
"D_Ped_ChDs") {
7321 if (HistoCode ==
"D_TNo_ChNb" || HistoCode ==
"D_TNo_ChDs") {
7324 if (HistoCode ==
"D_MCs_ChNb" || HistoCode ==
"D_MCs_ChDs") {
7327 if (HistoCode ==
"D_LFN_ChNb" || HistoCode ==
"D_LFN_ChDs") {
7330 if (HistoCode ==
"D_HFN_ChNb" || HistoCode ==
"D_HFN_ChDs") {
7333 if (HistoCode ==
"D_SCs_ChNb" || HistoCode ==
"D_SCs_ChDs") {
7337 ok_data_exists = kTRUE;
7343 if (arg_AlreadyRead >= 1) {
7344 ok_data_exists = kTRUE;
7350 if (ok_data_exists == kTRUE) {
7352 CounterExistingFile++;
7355 if (ok_data_exists == kTRUE) {
7366 if (i_xgeo >= 0 && i_xgeo < SizeForPlot) {
7367 histo_for_plot[i_xgeo] = read_histo[i0StexStinEcna];
7369 std::cout <<
"!TEcnaHistos::ViewHisto(...)> <EB> i_xgeo = " << i_xgeo
7370 <<
". OUT OF RANGE ( range = [0," << SizeForPlot <<
"] " << std::endl;
7376 Int_t DeeOffset = 0;
7379 Int_t DeeNumber = iStasStex + 1;
7380 Int_t n1DeeSCEcna = i0StexStinEcna + 1;
7383 if (DeeNumber == 3) {
7386 if (DeeNumber == 2) {
7389 if (DeeNumber == 1) {
7403 if (StexDataSector >= 1 && StexDataSector <= 9) {
7406 for (Int_t is = 2; is <= 5; is++) {
7407 if (StexDataSector >= is) {
7416 if (StexDataSector >= 6) {
7419 for (Int_t is = 7; is <= 9; is++) {
7420 if (StexDataSector >= is) {
7429 if (StexDataSector >= 6) {
7432 for (Int_t is = 7; is <= 9; is++) {
7433 if (StexDataSector >= is) {
7442 for (Int_t is = 2; is <= 5; is++) {
7443 if (StexDataSector >= is) {
7450 if (StexDSStin >= 1 && StexDSStin <= fEcalNumbering->GetMaxSCInDS(StexDataSector)) {
7453 if (StexDataSector != 5) {
7454 i_xgeo = DeeOffset + DSOffset + (StexDSStin - 1);
7456 if (StexDataSector == 5) {
7457 i_xgeo = DeeOffset + DSOffset + (StexDSStin - 1);
7462 if (StexDataSector != 5) {
7463 i_xgeo = DeeOffset + DSOffset + (StexDSStin - 1);
7465 if (StexDataSector == 5) {
7466 i_xgeo = DeeOffset + DSOffset + (StexDSStin - 17) - 1;
7471 if (StexDataSector != 5) {
7474 if (StexDataSector == 5) {
7480 if (StexDataSector != 5) {
7483 if (StexDataSector == 5) {
7491 std::cout <<
"!TEcnaHistos::ViewHisto(...)> <EE> StexDSStin = " << StexDSStin
7493 <<
"]. DeeNumber = " << DeeNumber <<
", n1DeeSCEcna = " << n1DeeSCEcna
7494 <<
", StexDataSector = " << StexDataSector <<
", i_xgeo = " << i_xgeo << std::endl;
7504 if (i_xgeo >= -1 && i_xgeo < SizeForPlot) {
7506 if (n1DeeSCEcna == 29 || n1DeeSCEcna == 32 ||
7508 n1DeeSCEcna == 144 || n1DeeSCEcna == 165 ||
7509 n1DeeSCEcna == 176 || n1DeeSCEcna == 193 ||
7510 n1DeeSCEcna == 60 || n1DeeSCEcna == 119 ||
7511 n1DeeSCEcna == 102 || n1DeeSCEcna == 123 ||
7512 n1DeeSCEcna == 138 || n1DeeSCEcna == 157)
7515 if (n1DeeSCEcna == 29 && i_xgeo >= 0) {
7516 histo_for_plot[i_xgeo] += read_histo[i0StexStinEcna] / (Double_t)5.;
7518 if ((n1DeeSCEcna == 144 || n1DeeSCEcna == 165) && i_xgeo >= 0) {
7519 histo_for_plot[i_xgeo] += read_histo[i0StexStinEcna] * (Double_t)10. / (Double_t)25.;
7523 if (n1DeeSCEcna == 32 && i_xgeo >= 0) {
7524 histo_for_plot[i_xgeo] += read_histo[i0StexStinEcna] / (Double_t)5.;
7526 if ((n1DeeSCEcna == 176 || n1DeeSCEcna == 193) && i_xgeo >= 0) {
7527 histo_for_plot[i_xgeo] += read_histo[i0StexStinEcna] * (Double_t)10. / (Double_t)25.;
7531 if ((n1DeeSCEcna == 60 || n1DeeSCEcna == 119) && i_xgeo >= 0) {
7532 histo_for_plot[i_xgeo] += read_histo[i0StexStinEcna] / (Double_t)2.;
7536 if (n1DeeSCEcna == 102) {
7537 histo_for_plot[i_xgeo] +=
7538 read_histo[9] / (Double_t)21. + read_histo[i0StexStinEcna] * (Double_t)10. / (Double_t)21.;
7540 if (n1DeeSCEcna == 123 && i_xgeo >= 0) {
7541 histo_for_plot[i_xgeo] += read_histo[i0StexStinEcna] * (Double_t)10. / (Double_t)21.;
7545 if (n1DeeSCEcna == 138) {
7546 histo_for_plot[i_xgeo] +=
7547 read_histo[10] / (Double_t)21. + read_histo[i0StexStinEcna] * (Double_t)10. / (Double_t)21.;
7549 if (n1DeeSCEcna == 157 && i_xgeo >= 0) {
7550 histo_for_plot[i_xgeo] += read_histo[i0StexStinEcna] * (Double_t)10. / (Double_t)21.;
7554 histo_for_plot[i_xgeo] += read_histo[i0StexStinEcna];
7565 std::cout <<
"!TEcnaHistos::ViewHisto(...)> " 7566 <<
" Data not available for " <<
fFapStexName <<
" " << iStasStex + 1
7567 <<
" (Quantity not present in the ROOT file)" << std::endl;
7573 std::cout <<
"!TEcnaHistos::ViewHisto(...)> " 7574 <<
" Data not available for " <<
fFapStexName <<
" " << iStasStex + 1 <<
" (ROOT file not found)" 7585 delete[] xFapNbOfEvts;
7586 xFapNbOfEvts =
nullptr;
7589 if (CounterExistingFile > 0 && CounterDataExist > 0) {
7598 Bool_t OKFileExists = kFALSE;
7599 Bool_t ok_view_histo = kFALSE;
7601 if (arg_AlreadyRead == 0) {
7613 OKFileExists = kTRUE;
7616 if (OKFileExists == kTRUE) {
7630 if (arg_AlreadyRead >= 1) {
7631 OKFileExists = kTRUE;
7632 ok_view_histo = kTRUE;
7635 if (OKFileExists == kTRUE) {
7639 if (ok_view_histo == kTRUE) {
7653 if (i_data_exist > 0) {
7656 if (OKPlot == 1 && opt_plot ==
"ASCII" && (
HistoType ==
"Global" ||
HistoType ==
"Proj")) {
7663 TVectorD read_histo(SizeForRead);
7664 for (Int_t
i = 0;
i < SizeForRead;
i++) {
7665 read_histo(
i) = (Double_t)0.;
7678 if (i_data_exist > 0) {
7681 if (OKPlot == 1 && opt_plot ==
"ASCII") {
7684 if (OKPlot == 1 && opt_plot !=
"ASCII") {
7699 if (n1SCEcha >= 1 && n1SCEcha <= fEcal->MaxCrysInSC()) {
7700 if (n1DeeSCEcna >= 1 && n1DeeSCEcna <= fEcal->MaxSCEcnaInDee()) {
7701 if (DataSector >= 1 && DataSector <= 9) {
7702 if (SC_in_DS >= 1 && SC_in_DS <= fEcalNumbering->GetMaxSCInDS(DataSector)) {
7703 if (read_histo[i0DeeEcha] != 0) {
7705 Int_t DSOffset =
GetDSOffset(DeeNumber, DataSector);
7708 Int_t SCOffset =
GetSCOffset(DeeNumber, DataSector, SC_in_DS);
7714 Int_t n1FinalSCEcha = n1SCEcha;
7720 if (!((SC_in_DS == 14 || SC_in_DS == 25) && n1SCEcha == 11)) {
7722 DeeNumber, nSCCons, SC_in_DS, n1DeeSCEcna, n1SCEcha);
7723 i_xgeo = DSOffset + SCOffset + (n1FinalSCEcha - 1);
7726 if (SC_in_DS == 14 && n1SCEcha == 11) {
7727 SCOffset =
GetSCOffset(DeeNumber, DataSector, 21);
7729 i_xgeo = DSOffset + SCOffset + (n1FinalSCEcha - 1);
7732 if (SC_in_DS == 25 && n1SCEcha == 11) {
7735 i_xgeo = DSOffset + SCOffset + (n1FinalSCEcha - 1);
7738 i_xgeo = DSOffset + SCOffset + (n1FinalSCEcha - 1);
7741 histo_for_plot_memo[i_xgeo]++;
7742 if (histo_for_plot_memo[i_xgeo] >= 2) {
7743 std::cout <<
"! histo_memo[" << i_xgeo <<
"] = " << histo_for_plot_memo[i_xgeo]
7744 <<
", nSCCons = " << nSCCons <<
", SC_in_DS = " << SC_in_DS
7745 <<
", DSOffset = " << DSOffset <<
", SCOffset = " << SCOffset
7746 <<
", n1DeeSCEcna = " << n1DeeSCEcna <<
", n1SCEcha = " << n1SCEcha
7747 <<
", n1FinalSCEcha = " << n1FinalSCEcha << std::endl;
7750 if (i_xgeo >= 0 && i_xgeo < SizeForPlot) {
7751 if (n1FinalSCEcha > 0) {
7752 histo_for_plot[i_xgeo] += read_histo[i0DeeEcha];
7755 std::cout <<
"!TEcnaHistos::ViewHisto(...)> <EE> i_xgeo = " << i_xgeo
7756 <<
". OUT OF RANGE ( range = [0," << SizeForPlot <<
"] " << std::endl;
7761 std::cout <<
"!TEcnaHistos::ViewHisto(...)> <EE> SC_in_DS = " << SC_in_DS
7764 <<
", DataSector = " << DataSector <<
", n1DeeSCEcna = " << n1DeeSCEcna
7765 <<
", n1SCEcha = " << n1SCEcha <<
", i0DeeEcha = " << i0DeeEcha << std::endl;
7769 if (DataSector != 0) {
7770 std::cout <<
"!TEcnaHistos::ViewHisto(...)> <EE> DataSector = " << DataSector
7771 <<
". OUT OF RANGE ( range = [1,9] " 7772 <<
", n1DeeSCEcna = " << n1DeeSCEcna <<
", n1SCEcha = " << n1SCEcha
7773 <<
", i0DeeEcha = " << i0DeeEcha << std::endl;
7778 std::cout <<
"!TEcnaHistos::ViewHisto(...)> <EE> n1DeeSCEcna = " << n1DeeSCEcna
7780 <<
", n1SCEcha = " << n1SCEcha <<
", i0DeeEcha = " << i0DeeEcha << std::endl;
7784 std::cout <<
"!TEcnaHistos::ViewHisto(...)> <EE> n1SCEcha = " << n1SCEcha
7786 <<
", i0DeeEcha = " << i0DeeEcha << std::endl;
7793 std::cout <<
"!TEcnaHistos::ViewHisto(...)> *ERROR* =====> " 7794 <<
" ok_view_histo != kTRUE " <<
fTTBELL << std::endl;
7800 std::cout <<
"!TEcnaHistos::ViewHisto(...)> *ERROR* =====> " 7801 <<
" ROOT file not found" <<
fTTBELL << std::endl;
7807 if ((
fFapStexNumber > 0) && (fFapStexNumber <= fEcal->MaxStexInStas())) {
7808 Bool_t OKFileExists = kFALSE;
7810 if (!(arg_AlreadyRead > 1)) {
7821 if (OKFileExists == kTRUE) {
7825 OKFileExists = kTRUE;
7828 if (OKFileExists == kTRUE)
7832 for (Int_t
i = 0;
i < SizeForPlot;
i++) {
7833 histo_for_plot[
i] = (Double_t)0;
7852 if (i_data_exist > 0) {
7856 std::cout <<
"!TEcnaHistos::ViewHisto(...)> *ERROR* =====> " 7857 <<
" ROOT file not found" <<
fTTBELL << std::endl;
7871 ((
fFapStexNumber > 0) && (fFapStexNumber <= fEcal->MaxStexInStas())))) {
7872 if (opt_plot !=
"ASCII") {
7876 if ((opt_plot ==
fOnlyOnePlot && (arg_AlreadyRead == 0 || arg_AlreadyRead == 1)) ||
7896 TString HistoCodi = HistoCode;
7898 if (HistoCode ==
"D_NOE_ChDs") {
7899 HistoCodi =
"D_NOE_ChNb";
7901 if (HistoCode ==
"D_Ped_ChDs") {
7902 HistoCodi =
"D_Ped_ChNb";
7904 if (HistoCode ==
"D_TNo_ChDs") {
7905 HistoCodi =
"D_TNo_ChNb";
7907 if (HistoCode ==
"D_MCs_ChDs") {
7908 HistoCodi =
"D_MCs_ChNb";
7910 if (HistoCode ==
"D_LFN_ChDs") {
7911 HistoCodi =
"D_LFN_ChNb";
7913 if (HistoCode ==
"D_HFN_ChDs") {
7914 HistoCodi =
"D_HFN_ChNb";
7916 if (HistoCode ==
"D_SCs_ChDs") {
7917 HistoCodi =
"D_SCs_ChNb";
7919 if (HistoCode ==
"D_MSp_SpDs") {
7920 HistoCodi =
"D_MSp_SpNb";
7922 if (HistoCode ==
"D_SSp_SpDs") {
7923 HistoCodi =
"D_SSp_SpNb";
7925 if (HistoCode ==
"D_Adc_EvDs") {
7926 HistoCodi =
"D_Adc_EvNb";
7929 TString TitleHisto =
";";
7946 if ((opt_plot ==
fOnlyOnePlot && (arg_AlreadyRead == 0 || arg_AlreadyRead == 1)) ||
7949 Double_t XinfProj = (Double_t)0;
7950 Double_t XsupProj = (Double_t)0;
7954 Int_t HisSiza =
GetHistoSize(HistoCodi.Data(),
"plot");
7955 Int_t ReadHisSiza = HisSiza;
7957 Axis_t xinf_hisa =
GetHistoXinf(HistoCodi.Data(), HisSiza, opt_plot);
7958 Axis_t xsup_hisa =
GetHistoXsup(HistoCodi.Data(), HisSiza, opt_plot);
7961 TH1D* h_hisa =
new TH1D(
"histoa", TitleHisto.Data(), nb_binxa, xinf_hisa, xsup_hisa);
7965 FillHisto(h_hisa, histo_for_plot, HistoCodi.Data(), ReadHisSiza);
7971 XinfProj = h_hisa->GetMinimum();
7974 XsupProj = h_hisa->GetMaximum();
8017 Double_t cXinf = (Double_t)0.;
8018 Double_t cXsup = (Double_t)0.;
8030 cXinf =
GetHistoXinf(HistoCode.Data(), SizeForPlot, opt_plot);
8031 cXsup =
GetHistoXsup(HistoCode.Data(), SizeForPlot, opt_plot);
8035 Axis_t xinf_his = cXinf;
8036 Axis_t xsup_his = cXsup;
8037 Int_t nb_binx = xNbBins;
8039 TString TitleHisto =
";";
8043 TH1D* h_his0 =
new TH1D(
"histo", TitleHisto.Data(), nb_binx, xinf_his, xsup_his);
8047 FillHisto(h_his0, histo_for_plot, HistoCode.Data(), SizeForPlot);
8074 if (
ymin != (Double_t)0.) {
8126 xFlagAutoYsupMargin);
8139 std::cout <<
"!TEcnaHistos::ViewHisto(...)> Histo not available." <<
fTTBELL << std::endl;
8153 if (DeeNumber == 4) {
8154 if (DataSector >= 1) {
8156 if (DataSector >= 2) {
8159 if (DataSector >= 3) {
8162 if (DataSector >= 4) {
8165 if (DataSector >= 5) {
8169 if (DeeNumber == 3) {
8170 if (DataSector >= 5) {
8172 if (DataSector >= 6) {
8175 if (DataSector >= 7) {
8178 if (DataSector >= 8) {
8181 if (DataSector >= 9) {
8185 if (DeeNumber == 2) {
8186 if (DataSector <= 9) {
8188 if (DataSector <= 8) {
8191 if (DataSector <= 7) {
8194 if (DataSector <= 6) {
8197 if (DataSector <= 5) {
8201 if (DeeNumber == 1) {
8202 if (DataSector <= 5) {
8204 if (DataSector <= 4) {
8207 if (DataSector <= 3) {
8210 if (DataSector <= 2) {
8213 if (DataSector <= 1) {
8225 if (DeeNumber == 1 || DeeNumber == 3) {
8226 if (DataSector == 5) {
8229 if (DataSector != 5) {
8234 if (DeeNumber == 2 || DeeNumber == 4) {
8242 const Int_t& nSCCons,
8243 const Int_t& SC_in_DS,
8244 const Int_t& n1DeeSCEcna,
8245 const Int_t& n1SCEcha) {
8248 Int_t ModifiedSCEcha = -1;
8252 TString TypQuad =
"?";
8253 if (SCQuad ==
"top" && DeeDir ==
"right") {
8256 if (SCQuad ==
"top" && DeeDir ==
"left") {
8259 if (SCQuad ==
"bottom" && DeeDir ==
"left") {
8262 if (SCQuad ==
"bottom" && DeeDir ==
"right") {
8270 if ((SC_in_DS == 30 && n1DeeSCEcna == 60 && TypQuad ==
"TR") ||
8271 (SC_in_DS == 3 && n1DeeSCEcna == 138 && TypQuad ==
"TR")) {
8272 if (n1SCEcha > 15) {
8273 ModifiedSCEcha = n1SCEcha - 15;
8279 if ((SC_in_DS == 30 && n1DeeSCEcna == 60 && TypQuad ==
"TL") ||
8280 (SC_in_DS == 3 && n1DeeSCEcna == 138 && TypQuad ==
"TL")) {
8281 if (n1SCEcha == 4) {
8284 if (n1SCEcha == 5) {
8287 if (n1SCEcha == 9) {
8290 if (n1SCEcha == 10) {
8293 if (n1SCEcha == 14) {
8296 if (n1SCEcha == 15) {
8299 if (n1SCEcha == 19) {
8302 if (n1SCEcha == 20) {
8305 if (n1SCEcha == 24) {
8308 if (n1SCEcha == 25) {
8309 ModifiedSCEcha = 10;
8314 if (SC_in_DS == 30 && n1DeeSCEcna == 119 && TypQuad ==
"TR") {
8316 ModifiedSCEcha = n1SCEcha - 5;
8321 if (SC_in_DS == 30 && n1DeeSCEcna == 119 && TypQuad ==
"TL") {
8322 if (n1SCEcha == 4) {
8323 ModifiedSCEcha = 11;
8325 if (n1SCEcha == 5) {
8326 ModifiedSCEcha = 12;
8328 if (n1SCEcha == 9) {
8329 ModifiedSCEcha = 13;
8331 if (n1SCEcha == 10) {
8332 ModifiedSCEcha = 14;
8334 if (n1SCEcha == 14) {
8335 ModifiedSCEcha = 15;
8337 if (n1SCEcha == 15) {
8338 ModifiedSCEcha = 16;
8340 if (n1SCEcha == 19) {
8341 ModifiedSCEcha = 17;
8343 if (n1SCEcha == 20) {
8344 ModifiedSCEcha = 18;
8346 if (n1SCEcha == 24) {
8347 ModifiedSCEcha = 19;
8349 if (n1SCEcha == 25) {
8350 ModifiedSCEcha = 20;
8356 if (SC_in_DS == 12 && n1DeeSCEcna == 13 && TypQuad ==
"TR") {
8357 ModifiedSCEcha = n1SCEcha;
8359 if (SC_in_DS == 12 && n1DeeSCEcna == 13 && TypQuad ==
"TL") {
8360 if (n1SCEcha >= 1 && n1SCEcha <= 4) {
8361 ModifiedSCEcha = n1SCEcha;
8363 if (n1SCEcha >= 6 && n1SCEcha <= 9) {
8364 ModifiedSCEcha = n1SCEcha - 1;
8366 if (n1SCEcha >= 11 && n1SCEcha <= 14) {
8367 ModifiedSCEcha = n1SCEcha - 2;
8369 if (n1SCEcha >= 16 && n1SCEcha <= 19) {
8370 ModifiedSCEcha = n1SCEcha - 3;
8372 if (n1SCEcha >= 21 && n1SCEcha <= 24) {
8373 ModifiedSCEcha = n1SCEcha - 4;
8378 if (SC_in_DS == 25 && n1DeeSCEcna == 176 && TypQuad ==
"TR") {
8379 if (n1SCEcha == 4) {
8382 if (n1SCEcha == 5) {
8385 if (n1SCEcha == 9) {
8388 if (n1SCEcha == 10) {
8391 if (n1SCEcha == 14) {
8394 if (n1SCEcha == 15) {
8397 if (n1SCEcha == 19) {
8400 if (n1SCEcha == 20) {
8403 if (n1SCEcha == 24) {
8406 if (n1SCEcha == 25) {
8407 ModifiedSCEcha = 10;
8412 if (SC_in_DS == 25 && n1DeeSCEcna == 176 && TypQuad ==
"TL") {
8413 if (n1SCEcha == 16) {
8416 if (n1SCEcha == 21) {
8419 if (n1SCEcha == 17) {
8422 if (n1SCEcha == 22) {
8425 if (n1SCEcha == 18) {
8428 if (n1SCEcha == 23) {
8431 if (n1SCEcha == 19) {
8434 if (n1SCEcha == 24) {
8437 if (n1SCEcha == 20) {
8440 if (n1SCEcha == 25) {
8441 ModifiedSCEcha = 10;
8447 if ((SC_in_DS == 3 && n1DeeSCEcna == 157 && TypQuad ==
"TR") ||
8448 (SC_in_DS == 25 && n1DeeSCEcna == 193 && TypQuad ==
"TR")) {
8449 if (n1SCEcha == 4) {
8450 ModifiedSCEcha = 11;
8452 if (n1SCEcha == 5) {
8453 ModifiedSCEcha = 12;
8455 if (n1SCEcha == 9) {
8456 ModifiedSCEcha = 13;
8458 if (n1SCEcha == 10) {
8459 ModifiedSCEcha = 14;
8461 if (n1SCEcha == 14) {
8462 ModifiedSCEcha = 15;
8464 if (n1SCEcha == 15) {
8465 ModifiedSCEcha = 16;
8467 if (n1SCEcha == 19) {
8468 ModifiedSCEcha = 17;
8470 if (n1SCEcha == 20) {
8471 ModifiedSCEcha = 18;
8473 if (n1SCEcha == 24) {
8474 ModifiedSCEcha = 19;
8476 if (n1SCEcha == 25) {
8477 ModifiedSCEcha = 20;
8483 if ((SC_in_DS == 3 && n1DeeSCEcna == 157 && TypQuad ==
"TL") ||
8484 (SC_in_DS == 25 && n1DeeSCEcna == 193 && TypQuad ==
"TL")) {
8485 if (n1SCEcha == 16) {
8486 ModifiedSCEcha = 11;
8488 if (n1SCEcha == 21) {
8489 ModifiedSCEcha = 12;
8491 if (n1SCEcha == 17) {
8492 ModifiedSCEcha = 13;
8494 if (n1SCEcha == 22) {
8495 ModifiedSCEcha = 14;
8497 if (n1SCEcha == 18) {
8498 ModifiedSCEcha = 15;
8500 if (n1SCEcha == 23) {
8501 ModifiedSCEcha = 16;
8503 if (n1SCEcha == 19) {
8504 ModifiedSCEcha = 17;
8506 if (n1SCEcha == 24) {
8507 ModifiedSCEcha = 18;
8509 if (n1SCEcha == 20) {
8510 ModifiedSCEcha = 19;
8512 if (n1SCEcha == 25) {
8513 ModifiedSCEcha = 20;
8518 if (SC_in_DS == 32 && n1DeeSCEcna == 51 && TypQuad ==
"TR") {
8519 if (n1SCEcha >= 1 && n1SCEcha <= 4) {
8520 ModifiedSCEcha = n1SCEcha;
8522 if (n1SCEcha >= 6 && n1SCEcha <= 9) {
8523 ModifiedSCEcha = n1SCEcha - 1;
8525 if (n1SCEcha >= 11 && n1SCEcha <= 14) {
8526 ModifiedSCEcha = n1SCEcha - 2;
8528 if (n1SCEcha >= 16 && n1SCEcha <= 19) {
8529 ModifiedSCEcha = n1SCEcha - 3;
8531 if (n1SCEcha >= 21 && n1SCEcha <= 24) {
8532 ModifiedSCEcha = n1SCEcha - 4;
8537 if (SC_in_DS == 32 && n1DeeSCEcna == 51 && TypQuad ==
"TL") {
8538 ModifiedSCEcha = n1SCEcha;
8549 if (n1DeeSCEcna == 32 && TypQuad ==
"TR") {
8550 if (nSCCons == 207) {
8551 if (n1SCEcha == 1) {
8552 ModifiedSCEcha = 21;
8554 if (n1SCEcha == 2) {
8555 ModifiedSCEcha = 22;
8557 if (n1SCEcha == 3) {
8558 ModifiedSCEcha = 23;
8560 if (n1SCEcha == 6) {
8561 ModifiedSCEcha = 24;
8563 if (n1SCEcha == 7) {
8564 ModifiedSCEcha = 25;
8567 if (nSCCons == 178) {
8568 if (n1SCEcha == 11) {
8569 ModifiedSCEcha = 21;
8581 if (n1DeeSCEcna == 32 && TypQuad ==
"TL") {
8582 if (nSCCons == 58) {
8583 if (n1SCEcha == 1) {
8584 ModifiedSCEcha = 21;
8586 if (n1SCEcha == 2) {
8587 ModifiedSCEcha = 22;
8589 if (n1SCEcha == 3) {
8590 ModifiedSCEcha = 23;
8592 if (n1SCEcha == 6) {
8593 ModifiedSCEcha = 24;
8595 if (n1SCEcha == 7) {
8596 ModifiedSCEcha = 25;
8599 if (nSCCons == 29) {
8600 if (n1SCEcha == 11) {
8601 ModifiedSCEcha = 21;
8617 if (n1DeeSCEcna == 29 && TypQuad ==
"BR") {
8618 if (nSCCons == 261) {
8619 if (n1SCEcha == 1) {
8620 ModifiedSCEcha = 21;
8622 if (n1SCEcha == 2) {
8623 ModifiedSCEcha = 22;
8625 if (n1SCEcha == 3) {
8626 ModifiedSCEcha = 23;
8628 if (n1SCEcha == 6) {
8629 ModifiedSCEcha = 24;
8631 if (n1SCEcha == 7) {
8632 ModifiedSCEcha = 25;
8635 if (nSCCons == 268) {
8636 if (n1SCEcha == 11) {
8637 ModifiedSCEcha = 21;
8649 if (n1DeeSCEcna == 29 && TypQuad ==
"BL") {
8650 if (nSCCons == 119) {
8651 if (n1SCEcha == 11) {
8652 ModifiedSCEcha = 21;
8655 if (nSCCons == 112) {
8656 if (n1SCEcha == 1) {
8657 ModifiedSCEcha = 21;
8659 if (n1SCEcha == 2) {
8660 ModifiedSCEcha = 22;
8662 if (n1SCEcha == 3) {
8663 ModifiedSCEcha = 23;
8665 if (n1SCEcha == 6) {
8666 ModifiedSCEcha = 24;
8668 if (n1SCEcha == 7) {
8669 ModifiedSCEcha = 25;
8678 if ((SC_in_DS == 34 && n1DeeSCEcna == 188 && TypQuad ==
"BR") ||
8679 (SC_in_DS == 14 && n1DeeSCEcna == 165 && TypQuad ==
"BR")) {
8680 if (n1SCEcha > 15) {
8681 ModifiedSCEcha = n1SCEcha - 15;
8687 if ((SC_in_DS == 34 && n1DeeSCEcna == 188 && TypQuad ==
"BL") ||
8688 (SC_in_DS == 14 && n1DeeSCEcna == 165 && TypQuad ==
"BL")) {
8689 if (n1SCEcha == 4) {
8692 if (n1SCEcha == 5) {
8695 if (n1SCEcha == 9) {
8698 if (n1SCEcha == 10) {
8701 if (n1SCEcha == 14) {
8704 if (n1SCEcha == 15) {
8707 if (n1SCEcha == 19) {
8710 if (n1SCEcha == 20) {
8713 if (n1SCEcha == 24) {
8716 if (n1SCEcha == 25) {
8717 ModifiedSCEcha = 10;
8722 if (SC_in_DS == 10 && n1DeeSCEcna == 50 && TypQuad ==
"BR") {
8723 ModifiedSCEcha = n1SCEcha;
8727 if (SC_in_DS == 10 && n1DeeSCEcna == 50 && TypQuad ==
"BL") {
8728 if (n1SCEcha >= 1 && n1SCEcha <= 4) {
8729 ModifiedSCEcha = n1SCEcha;
8731 if (n1SCEcha >= 6 && n1SCEcha <= 9) {
8732 ModifiedSCEcha = n1SCEcha - 1;
8734 if (n1SCEcha >= 11 && n1SCEcha <= 14) {
8735 ModifiedSCEcha = n1SCEcha - 2;
8737 if (n1SCEcha >= 16 && n1SCEcha <= 19) {
8738 ModifiedSCEcha = n1SCEcha - 3;
8740 if (n1SCEcha >= 21 && n1SCEcha <= 24) {
8741 ModifiedSCEcha = n1SCEcha - 4;
8746 if (SC_in_DS == 14 && n1DeeSCEcna == 144 && TypQuad ==
"BR") {
8748 ModifiedSCEcha = n1SCEcha - 5;
8753 if (SC_in_DS == 14 && n1DeeSCEcna == 144 && TypQuad ==
"BL") {
8754 if (n1SCEcha == 4) {
8755 ModifiedSCEcha = 11;
8757 if (n1SCEcha == 5) {
8758 ModifiedSCEcha = 12;
8760 if (n1SCEcha == 9) {
8761 ModifiedSCEcha = 13;
8763 if (n1SCEcha == 10) {
8764 ModifiedSCEcha = 14;
8766 if (n1SCEcha == 14) {
8767 ModifiedSCEcha = 15;
8769 if (n1SCEcha == 15) {
8770 ModifiedSCEcha = 16;
8772 if (n1SCEcha == 19) {
8773 ModifiedSCEcha = 17;
8775 if (n1SCEcha == 20) {
8776 ModifiedSCEcha = 18;
8778 if (n1SCEcha == 24) {
8779 ModifiedSCEcha = 19;
8781 if (n1SCEcha == 25) {
8782 ModifiedSCEcha = 20;
8788 if ((SC_in_DS == 21 && n1DeeSCEcna == 123 && TypQuad ==
"BR") ||
8789 (SC_in_DS == 20 && n1DeeSCEcna == 41 && TypQuad ==
"BR")) {
8790 if (n1SCEcha == 4) {
8793 if (n1SCEcha == 5) {
8796 if (n1SCEcha == 9) {
8799 if (n1SCEcha == 10) {
8802 if (n1SCEcha == 14) {
8805 if (n1SCEcha == 15) {
8808 if (n1SCEcha == 19) {
8811 if (n1SCEcha == 20) {
8814 if (n1SCEcha == 24) {
8817 if (n1SCEcha == 25) {
8818 ModifiedSCEcha = 10;
8824 if ((SC_in_DS == 21 && n1DeeSCEcna == 123 && TypQuad ==
"BL") ||
8825 (SC_in_DS == 3 && n1DeeSCEcna == 41 && TypQuad ==
"BL")) {
8826 if (n1SCEcha > 15) {
8827 ModifiedSCEcha = n1SCEcha - 15;
8832 if (SC_in_DS == 21 && n1DeeSCEcna == 102 && TypQuad ==
"BR") {
8833 if (n1SCEcha == 4) {
8834 ModifiedSCEcha = 11;
8836 if (n1SCEcha == 5) {
8837 ModifiedSCEcha = 12;
8839 if (n1SCEcha == 9) {
8840 ModifiedSCEcha = 13;
8842 if (n1SCEcha == 10) {
8843 ModifiedSCEcha = 14;
8845 if (n1SCEcha == 14) {
8846 ModifiedSCEcha = 15;
8848 if (n1SCEcha == 15) {
8849 ModifiedSCEcha = 16;
8851 if (n1SCEcha == 19) {
8852 ModifiedSCEcha = 17;
8854 if (n1SCEcha == 20) {
8855 ModifiedSCEcha = 18;
8857 if (n1SCEcha == 24) {
8858 ModifiedSCEcha = 19;
8860 if (n1SCEcha == 25) {
8861 ModifiedSCEcha = 20;
8866 if (SC_in_DS == 21 && n1DeeSCEcna == 102 && TypQuad ==
"BL") {
8867 if (n1SCEcha == 16) {
8868 ModifiedSCEcha = 11;
8870 if (n1SCEcha == 21) {
8871 ModifiedSCEcha = 12;
8873 if (n1SCEcha == 17) {
8874 ModifiedSCEcha = 13;
8876 if (n1SCEcha == 22) {
8877 ModifiedSCEcha = 14;
8879 if (n1SCEcha == 18) {
8880 ModifiedSCEcha = 15;
8882 if (n1SCEcha == 23) {
8883 ModifiedSCEcha = 16;
8885 if (n1SCEcha == 19) {
8886 ModifiedSCEcha = 17;
8888 if (n1SCEcha == 24) {
8889 ModifiedSCEcha = 18;
8891 if (n1SCEcha == 20) {
8892 ModifiedSCEcha = 19;
8894 if (n1SCEcha == 25) {
8895 ModifiedSCEcha = 20;
8900 if (SC_in_DS == 23 && n1DeeSCEcna == 8 && TypQuad ==
"BR") {
8901 if (n1SCEcha >= 1 && n1SCEcha <= 4) {
8902 ModifiedSCEcha = n1SCEcha;
8904 if (n1SCEcha >= 6 && n1SCEcha <= 9) {
8905 ModifiedSCEcha = n1SCEcha - 1;
8907 if (n1SCEcha >= 11 && n1SCEcha <= 14) {
8908 ModifiedSCEcha = n1SCEcha - 2;
8910 if (n1SCEcha >= 16 && n1SCEcha <= 19) {
8911 ModifiedSCEcha = n1SCEcha - 3;
8913 if (n1SCEcha >= 21 && n1SCEcha <= 24) {
8914 ModifiedSCEcha = n1SCEcha - 4;
8919 if (SC_in_DS == 6 && n1DeeSCEcna == 8 && TypQuad ==
"BL") {
8920 ModifiedSCEcha = n1SCEcha;
8925 std::cout <<
"! *** ERROR *** > ModifiedSCEcha = " << ModifiedSCEcha <<
", SC_in_DS = " << SC_in_DS
8926 <<
", nSCCons = " << nSCCons <<
", n1DeeSCEcna = " << n1DeeSCEcna <<
", n1SCEcha = " << n1SCEcha
8927 <<
", ModifiedSCEcha = " << ModifiedSCEcha <<
", TypQuad = " << TypQuad <<
fTTBELL << std::endl;
8930 return ModifiedSCEcha;
8946 const Int_t& StexStin_A,
8947 const Int_t& i0StinEcha,
8948 const TString& HistoCode,
8949 const TString& opt_plot_arg) {
8952 TString opt_plot = opt_plot_arg;
8955 if (opt_plot_arg ==
"ONLYONE") {
8958 if (opt_plot_arg ==
"SEVERAL") {
8961 if (opt_plot_arg ==
"SAMEONE") {
8968 Int_t xCanvasExists = 1;
8970 TVirtualPad* main_subpad =
nullptr;
8972 main_subpad =
ActivePad(HistoCode.Data(), opt_plot.Data());
8973 if (main_subpad ==
nullptr) {
8974 std::cout <<
"*TEcnaHistos::ViewHistime(...)> WARNING ===> Canvas has been closed in option SAME or SAME n." 8976 <<
" Please, restart with a new canvas." <<
fTTBELL << std::endl;
8985 Int_t SameXVarMemo = 1;
8999 if (XVarHisto != XVariableMemo) {
9000 std::cout <<
"!TEcnaHistos::ViewHistime(...)> *** ERROR *** ===> X coordinate changed in option SAME n." 9002 <<
" Present X = " << XVarHisto << std::endl
9003 <<
" Present Y = " << YVarHisto << std::endl
9004 <<
" Previous X = " << XVariableMemo << std::endl
9005 <<
" Previous Y = " << YVariableMemo <<
fTTBELL << std::endl;
9015 Int_t SameYVarMemo = 1;
9029 if (YVarHisto != YVariableMemo) {
9030 std::cout <<
"!TEcnaHistos::ViewHistime(...)> *** ERROR *** ===> Y coordinate changed in option SAME n." 9032 <<
" Present X = " << XVarHisto << std::endl
9033 <<
" Present Y = " << YVarHisto << std::endl
9034 <<
" Previous X = " << XVariableMemo << std::endl
9035 <<
" Previous Y = " << YVariableMemo <<
fTTBELL << std::endl;
9043 if (xCanvasExists == 1 && SameXVarMemo == 1 && SameYVarMemo == 1) {
9069 if (nb_of_runs_in_list > 0) {
9072 Double_t margin_frame_xaxis = (Double_t)25.;
9074 Double_t thstart_evol = (Double_t)0.;
9075 Double_t thstop_evol = (Double_t)0.;
9077 Int_t* exist_indic =
new Int_t[nb_of_runs_in_list];
9091 for (Int_t i_run = 0; i_run < nb_of_runs_in_list; i_run++) {
9092 exist_indic[i_run] = 0;
9131 exist_indic[i_run] = 1;
9137 std::cout <<
"!TEcnaHistos::ViewHistime(...)> *ERROR* =====> " 9146 Int_t i_existing_run = (Int_t)0;
9148 for (Int_t i_run = 0; i_run < nb_of_runs_in_list; i_run++) {
9149 if (exist_indic[i_run] == 1) {
9160 Double_t xinf_lim = thstart_evol - (thstop_evol - thstart_evol) / margin_frame_xaxis;
9161 Double_t xsup_lim = thstop_evol + (thstop_evol - thstart_evol) / margin_frame_xaxis;
9163 Axis_t xinf_his = (Axis_t)(xinf_lim);
9164 Axis_t xsup_his = (Axis_t)(xsup_lim);
9178 time_coordx[i_run] = (Double_t)(-1);
9179 hval_coordy[i_run] = (Double_t)(-1);
9209 if (ok_view_histo == kTRUE) {
9212 Double_t thstart = (Double_t)xStartTime;
9213 time_coordx[i_run] = (Double_t)(thstart - xinf_lim);
9217 read_histo(
i) = (Double_t)0.;
9220 if (HistoCode ==
"H_Ped_Date" || HistoCode ==
"H_Ped_RuDs") {
9223 if (HistoCode ==
"H_TNo_Date" || HistoCode ==
"H_TNo_RuDs") {
9226 if (HistoCode ==
"H_MCs_Date" || HistoCode ==
"H_MCs_RuDs") {
9230 if (HistoCode ==
"H_LFN_Date" || HistoCode ==
"H_LFN_RuDs") {
9233 if (HistoCode ==
"H_HFN_Date" || HistoCode ==
"H_HFN_RuDs") {
9236 if (HistoCode ==
"H_SCs_Date" || HistoCode ==
"H_SCs_RuDs") {
9239 hval_coordy[i_run] = (Double_t)read_histo(i0StexEcha);
9241 std::cout <<
"!TEcnaHistos::ViewHistime(...)> Histo not available. " <<
fTTBELL << std::endl;
9274 g_graph0->SetTitle(
";");
9354 xFlagAutoYsupMargin);
9381 TVectorD histo_for_plot(HisSizeEvolProj);
9382 for (Int_t
i = 0;
i < HisSizeEvolProj;
i++) {
9383 histo_for_plot[
i] = (Double_t)0.;
9389 TString HistoCodi = HistoCode;
9391 if (HistoCode ==
"H_Ped_RuDs") {
9392 HistoCodi =
"H_Ped_Date";
9394 if (HistoCode ==
"H_TNo_RuDs") {
9395 HistoCodi =
"H_TNo_Date";
9397 if (HistoCode ==
"H_LFN_RuDs") {
9398 HistoCodi =
"H_LFN_Date";
9400 if (HistoCode ==
"H_HFN_RuDs") {
9401 HistoCodi =
"H_HFN_Date";
9403 if (HistoCode ==
"H_MCs_RuDs") {
9404 HistoCodi =
"H_MCs_Date";
9406 if (HistoCode ==
"H_SCs_RuDs") {
9407 HistoCodi =
"H_SCs_Date";
9425 Double_t XinfProj = (Double_t)0;
9426 Double_t XsupProj = (Double_t)0;
9470 Double_t cXinf = (Double_t)0.;
9471 Double_t cXsup = (Double_t)0.;
9482 if (cXinf >= cXsup) {
9488 Axis_t xinf_his = cXinf;
9489 Axis_t xsup_his = cXsup;
9491 TString TitleHisto =
";";
9498 Double_t XFromYGraph = hval_coordy[i_run];
9499 Double_t binXProjY = (Double_t)HisSizeEvolProj * (XFromYGraph - cXinf) / (cXsup - cXinf);
9500 Int_t ibinXProjY = (Int_t)binXProjY;
9501 if (ibinXProjY >= 0 && ibinXProjY < HisSizeEvolProj) {
9502 histo_for_plot[ibinXProjY]++;
9506 TH1D* h_his_evol_proj =
new TH1D(
"histevolproj", TitleHisto.Data(), HisSizeEvolProj, xinf_his, xsup_his);
9509 h_his_evol_proj->Reset();
9512 for (Int_t
i = 0;
i < HisSizeEvolProj;
i++) {
9513 Double_t yi = (Double_t)
i / (Double_t)HisSizeEvolProj * (cXsup - cXinf) + cXinf;
9514 Double_t his_val = (Double_t)histo_for_plot[
i];
9515 h_his_evol_proj->Fill(yi, his_val);
9566 Int_t arg_AlreadyRead = 0;
9581 xFlagAutoYsupMargin);
9583 h_his_evol_proj->Delete();
9584 h_his_evol_proj =
nullptr;
9591 delete[] time_coordx;
9592 time_coordx =
nullptr;
9594 delete[] hval_coordy;
9595 hval_coordy =
nullptr;
9598 std::cout <<
"!TEcnaHistos::ViewHistime(...)> The list of runs in file: " << list_of_run_file_name <<
" has " 9599 << nb_of_runs_in_list <<
" run numbers" << std::endl
9600 <<
" but none of them correspond to an existing ROOT file." <<
fTTBELL << std::endl;
9611 delete[] exist_indic;
9612 exist_indic =
nullptr;
9616 if (nb_of_runs_in_list == 0) {
9617 std::cout <<
"!TEcnaHistos::ViewHistime(...)> The list of runs in file: " << list_of_run_file_name
9618 <<
" is empty !" <<
fTTBELL << std::endl;
9620 if (nb_of_runs_in_list < 0) {
9621 std::cout <<
"!TEcnaHistos::ViewHistime(...)> " << list_of_run_file_name
9659 Int_t nb_of_runs_in_list = 0;
9662 if (!strcmp(list_of_run_file_name.Data(),
"\0")) {
9663 std::cout <<
"!TEcnaHistos::GetHistoryRunListParameters(...)> *** ERROR *** =====> " 9664 <<
" EMPTY STRING for list of run file name." <<
fTTBELL << std::endl;
9667 if (HistoCode ==
"H_Ped_Date") {
9670 if (HistoCode ==
"H_TNo_Date") {
9673 if (HistoCode ==
"H_MCs_Date") {
9676 if (HistoCode ==
"H_LFN_Date") {
9679 if (HistoCode ==
"H_HFN_Date") {
9682 if (HistoCode ==
"H_SCs_Date") {
9686 if (HistoCode ==
"H_Ped_RuDs") {
9689 if (HistoCode ==
"H_TNo_RuDs") {
9692 if (HistoCode ==
"H_MCs_RuDs") {
9695 if (HistoCode ==
"H_LFN_RuDs") {
9698 if (HistoCode ==
"H_HFN_RuDs") {
9701 if (HistoCode ==
"H_SCs_RuDs") {
9708 TString xFileNameRunList = list_of_run_file_name.Data();
9709 const Text_t* t_file_name = (
const Text_t*)xFileNameRunList.Data();
9716 TString home_path = gSystem->Getenv(
"HOME");
9723 xFileNameRunList.Append(
'/');
9724 xFileNameRunList.Append(t_file_name);
9726 fFcin_f.open(xFileNameRunList.Data());
9729 if (
fFcin_f.fail() == kFALSE) {
9735 Int_t list_size_read = 0;
9747 fFcin_f.seekg(0, std::ios::beg);
9789 std::cout <<
"TEcnaHistos::GetHistoryRunListParameters(...)> Max number of runs in HistoryRunList = " 9790 <<
fFapMaxNbOfRuns <<
" too large, forced to parameter TEcnaParHistos->fMaxNbOfRunsInLists value (= " 9801 std::cout <<
"!TEcnaHistos::GetHistoryRunListParameters(...)> *** ERROR *** =====> fFapMaxNbOfRuns = " 9814 for (Int_t i_list = 0; i_list <
fFapNbOfRuns; i_list++) {
9823 std::cout <<
"!TEcnaHistos::GetHistoryRunListParameters(...)> *** ERROR *** =====> " << xFileNameRunList.Data()
9824 <<
" : file not found." <<
fTTBELL << std::endl;
9825 nb_of_runs_in_list = -1;
9828 return nb_of_runs_in_list;
9839 if (HistoCode ==
"H_Ped_Date") {
9842 if (HistoCode ==
"H_TNo_Date") {
9845 if (HistoCode ==
"H_MCs_Date") {
9848 if (HistoCode ==
"H_LFN_Date") {
9851 if (HistoCode ==
"H_HFN_Date") {
9854 if (HistoCode ==
"H_SCs_Date") {
9857 if (HistoCode ==
"H_Ped_RuDs") {
9860 if (HistoCode ==
"H_TNo_RuDs") {
9863 if (HistoCode ==
"H_MCs_RuDs") {
9866 if (HistoCode ==
"H_LFN_RuDs") {
9869 if (HistoCode ==
"H_HFN_RuDs") {
9872 if (HistoCode ==
"H_SCs_RuDs") {
9884 if (xArgIndexRun >= 0 && xArgIndexRun < MaxNbOfRuns) {
9886 if (xArgIndexRun == 0) {
9890 std::cout <<
"!TEcnaHistos::SetRunNumberFromList(...)> **** ERROR **** Run index out of range in list of runs. " 9892 << xArgIndexRun <<
" (MaxNbOfRuns = " << MaxNbOfRuns <<
")" << std::endl;
9921 const Int_t& StexStin_A,
9922 const Int_t& i0StinEcha,
9923 const Int_t& i0Sample,
9924 const TString& HistoCode) {
9927 Bool_t ok_view_histo = kFALSE;
9935 vStin(
i) = (Double_t)0.;
9939 if (aMyRootFile->
DataExist() == kTRUE) {
9944 if (vStin(index_Stin) == StexStin_A) {
9954 Int_t StinNumber = StexStin_A;
9958 std::cout <<
"!TEcnaHistos::GetOkViewHisto(...)> *ERROR* =====> " 9959 <<
"File: " << root_file_name <<
", " <<
fFapStinName.Data() <<
" " << StinNumber
9960 <<
" not found. Available numbers = ";
9979 Int_t ok_max_elt = 1;
9982 (i0StinEcha < fEcal->MaxCrysInStin()) && (i0Sample >= 0) && (i0Sample <
fFapNbOfSamples)) ||
9991 !((i0StinEcha >= 0) && (i0StinEcha < fEcal->MaxCrysInStin()))) {
9992 std::cout <<
"!TEcnaHistos::GetOkViewHisto(...)> *ERROR* =====> " 9993 <<
"File: " << root_file_name <<
". Wrong channel number. Value = " << i0StinEcha
9994 <<
" (required range: [" << Choffset <<
", " <<
fEcal->
MaxCrysInStin() - 1 + Choffset <<
"] )" 9997 if ((HistoCode ==
"D_Adc_EvDs" || HistoCode ==
"D_Adc_EvNb") &&
9999 std::cout <<
"!TEcnaHistos::GetOkViewHisto(...)> *ERROR* =====> " 10000 <<
"File: " << root_file_name <<
". Wrong sample index. Value = " << i0Sample
10006 if ((ok_view == 1) && (ok_max_elt == 1)) {
10007 ok_view_histo = kTRUE;
10009 std::cout <<
"!TEcnaHistos::GetOkViewHisto(...)> At least one ERROR has been detected. ok_view = " << ok_view
10010 <<
", ok_max_elt = " << ok_max_elt <<
fTTBELL << std::endl;
10015 std::cout <<
"!TEcnaHistos::GetOkViewHisto(...)> No data in ROOT file " 10016 <<
", aMyRootFile->DataExist() = " << aMyRootFile->
DataExist() <<
fTTBELL << std::endl;
10018 return ok_view_histo;
10031 Int_t xFlagAutoYsupMargin = 1;
10033 if (HistoCode ==
"D_NOE_ChNb") {
10035 xFlagAutoYsupMargin = 0;
10041 if (HistoCode ==
"D_NOE_ChDs") {
10043 xFlagAutoYsupMargin = 0;
10049 if (HistoCode ==
"D_Ped_ChNb") {
10051 xFlagAutoYsupMargin = 0;
10057 if (HistoCode ==
"D_Ped_ChDs") {
10059 xFlagAutoYsupMargin = 0;
10065 if (HistoCode ==
"D_TNo_ChNb") {
10067 xFlagAutoYsupMargin = 0;
10073 if (HistoCode ==
"D_TNo_ChDs") {
10075 xFlagAutoYsupMargin = 0;
10081 if (HistoCode ==
"D_MCs_ChNb") {
10083 xFlagAutoYsupMargin = 0;
10089 if (HistoCode ==
"D_MCs_ChDs") {
10091 xFlagAutoYsupMargin = 0;
10097 if (HistoCode ==
"D_LFN_ChNb") {
10099 xFlagAutoYsupMargin = 0;
10105 if (HistoCode ==
"D_LFN_ChDs") {
10107 xFlagAutoYsupMargin = 0;
10113 if (HistoCode ==
"D_HFN_ChNb") {
10115 xFlagAutoYsupMargin = 0;
10121 if (HistoCode ==
"D_HFN_ChDs") {
10123 xFlagAutoYsupMargin = 0;
10129 if (HistoCode ==
"D_SCs_ChNb") {
10131 xFlagAutoYsupMargin = 0;
10137 if (HistoCode ==
"D_SCs_ChDs") {
10139 xFlagAutoYsupMargin = 0;
10145 if (HistoCode ==
"D_MSp_SpNb") {
10147 xFlagAutoYsupMargin = 0;
10153 if (HistoCode ==
"D_MSp_SpDs") {
10155 xFlagAutoYsupMargin = 0;
10161 if (HistoCode ==
"D_SSp_SpNb") {
10163 xFlagAutoYsupMargin = 0;
10169 if (HistoCode ==
"D_SSp_SpDs") {
10171 xFlagAutoYsupMargin = 0;
10177 if (HistoCode ==
"D_Adc_EvNb") {
10179 xFlagAutoYsupMargin = 0;
10185 if (HistoCode ==
"D_Adc_EvDs") {
10187 xFlagAutoYsupMargin = 0;
10193 if (HistoCode ==
"H2CorccInStins") {
10195 xFlagAutoYsupMargin = 0;
10201 if (HistoCode ==
"H2LFccMosMatrix") {
10203 xFlagAutoYsupMargin = 0;
10209 if (HistoCode ==
"H2HFccMosMatrix") {
10211 xFlagAutoYsupMargin = 0;
10217 if (HistoCode ==
"H_Ped_RuDs") {
10219 xFlagAutoYsupMargin = 0;
10225 if (HistoCode ==
"H_TNo_RuDs") {
10227 xFlagAutoYsupMargin = 0;
10233 if (HistoCode ==
"H_MCs_RuDs") {
10235 xFlagAutoYsupMargin = 0;
10241 if (HistoCode ==
"H_LFN_RuDs") {
10243 xFlagAutoYsupMargin = 0;
10249 if (HistoCode ==
"H_HFN_RuDs") {
10251 xFlagAutoYsupMargin = 0;
10257 if (HistoCode ==
"H_SCs_RuDs") {
10259 xFlagAutoYsupMargin = 0;
10265 return xFlagAutoYsupMargin;
10271 Int_t xFlagAutoYsupMargin = 1;
10273 if (HistoCode ==
"H_Ped_Date") {
10275 xFlagAutoYsupMargin = 0;
10281 if (HistoCode ==
"H_TNo_Date") {
10283 xFlagAutoYsupMargin = 0;
10289 if (HistoCode ==
"H_MCs_Date") {
10291 xFlagAutoYsupMargin = 0;
10297 if (HistoCode ==
"H_LFN_Date") {
10299 xFlagAutoYsupMargin = 0;
10305 if (HistoCode ==
"H_HFN_Date") {
10307 xFlagAutoYsupMargin = 0;
10313 if (HistoCode ==
"H_SCs_Date") {
10315 xFlagAutoYsupMargin = 0;
10321 return xFlagAutoYsupMargin;
10327 Double_t minproj = h_his0->GetMinimum();
10328 Double_t maxproj = h_his0->GetMaximum();
10329 minproj = minproj - (maxproj - minproj) * margin_factor;
10335 Double_t minproj = h_his0->GetMinimum();
10336 Double_t maxproj = h_his0->GetMaximum();
10337 maxproj = maxproj + (maxproj - minproj) * margin_factor;
10343 Double_t graph_ymin = g_graph0->GetY()[0];
10344 for (Int_t
i = 1;
i < g_graph0->GetN();
i++) {
10345 if (g_graph0->GetY()[
i] < graph_ymin) {
10346 graph_ymin = g_graph0->GetY()[
i];
10350 Double_t graph_ymax = g_graph0->GetY()[0];
10351 for (Int_t
i = 1;
i < g_graph0->GetN();
i++) {
10352 if (g_graph0->GetY()[
i] > graph_ymax) {
10353 graph_ymax = g_graph0->GetY()[
i];
10357 graph_ymin = graph_ymin - (graph_ymax - graph_ymin) * margin_factor;
10362 Double_t graph_ymin = g_graph0->GetY()[0];
10363 for (Int_t
i = 1;
i < g_graph0->GetN();
i++) {
10364 if (g_graph0->GetY()[
i] < graph_ymin) {
10365 graph_ymin = g_graph0->GetY()[
i];
10369 Double_t graph_ymax = g_graph0->GetY()[0];
10370 for (Int_t
i = 1;
i < g_graph0->GetN();
i++) {
10371 if (g_graph0->GetY()[
i] > graph_ymax) {
10372 graph_ymax = g_graph0->GetY()[
i];
10376 graph_ymax = graph_ymax + (graph_ymax - graph_ymin) * margin_factor;
10382 const Int_t& HisSize,
10383 const Axis_t& xinf_his,
10384 const Axis_t& xsup_his,
10385 const TString& HistoCode,
10387 const Int_t& StexStin_A,
10388 const Int_t& i0StinEcha,
10389 const Int_t& i0Sample,
10390 const Int_t& opt_scale_x,
10391 const Int_t& opt_scale_y,
10392 const TString& opt_plot,
10393 const Int_t& arg_AlreadyRead,
10394 const Int_t& xFlagAutoYsupMargin) {
10400 TString QuantityName =
" ";
10404 if (arg_AlreadyRead == 0 || arg_AlreadyRead == 1) {
10407 SetAllPavesViewHisto(HistoCode.Data(), StexStin_A, i0StinEcha, i0Sample, opt_plot.Data(), arg_AlreadyRead);
10412 HistoCode.Data(), opt_scale_x, opt_scale_y, opt_plot.Data(), arg_AlreadyRead, StexStin_A, i0StinEcha, i0Sample);
10414 TCanvas* MainCanvas =
nullptr;
10416 if (opt_plot ==
fOnlyOnePlot && (arg_AlreadyRead == 0 || arg_AlreadyRead == 1)) {
10417 MainCanvas =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
10425 if (
GetMemoFlag(HistoCode, opt_plot) ==
"Free") {
10426 MainCanvas =
CreateCanvas(HistoCode, opt_plot, canvas_name, canv_w, canv_h);
10436 Int_t Stex_StinCons = StexStin_A;
10437 Int_t n1StexCrys = i0StinEcha + 1;
10439 if (StexStin_A >= 1 && StexStin_A <= fEcal->MaxStinEcnaInStex()) {
10459 TVirtualPad* main_subpad =
nullptr;
10460 TPaveText* main_pavtxt =
nullptr;
10462 Int_t xMemoPlotSame = 1;
10466 if (arg_AlreadyRead == 0 || arg_AlreadyRead == 1) {
10491 Double_t x_margin = x_low;
10492 Double_t y_margin = y_low;
10493 MainCanvas->Divide(1, 1, x_margin, y_margin, fond_pad);
10497 main_subpad = gPad;
10498 main_subpad->SetPad(x_low, y_low, x_up, y_up);
10502 if (arg_AlreadyRead > 1) {
10511 if (
GetMemoFlag(HistoCode, opt_plot) ==
"Free") {
10518 main_pavtxt =
ActivePavTxt(HistoCode.Data(), opt_plot.Data());
10528 Float_t cTextPaveSize = 0.025;
10531 cTextPaveSize = 0.025;
10533 main_pavtxt->SetTextSize(cTextPaveSize);
10538 TString DecalStexName =
"";
10540 DecalStexName =
" ";
10542 TString DecalStinName =
"";
10544 DecalStinName =
" ";
10547 TString sStexOrStasName =
"";
10549 sStexOrStasName =
" ";
10558 "Analysis Samp RUN# (run type ) Evts range Nb Evts %s%s %s%s %s %s Sample",
10559 DecalStexName.Data(),
10560 sStexOrStasName.Data(),
10561 DecalStinName.Data(),
10568 "Analysis Samp RUN# (run type ) Evts range Nb Evts %s%s %s%s %s %s Sample",
10569 DecalStexName.Data(),
10570 sStexOrStasName.Data(),
10571 DecalStinName.Data(),
10578 "Analysis Samp RUN# (run type ) Evts range Nb Evts %s%s %s%s %s %s",
10579 DecalStexName.Data(),
10580 sStexOrStasName.Data(),
10581 DecalStinName.Data(),
10588 "Analysis Samp RUN# (run type ) Evts range Nb Evts %s%s",
10589 DecalStexName.Data(),
10590 sStexOrStasName.Data());
10595 "Analysis Samp Evts range Nb Evts %s%s %s%s %s %s",
10596 DecalStexName.Data(),
10597 sStexOrStasName.Data(),
10598 DecalStinName.Data(),
10605 TText* ttit = main_pavtxt->AddText(f_in);
10614 "%-10s 1-%2d%7d (%-20s) %5d-%5d %7d %4s %-25s",
10622 sFapStexNumber.Data(),
10623 QuantityName.Data());
10628 "%-10s 1-%2d %5d-%5d %7d %5s%6d%7d%7d %-25s",
10634 sFapStexNumber.Data(),
10638 QuantityName.Data());
10645 Int_t kSample = i0Sample + 1;
10649 "%-10s 1-%2d%7d (%-20s) %5d-%5d %7d %4s%6d%5d%5d%6d",
10657 sFapStexNumber.Data(),
10665 "%-10s 1-%2d%7d (%-20s) %5d-%5d %7d %4s%6d%5d%5d%6d",
10673 sFapStexNumber.Data(),
10681 "%-10s 1-%2d%7d (%-20s) %5d-%5d %7d %4s%6d%5d%5d",
10689 sFapStexNumber.Data(),
10696 "%-10s 1-%2d%7d (%-20s) %5d-%5d %7d %4s",
10704 sFapStexNumber.Data());
10709 "%-10s 1-%2d %5d-%5d %7d %4s%7d%5d%5d",
10715 sFapStexNumber.Data(),
10722 TText*
tt = main_pavtxt->AddText(f_in);
10726 main_pavtxt->Draw();
10745 if (
GetMemoFlag(HistoCode, opt_plot) ==
"Busy") {
10748 main_pavtxt =
ActivePavTxt(HistoCode.Data(), opt_plot.Data());
10751 main_subpad =
ActivePad(HistoCode.Data(), opt_plot.Data());
10764 if (main_subpad !=
nullptr) {
10767 if (xMemoPlotSame != 0) {
10772 Float_t cTextPaveSize = 0.025;
10775 cTextPaveSize = 0.025;
10777 main_pavtxt->SetTextSize(cTextPaveSize);
10784 "%-10s 1-%2d%7d (%-20s) %5d-%5d %7d %4s %-25s",
10792 sFapStexNumber.Data(),
10793 QuantityName.Data());
10798 "%-10s 1-%2d %5d-%5d %7d %5s%6d%7d%7d %-25s",
10804 sFapStexNumber.Data(),
10808 QuantityName.Data());
10813 Int_t kSample = i0Sample + 1;
10817 "%-10s 1-%2d%7d (%-20s) %5d-%5d %7d %4s%6d%5d%5d%6d",
10825 sFapStexNumber.Data(),
10833 "%-10s 1-%2d%7d (%-20s) %5d-%5d %7d %4s%6d%5d%5d%6d",
10841 sFapStexNumber.Data(),
10849 "%-10s 1-%2d%7d (%-20s) %5d-%5d %7d %4s%6d%5d%5d",
10857 sFapStexNumber.Data(),
10864 "%-10s 1-%2d%7d (%-20s) %5d-%5d %7d %4s",
10872 sFapStexNumber.Data());
10877 "%-10s 1-%2d %5d-%5d %7d %4s%7d%5d%5d",
10883 sFapStexNumber.Data(),
10890 TText*
tt = main_pavtxt->AddText(f_in);
10893 gStyle->SetOptDate(0);
10894 main_pavtxt->Draw();
10905 main_subpad->SetPad(x_low, y_low, x_up, y_up);
10914 h_his0->GetXaxis()->SetTitle(axis_x_var_name);
10915 h_his0->GetYaxis()->SetTitle(axis_y_var_name);
10917 Int_t lin_scale = 0;
10918 Int_t log_scale = 1;
10921 gPad->SetLogx(lin_scale);
10924 gPad->SetLogx(log_scale);
10927 gPad->SetLogy(lin_scale);
10930 gPad->SetLogy(log_scale);
10934 if (opt_plot ==
fOnlyOnePlot && arg_AlreadyRead == 0) {
10935 h_his0->DrawCopy();
10937 if (opt_plot ==
fOnlyOnePlot && arg_AlreadyRead == 1) {
10938 h_his0->DrawCopy();
10940 if (opt_plot ==
fOnlyOnePlot && arg_AlreadyRead > 1) {
10941 h_his0->DrawCopy(
"AHSAME");
10945 if (xMemoPlotSame == 0) {
10946 h_his0->DrawCopy();
10948 if (xMemoPlotSame != 0) {
10949 h_his0->DrawCopy(
"SAME");
10955 if (!(HistoCode ==
"D_Adc_EvDs" || HistoCode ==
"D_Adc_EvNb" ||
HistoType ==
"Proj" ||
HistoType ==
"SampProj" ||
10957 !(
HistoType ==
"H1Basic" && arg_AlreadyRead == 0)) {
10958 Double_t yinf = h_his0->GetMinimum();
10959 Double_t ysup = h_his0->GetMaximum();
10960 if (yinf <= (Double_t)0. && ysup >= (Double_t)0.) {
10961 TLine* lin =
new TLine(0., 0., (Double_t)HisSize, 0.);
10968 Double_t yinf = (Double_t)h_his0->GetMinimum();
10969 Double_t ysup = (Double_t)h_his0->GetMaximum();
10971 if (xFlagAutoYsupMargin == 1) {
10972 if (yinf >= ysup) {
10973 yinf = (Double_t)0.;
10976 Double_t MaxMarginFactor = (Double_t)0.05;
10977 ysup += (ysup - yinf) * MaxMarginFactor;
10986 Int_t DeeOffset = 0;
10987 for (Int_t n1Dee = 1; n1Dee <= 4; n1Dee++) {
11001 Double_t ydee = ysup + (ysup - yinf) / (Double_t)15.;
11003 sprintf(f_in,
"D%d", n1Dee);
11004 TText* text_Dee =
new TText(xBinDee, ydee, f_in);
11006 text_Dee->SetTextColor(coul_DS);
11007 text_Dee->SetTextSize((Double_t)0.04);
11008 text_Dee->Draw(
"SAME");
11010 Double_t DSLabelOffset = (Double_t)12;
11012 for (Int_t
i = 1;
i < 5;
i++) {
11028 TLine* lin_DS =
new TLine(xBinDS, yinf, xBinDS, ysup);
11030 lin_DS->SetLineColor(coul_DS);
11031 lin_DS->SetLineWidth(1);
11032 lin_DS->SetLineStyle(2);
11035 if (n1Dee == 2 &&
i == 4) {
11036 TLine* lin_DSp =
new TLine(DeeOffset, yinf, DeeOffset, ysup);
11038 lin_DSp->SetLineColor(coul_DS);
11039 lin_DSp->SetLineWidth(1);
11040 lin_DSp->SetLineStyle(2);
11044 Double_t yds = ysup + (ysup - yinf) / (Double_t)50.;
11045 Double_t xBinDSp = xBinDS + DSLabelOffset;
11048 sprintf(f_in,
"S%d", nDS);
11049 TText* text_DS =
new TText(xBinDSp, yds, f_in);
11051 text_DS->SetTextColor(coul_DS);
11052 text_DS->SetTextSize((Double_t)0.03);
11053 text_DS->Draw(
"SAME");
11054 if ((n1Dee == 4 &&
i == 1) || (n1Dee == 2 &&
i == 4)) {
11061 sprintf(f_in,
"S%d", nDS);
11062 TText* text_DS =
new TText(xBinDS - 1.75 * DSLabelOffset, yds, f_in);
11064 text_DS->SetTextColor(coul_DS);
11065 text_DS->SetTextSize((Double_t)0.03);
11066 text_DS->Draw(
"SAME");
11075 Double_t ytext = yinf - (ysup - yinf) / 8.5;
11078 for (Int_t
i = 1;
i < 5;
i++) {
11094 TLine* lin_DS =
new TLine(xBinDS, yinf, xBinDS, ysup);
11096 lin_DS->SetLineColor(coul_DS);
11097 lin_DS->SetLineWidth(2);
11098 lin_DS->SetLineStyle(2);
11100 Double_t ytextds = ysup + (ysup - yinf) / 30.;
11102 sprintf(f_in,
"S%d", iDS);
11103 TText* text_DS =
new TText(xBinDSNumber, ytextds, f_in);
11105 text_DS->SetTextColor(coul_DS);
11106 text_DS->SetTextSize((Double_t)0.04);
11107 text_DS->Draw(
"SAME");
11117 sprintf(f_in,
"S%d", iDSp);
11119 TText* text_DSp =
new TText(xBinpDSNumber, ytextds, f_in);
11121 text_DSp->SetTextColor(coul_DS);
11122 text_DSp->SetTextSize((Double_t)0.04);
11123 text_DSp->Draw(
"SAME");
11148 TLine* lin_notconnected =
new TLine(xBinNotConnectedSC, yinf, xBinNotConnectedSC, ysup);
11150 lin_notconnected->SetLineColor(coul_notconnected);
11151 lin_notconnected->SetLineStyle(3);
11152 lin_notconnected->Draw();
11155 TLine* lin_notconnected_end =
new TLine(xBinNotConnectedSCEnd, yinf, xBinNotConnectedSCEnd, ysup);
11157 lin_notconnected_end->SetLineColor(coul_notconnected);
11158 lin_notconnected_end->SetLineStyle(3);
11159 lin_notconnected_end->Draw();
11163 TText* text_SC_NotConnected =
new TText(xBinNotConnectedSC, ytext, f_in);
11165 text_SC_NotConnected->SetTextAngle((Double_t)45.);
11166 text_SC_NotConnected->SetTextColor(coul_notconnected);
11167 text_SC_NotConnected->SetTextFont(42);
11168 text_SC_NotConnected->SetTextSize((Double_t)0.03);
11169 text_SC_NotConnected->Draw(
"SAME");
11191 TLine* lin_notcomplete =
new TLine(xBinNotCompleteSC, yinf, xBinNotCompleteSC, ysup);
11193 lin_notcomplete->SetLineColor(coul_notcomplete);
11194 lin_notcomplete->SetLineStyle(3);
11195 lin_notcomplete->Draw();
11199 TLine* lin_notcomplete_end =
new TLine(xBinNotCompleteSCEnd, yinf, xBinNotCompleteSCEnd, ysup);
11201 lin_notcomplete_end->SetLineColor(coul_notcomplete);
11202 lin_notcomplete_end->SetLineStyle(3);
11203 lin_notcomplete_end->Draw();
11207 TText* text_SC_NotComplete =
new TText(xBinNotCompleteSC, ytext, f_in);
11209 text_SC_NotComplete->SetTextAngle((Double_t)45.);
11210 text_SC_NotComplete->SetTextColor(coul_notcomplete);
11211 text_SC_NotComplete->SetTextFont(42);
11212 text_SC_NotComplete->SetTextSize((Double_t)0.03);
11213 text_SC_NotComplete->Draw(
"SAME");
11270 (arg_AlreadyRead > 1 && arg_AlreadyRead < fEcal->MaxCrysInStin()))) {
11275 std::cout <<
"*TEcnaHistos::HistoPlot(...)> Canvas not found. Previously closed in option SAME." <<
fTTBELL 11289 TString sFapStexNumber =
"?";
11290 if (StexNumber == -1) {
11291 sFapStexNumber =
" -1";
11293 if (StexNumber == -2) {
11294 sFapStexNumber =
" -2";
11296 if (StexNumber == -3) {
11297 sFapStexNumber =
" -3";
11299 if (StexNumber == -4) {
11300 sFapStexNumber =
" -4";
11302 if (StexNumber == -5) {
11303 sFapStexNumber =
" -5";
11305 if (StexNumber == -6) {
11306 sFapStexNumber =
" -6";
11308 if (StexNumber == -7) {
11309 sFapStexNumber =
" -7";
11311 if (StexNumber == -8) {
11312 sFapStexNumber =
" -8";
11314 if (StexNumber == -9) {
11315 sFapStexNumber =
" -9";
11317 if (StexNumber == -10) {
11318 sFapStexNumber =
"-10";
11320 if (StexNumber == -11) {
11321 sFapStexNumber =
"-11";
11323 if (StexNumber == -12) {
11324 sFapStexNumber =
"-12";
11326 if (StexNumber == -13) {
11327 sFapStexNumber =
"-13";
11329 if (StexNumber == -14) {
11330 sFapStexNumber =
"-14";
11332 if (StexNumber == -15) {
11333 sFapStexNumber =
"-15";
11335 if (StexNumber == -16) {
11336 sFapStexNumber =
"-16";
11338 if (StexNumber == -17) {
11339 sFapStexNumber =
"-17";
11341 if (StexNumber == -18) {
11342 sFapStexNumber =
"-18";
11344 if (StexNumber == 0) {
11347 if (StexNumber == 1) {
11348 sFapStexNumber =
" 1";
11350 if (StexNumber == 2) {
11351 sFapStexNumber =
" 2";
11353 if (StexNumber == 3) {
11354 sFapStexNumber =
" 3";
11356 if (StexNumber == 4) {
11357 sFapStexNumber =
" 4";
11359 if (StexNumber == 5) {
11360 sFapStexNumber =
" 5";
11362 if (StexNumber == 6) {
11363 sFapStexNumber =
" 6";
11365 if (StexNumber == 7) {
11366 sFapStexNumber =
" 7";
11368 if (StexNumber == 8) {
11369 sFapStexNumber =
" 8";
11371 if (StexNumber == 9) {
11372 sFapStexNumber =
" 9";
11374 if (StexNumber == 10) {
11375 sFapStexNumber =
" 10";
11377 if (StexNumber == 11) {
11378 sFapStexNumber =
" 11";
11380 if (StexNumber == 12) {
11381 sFapStexNumber =
" 12";
11383 if (StexNumber == 13) {
11384 sFapStexNumber =
" 13";
11386 if (StexNumber == 14) {
11387 sFapStexNumber =
" 14";
11389 if (StexNumber == 15) {
11390 sFapStexNumber =
" 15";
11392 if (StexNumber == 16) {
11393 sFapStexNumber =
" 16";
11395 if (StexNumber == 17) {
11396 sFapStexNumber =
" 17";
11398 if (StexNumber == 18) {
11399 sFapStexNumber =
" 18";
11401 if (StexNumber == 19) {
11402 sFapStexNumber =
" -1";
11404 if (StexNumber == 20) {
11405 sFapStexNumber =
" -2";
11407 if (StexNumber == 21) {
11408 sFapStexNumber =
" -3";
11410 if (StexNumber == 22) {
11411 sFapStexNumber =
" -4";
11413 if (StexNumber == 23) {
11414 sFapStexNumber =
" -5";
11416 if (StexNumber == 24) {
11417 sFapStexNumber =
" -6";
11419 if (StexNumber == 25) {
11420 sFapStexNumber =
" -7";
11422 if (StexNumber == 26) {
11423 sFapStexNumber =
" -8";
11425 if (StexNumber == 27) {
11426 sFapStexNumber =
" -9";
11428 if (StexNumber == 28) {
11429 sFapStexNumber =
"-10";
11431 if (StexNumber == 29) {
11432 sFapStexNumber =
"-11";
11434 if (StexNumber == 30) {
11435 sFapStexNumber =
"-12";
11437 if (StexNumber == 31) {
11438 sFapStexNumber =
"-13";
11440 if (StexNumber == 32) {
11441 sFapStexNumber =
"-14";
11443 if (StexNumber == 33) {
11444 sFapStexNumber =
"-15";
11446 if (StexNumber == 34) {
11447 sFapStexNumber =
"-16";
11449 if (StexNumber == 35) {
11450 sFapStexNumber =
"-17";
11452 if (StexNumber == 36) {
11453 sFapStexNumber =
"-18";
11455 return sFapStexNumber;
11462 Double_t xbin = (Double_t)(-1);
11518 Double_t xbin = (Double_t)(-1);
11552 Int_t SCForCons = 0;
11720 const TString& HistoCode,
11722 const Int_t& StexStin_A,
11723 const Int_t& i0StinEcha,
11724 const Int_t& i0Sample,
11725 const Int_t& opt_scale_x,
11726 const Int_t& opt_scale_y,
11727 const TString& opt_plot,
11728 const Int_t& xFlagAutoYsupMargin) {
11740 Int_t arg_AlreadyRead = 0;
11742 HistoCode.Data(), opt_scale_x, opt_scale_y, opt_plot, arg_AlreadyRead, StexStin_A, i0StinEcha, i0Sample);
11746 TCanvas* MainCanvas =
nullptr;
11749 MainCanvas =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
11757 if (
GetMemoFlag(HistoCode, opt_plot) ==
"Free") {
11758 MainCanvas =
CreateCanvas(HistoCode, opt_plot, canvas_name, canv_w, canv_h);
11766 if (
GetMemoFlag(HistoCode, opt_plot) ==
"Free") {
11767 MainCanvas =
CreateCanvas(HistoCode, opt_plot, canvas_name, canv_w, canv_h);
11777 Int_t Stex_StinCons = StexStin_A;
11778 Int_t n1StexCrys = i0StinEcha + 1;
11780 if (StexStin_A >= 1 && StexStin_A <= fEcal->MaxStinEcnaInStex()) {
11800 TVirtualPad* main_subpad =
nullptr;
11801 TPaveText* main_pavtxt =
nullptr;
11803 Int_t xMemoPlotSame = 1;
11827 Double_t x_margin = x_low;
11828 Double_t y_margin = y_low;
11832 MainCanvas->Divide(1, 1, x_margin, y_margin, fond_pad);
11836 main_subpad = gPad;
11837 main_subpad->SetPad(x_low, y_low, x_up, y_up);
11843 if (
GetMemoFlag(HistoCode, opt_plot) ==
"Free") {
11851 if (!(
HistoType ==
"Global" ||
HistoType ==
"Proj" || HistoCode ==
"H_Ped_Date" || HistoCode ==
"H_TNo_Date" ||
11852 HistoCode ==
"H_MCs_Date" || HistoCode ==
"H_LFN_Date" || HistoCode ==
"H_HFN_Date" ||
11853 HistoCode ==
"H_SCs_Date")) {
11858 if (!(HistoCode ==
"H_Ped_Date" || HistoCode ==
"H_TNo_Date" || HistoCode ==
"H_MCs_Date" ||
11859 HistoCode ==
"H_LFN_Date" || HistoCode ==
"H_HFN_Date" || HistoCode ==
"H_SCs_Date")) {
11868 main_pavtxt =
ActivePavTxt(HistoCode.Data(), opt_plot.Data());
11878 TString DecalStexName =
"";
11880 DecalStexName =
" ";
11882 TString DecalStinName =
"";
11884 DecalStinName =
" ";
11887 TString sStexOrStasName =
"";
11889 sStexOrStasName =
" ";
11898 "Analysis Samp Evts range Nb Evts %s%s %s%s %s %s",
11899 DecalStexName.Data(),
11900 sStexOrStasName.Data(),
11901 DecalStinName.Data(),
11908 "Analysis Samp Evts range Nb Evts %s%s %s%s %s %s",
11909 DecalStexName.Data(),
11910 sStexOrStasName.Data(),
11911 DecalStinName.Data(),
11918 TText* ttit = main_pavtxt->AddText(f_in);
11923 "%-10s 1-%2d %5d-%5d %7d %5s%6d%7d%6d",
11929 sFapStexNumber.Data(),
11936 "%-10s 1-%2d %5d-%5d %7d %5s%6d%7d%6d %-25s",
11942 sFapStexNumber.Data(),
11946 QuantityName.Data());
11949 TText*
tt = main_pavtxt->AddText(f_in);
11953 main_pavtxt->Draw();
11968 if (
GetMemoFlag(HistoCode, opt_plot) ==
"Busy") {
11971 main_pavtxt =
ActivePavTxt(HistoCode.Data(), opt_plot.Data());
11974 main_subpad =
ActivePad(HistoCode.Data(), opt_plot.Data());
11987 if (main_subpad !=
nullptr) {
11989 if (xMemoPlotSame != 0) {
11999 "%-10s 1-%2d %5d-%5d %7d %5s%6d%7d%6d",
12005 sFapStexNumber.Data(),
12012 "%-10s 1-%2d %5d-%5d %7d %5s%6d%7d%6d %-25s",
12018 sFapStexNumber.Data(),
12022 QuantityName.Data());
12025 TText*
tt = main_pavtxt->AddText(f_in);
12028 gStyle->SetOptDate(0);
12029 main_pavtxt->Draw();
12039 main_subpad->SetPad(x_low, y_low, x_up, y_up);
12048 g_graph0->GetXaxis()->SetTitle(axis_x_var_name);
12049 g_graph0->GetYaxis()->SetTitle(axis_y_var_name);
12052 g_graph0->GetXaxis()->SetTimeDisplay(1);
12053 g_graph0->GetXaxis()->SetTimeFormat(
"%d %b-%Hh");
12055 g_graph0->GetXaxis()->SetTimeOffset(xinf);
12064 fXinf = (Double_t)xinf;
12065 fXsup = (Double_t)xsup;
12073 gPad->SetLogy(logy);
12074 g_graph0->Draw(
"ALP");
12078 gPad->SetLogy(liny);
12079 g_graph0->Draw(
"ALP");
12080 Int_t nb_pts = g_graph0->GetN();
12081 Double_t* coord_x = g_graph0->GetX();
12082 Double_t* coord_y = g_graph0->GetY();
12087 Double_t interv_displayed = (coord_x[nb_pts - 1] - coord_x[0]) / (Double_t)nb_displayed;
12088 Double_t last_drawn_coordx = coord_x[0] - 1.5 * interv_displayed;
12090 for (Int_t i_run = 0; i_run < nb_pts; i_run++) {
12091 if ((coord_x[i_run] - last_drawn_coordx) > interv_displayed) {
12092 Double_t joinYinf =
fYinf;
12093 Double_t joinYsup =
fYsup;
12094 if (joinYsup <= joinYinf) {
12097 joinYsup = joinYsup + (joinYsup - joinYinf) / 20.;
12101 TText* text_run_num =
new TText(coord_x[i_run], joinYsup, f_in);
12103 text_run_num->SetTextAngle((Double_t)45.);
12104 text_run_num->SetTextSize((Double_t)0.035);
12105 text_run_num->Draw(
"SAME");
12109 jointlign =
new TLine(coord_x[i_run], joinYsup, coord_x[i_run], coord_y[i_run]);
12111 jointlign->SetLineWidth(1);
12112 jointlign->SetLineStyle(2);
12113 jointlign->Draw(
"SAME");
12116 last_drawn_coordx = coord_x[i_run];
12121 gPad->SetLogy(logy);
12122 g_graph0->Draw(
"ALP");
12128 if (xMemoPlotSame == 0) {
12130 gPad->SetLogy(liny);
12133 gPad->SetLogy(logy);
12135 g_graph0->Draw(
"ALP");
12137 fXinf = (Double_t)xinf;
12138 fXsup = (Double_t)xsup;
12145 if (xMemoPlotSame != 0)
12148 gPad->SetLogy(liny);
12151 gPad->SetLogy(logy);
12154 g_graph0->Draw(
"LP");
12160 std::cout <<
"*TEcnaHistos::HistimePlot(...)> Canvas not found. Previously closed in option SAME." <<
fTTBELL 12172 const TString& opt_plot,
12173 const Int_t& xMemoPlotSame,
12176 const Int_t& xFlagAutoYsupMargin,
12177 const Int_t& HisSize) {
12181 ((opt_plot ==
fSameOnePlot) && (xMemoPlotSame == 0))) {
12182 Double_t Maxih = (Double_t)h_his0->GetMaximum();
12183 Double_t Minih = (Double_t)h_his0->GetMinimum();
12185 if (xFlagAutoYsupMargin == 1) {
12186 if (Minih >= Maxih) {
12187 Minih = (Double_t)0.;
12190 Double_t MaxMarginFactor = (Double_t)0.05;
12191 Maxih += (Maxih - Minih) * MaxMarginFactor;
12195 Double_t v_max =
max_value + (Double_t)1.;
12196 Double_t v_min_p = v_min + (Double_t)1.;
12197 Double_t v_max_p = v_max + (Double_t)1.;
12199 Int_t ndiv = 50207;
12200 TString
opt =
"B-";
12201 Double_t Xbegin = 0.;
12202 Double_t Xend = (Double_t)HisSize;
12203 Double_t ticks = 0.05;
12210 Xbegin = (Double_t)HisSize;
12219 Xbegin = (Double_t)HisSize;
12226 Xbegin = (Double_t)HisSize;
12234 Xend = (Double_t)HisSize;
12241 Xend = (Double_t)HisSize;
12249 TGaxis* top_axis_x =
nullptr;
12251 top_axis_x =
new TGaxis(Xbegin, Maxih, Xend, Maxih, v_min, v_max, ndiv,
opt, 0.);
12254 top_axis_x->SetTickSize(ticks);
12255 top_axis_x->SetTitleOffset((Float_t)(1.2));
12256 top_axis_x->SetLabelOffset((Float_t)(0.005));
12258 TString x_var_name =
"?";
12262 x_var_name =
"Tower number";
12271 x_var_name =
"SM number";
12277 top_axis_x->SetTitle(x_var_name);
12278 top_axis_x->Draw(
"SAME");
12293 TGaxis* top_axis_x_bis =
nullptr;
12294 top_axis_x_bis =
new TGaxis(Xbegin, Maxih, Xend, Maxih, v_min_p, v_max_p, ndiv,
opt, 0.);
12296 top_axis_x_bis->SetTickSize(0.);
12297 Float_t lab_siz_x = top_axis_x->GetLabelSize();
12298 top_axis_x_bis->SetLabelSize(lab_siz_x);
12299 top_axis_x_bis->SetLabelOffset(-0.1);
12301 top_axis_x_bis->SetLabelOffset((Float_t)(9999.));
12306 top_axis_x_bis->Draw(
"SAME");
12313 const Int_t& StexStin_A,
12314 const Int_t& StexStin_B,
12315 const Int_t& i0StinEcha) {
12372 if (chopt ==
"Numbering") {
12390 TString opt_pave_nbcol =
"OneCol";
12392 opt_pave_nbcol =
"TwoCol";
12418 const Int_t& StexStin_A,
12419 const Int_t& i0StinEcha,
12420 const Int_t& i0Sample,
12421 const TString& opt_plot) {
12422 Int_t arg_AlreadyRead = 0;
12427 const Int_t& StexStin_A,
12428 const Int_t& i0StinEcha,
12429 const Int_t& i0Sample,
12430 const TString& opt_plot,
12431 const Int_t& arg_AlreadyRead) {
12441 if (!(HistoCode ==
"D_NOE_ChNb" || HistoCode ==
"D_NOE_ChDs" || HistoCode ==
"D_Ped_ChNb" ||
12442 HistoCode ==
"D_Ped_ChDs" || HistoCode ==
"D_LFN_ChNb" || HistoCode ==
"D_LFN_ChDs" ||
12443 HistoCode ==
"D_TNo_ChNb" || HistoCode ==
"D_TNo_ChDs" || HistoCode ==
"D_HFN_ChNb" ||
12444 HistoCode ==
"D_HFN_ChDs" || HistoCode ==
"D_MCs_ChNb" || HistoCode ==
"D_MCs_ChDs" ||
12445 HistoCode ==
"D_SCs_ChNb" || HistoCode ==
"D_SCs_ChDs")) {
12449 if (HistoCode ==
"D_NOE_ChNb" || HistoCode ==
"D_Ped_ChNb" || HistoCode ==
"D_TNo_ChNb" ||
12450 HistoCode ==
"D_MCs_ChNb" || HistoCode ==
"D_LFN_ChNb" || HistoCode ==
"D_HFN_ChNb" ||
12451 HistoCode ==
"D_SCs_ChNb") {
12459 if (HistoCode ==
"H_Ped_Date" || HistoCode ==
"H_TNo_Date" || HistoCode ==
"H_MCs_Date" ||
12460 HistoCode ==
"H_LFN_Date" || HistoCode ==
"H_HFN_Date" || HistoCode ==
"H_SCs_Date" ||
12461 HistoCode ==
"H_Ped_RuDs" || HistoCode ==
"H_TNo_RuDs" || HistoCode ==
"H_MCs_RuDs" ||
12462 HistoCode ==
"H_LFN_RuDs" || HistoCode ==
"H_HFN_RuDs" || HistoCode ==
"H_SCs_RuDs") {
12467 if (HistoCode ==
"D_MSp_SpNb" || HistoCode ==
"D_SSp_SpNb" || HistoCode ==
"D_MSp_SpDs" ||
12468 HistoCode ==
"D_SSp_SpDs") {
12474 if (HistoCode ==
"D_Adc_EvDs" || HistoCode ==
"D_Adc_EvNb") {
12479 if (HistoCode ==
"H_Ped_Date" || HistoCode ==
"H_TNo_Date" || HistoCode ==
"H_MCs_Date" ||
12480 HistoCode ==
"H_LFN_Date" || HistoCode ==
"H_HFN_Date" || HistoCode ==
"H_SCs_Date" ||
12481 HistoCode ==
"H_Ped_RuDs" || HistoCode ==
"H_TNo_RuDs" || HistoCode ==
"H_MCs_RuDs" ||
12482 HistoCode ==
"H_LFN_RuDs" || HistoCode ==
"H_HFN_RuDs" || HistoCode ==
"H_SCs_RuDs") {
12497 if (HistoCode ==
"H_Ped_Date" || HistoCode ==
"H_TNo_Date" || HistoCode ==
"H_MCs_Date" ||
12498 HistoCode ==
"H_LFN_Date" || HistoCode ==
"H_HFN_Date" || HistoCode ==
"H_SCs_Date" ||
12499 HistoCode ==
"H_Ped_RuDs" || HistoCode ==
"H_TNo_RuDs" || HistoCode ==
"H_MCs_RuDs" ||
12500 HistoCode ==
"H_LFN_RuDs" || HistoCode ==
"H_HFN_RuDs" || HistoCode ==
"H_SCs_RuDs") {
12518 const Int_t& opt_scale_x,
12519 const Int_t& opt_scale_y,
12520 const TString& opt_plot,
12521 const Int_t& arg_AlreadyRead,
12522 const Int_t& StexStin_A,
12523 const Int_t& i0StinEcha,
12524 const Int_t& i0Sample) {
12528 TString canvas_name;
12535 TString name_opt_plot;
12537 name_opt_plot =
"?";
12544 sprintf(f_in,
"P%d", arg_AlreadyRead);
12545 name_opt_plot = f_in;
12549 name_opt_plot =
"SAME_N";
12551 Int_t name_same = -1;
12553 if (HistoCode ==
"D_NOE_ChNb") {
12556 if (HistoCode ==
"D_NOE_ChDs") {
12559 if (HistoCode ==
"D_Ped_ChNb") {
12562 if (HistoCode ==
"D_Ped_ChDs") {
12565 if (HistoCode ==
"D_TNo_ChNb") {
12568 if (HistoCode ==
"D_TNo_ChDs") {
12571 if (HistoCode ==
"D_MCs_ChNb") {
12574 if (HistoCode ==
"D_MCs_ChDs") {
12577 if (HistoCode ==
"D_LFN_ChNb") {
12580 if (HistoCode ==
"D_LFN_ChDs") {
12583 if (HistoCode ==
"D_HFN_ChNb") {
12586 if (HistoCode ==
"D_HFN_ChDs") {
12589 if (HistoCode ==
"D_SCs_ChNb") {
12592 if (HistoCode ==
"D_SCs_ChDs") {
12595 if (HistoCode ==
"D_MSp_SpNb") {
12598 if (HistoCode ==
"D_MSp_SpDs") {
12601 if (HistoCode ==
"D_SSp_SpNb") {
12604 if (HistoCode ==
"D_SSp_SpDs") {
12607 if (HistoCode ==
"D_Adc_EvDs") {
12610 if (HistoCode ==
"D_Adc_EvNb") {
12613 if (HistoCode ==
"H_Ped_Date") {
12616 if (HistoCode ==
"H_TNo_Date") {
12619 if (HistoCode ==
"H_MCs_Date") {
12622 if (HistoCode ==
"H_LFN_Date") {
12625 if (HistoCode ==
"H_HFN_Date") {
12628 if (HistoCode ==
"H_SCs_Date") {
12631 if (HistoCode ==
"H_Ped_RuDs") {
12634 if (HistoCode ==
"H_TNo_RuDs") {
12637 if (HistoCode ==
"H_MCs_RuDs") {
12640 if (HistoCode ==
"H_LFN_RuDs") {
12643 if (HistoCode ==
"H_HFN_RuDs") {
12646 if (HistoCode ==
"H_SCs_RuDs") {
12650 sprintf(f_in,
"%d", name_same);
12651 TString s_name_same = f_in;
12652 const Text_t* t_name_same = (
const Text_t*)s_name_same.Data();
12653 name_opt_plot.Append(t_name_same);
12656 name_opt_plot =
"SAME_Plus_N";
12659 sprintf(f_in,
"%d", name_same);
12660 TString s_name_same = f_in;
12661 const Text_t* t_name_same = (
const Text_t*)s_name_same.Data();
12662 name_opt_plot.Append(t_name_same);
12672 name_line =
"Line_";
12675 name_line =
"Polm_";
12681 const Text_t* t_line = (
const Text_t*)name_line.Data();
12682 name_visu.Append(t_line);
12684 TString name_scale_x;
12686 name_scale_x =
"?";
12688 name_scale_x =
"LinX_";
12691 name_scale_x =
"LogX_";
12693 const Text_t* t_scale_x = (
const Text_t*)name_scale_x.Data();
12694 name_visu.Append(t_scale_x);
12696 TString name_scale_y;
12698 name_scale_y =
"?";
12700 name_scale_y =
"LinY";
12703 name_scale_y =
"LogY";
12705 const Text_t* t_scale_y = (
const Text_t*)name_scale_y.Data();
12706 name_visu.Append(t_scale_y);
12709 TString name_quantity;
12711 name_quantity =
"?";
12713 if (HistoCode ==
"D_NOE_ChNb") {
12714 name_quantity =
"Nb_of_evts_as_func_of_Xtal";
12716 if (HistoCode ==
"D_NOE_ChDs") {
12717 name_quantity =
"Nb_of_evts_Xtal_distrib";
12719 if (HistoCode ==
"D_Ped_ChNb") {
12720 name_quantity =
"Pedestals_as_func_of_Xtal";
12722 if (HistoCode ==
"D_Ped_ChDs") {
12723 name_quantity =
"Pedestals_Xtal_distrib";
12725 if (HistoCode ==
"D_TNo_ChNb") {
12726 name_quantity =
"Total_Noise_as_func_of_Xtal";
12728 if (HistoCode ==
"D_TNo_ChDs") {
12729 name_quantity =
"Total_Noise_Xtal_distrib";
12731 if (HistoCode ==
"D_MCs_ChNb") {
12732 name_quantity =
"Mean_Corss_as_func_of_Xtal";
12734 if (HistoCode ==
"D_MCs_ChDs") {
12735 name_quantity =
"Mean_Corss_Xtal_distrib";
12737 if (HistoCode ==
"D_LFN_ChNb") {
12738 name_quantity =
"Low_Fq_Noise_as_func_of_Xtal";
12740 if (HistoCode ==
"D_LFN_ChDs") {
12741 name_quantity =
"Low_Fq_Noise_Xtal_distrib";
12743 if (HistoCode ==
"D_HFN_ChNb") {
12744 name_quantity =
"High_Fq_Noise_as_func_of_Xtal";
12746 if (HistoCode ==
"D_HFN_ChDs") {
12747 name_quantity =
"High_Fq_Noise_Xtal_distrib";
12749 if (HistoCode ==
"D_SCs_ChNb") {
12750 name_quantity =
"Sigma_Corss_as_func_of_Xtal";
12752 if (HistoCode ==
"D_SCs_ChDs") {
12753 name_quantity =
"Sigma_Corss_Xtal_distrib";
12755 if (HistoCode ==
"D_MSp_SpNb") {
12756 name_quantity =
"ExpValue_of_samples";
12758 if (HistoCode ==
"D_MSp_SpDs") {
12759 name_quantity =
"ExpValue_of_samples_distrib";
12761 if (HistoCode ==
"D_SSp_SpNb") {
12762 name_quantity =
"Sigma_of_samples";
12764 if (HistoCode ==
"D_SSp_SpDs") {
12765 name_quantity =
"Sigma_of_samples_distrib";
12767 if (HistoCode ==
"D_Adc_EvDs") {
12768 name_quantity =
"hevt";
12770 if (HistoCode ==
"D_Adc_EvNb") {
12771 name_quantity =
"ADC_as_func_of_Event";
12773 if (HistoCode ==
"H_Ped_Date") {
12774 name_quantity =
"Pedestal_history";
12776 if (HistoCode ==
"H_TNo_Date") {
12777 name_quantity =
"Total_Noise_history";
12779 if (HistoCode ==
"H_MCs_Date") {
12780 name_quantity =
"Mean_Corss_history";
12782 if (HistoCode ==
"H_LFN_Date") {
12783 name_quantity =
"Low_Fq_Noise_history";
12785 if (HistoCode ==
"H_HFN_Date") {
12786 name_quantity =
"High_Fq_Noise_history";
12788 if (HistoCode ==
"H_SCs_Date") {
12789 name_quantity =
"Sigma_Corss_history";
12791 if (HistoCode ==
"H_Ped_RuDs") {
12792 name_quantity =
"Pedestal_run_distribution";
12794 if (HistoCode ==
"H_TNo_RuDs") {
12795 name_quantity =
"Total_Noise_run_distribution";
12797 if (HistoCode ==
"H_MCs_RuDs") {
12798 name_quantity =
"Mean_Corss_run_distribution";
12800 if (HistoCode ==
"H_LFN_RuDs") {
12801 name_quantity =
"Low_Fq_Noise_run_distribution";
12803 if (HistoCode ==
"H_HFN_RuDs") {
12804 name_quantity =
"High_Fq_Noise_run_distribution";
12806 if (HistoCode ==
"H_SCs_RuDs") {
12807 name_quantity =
"Sigma_Corss_run_distribution";
12810 Int_t num_crys = -1;
12811 if (HistoCode ==
"D_MSp_SpNb") {
12812 num_crys = i0StinEcha;
12814 if (HistoCode ==
"D_MSp_SpDs") {
12815 num_crys = i0StinEcha;
12817 if (HistoCode ==
"D_SSp_SpNb") {
12818 num_crys = i0StinEcha;
12820 if (HistoCode ==
"D_SSp_SpDs") {
12821 num_crys = i0StinEcha;
12823 if (HistoCode ==
"D_Adc_EvDs") {
12824 num_crys = i0StinEcha;
12826 if (HistoCode ==
"D_Adc_EvNb") {
12827 num_crys = i0StinEcha;
12829 if (HistoCode ==
"H_Ped_Date") {
12830 num_crys = i0StinEcha;
12832 if (HistoCode ==
"H_TNo_Date") {
12833 num_crys = i0StinEcha;
12835 if (HistoCode ==
"H_MCs_Date") {
12836 num_crys = i0StinEcha;
12838 if (HistoCode ==
"H_LFN_Date") {
12839 num_crys = i0StinEcha;
12841 if (HistoCode ==
"H_HFN_Date") {
12842 num_crys = i0StinEcha;
12844 if (HistoCode ==
"H_SCs_Date") {
12845 num_crys = i0StinEcha;
12847 if (HistoCode ==
"H_Ped_RuDs") {
12848 num_crys = i0StinEcha;
12850 if (HistoCode ==
"H_TNo_RuDs") {
12851 num_crys = i0StinEcha;
12853 if (HistoCode ==
"H_MCs_RuDs") {
12854 num_crys = i0StinEcha;
12856 if (HistoCode ==
"H_LFN_RuDs") {
12857 num_crys = i0StinEcha;
12859 if (HistoCode ==
"H_HFN_RuDs") {
12860 num_crys = i0StinEcha;
12862 if (HistoCode ==
"H_SCs_RuDs") {
12863 num_crys = i0StinEcha;
12866 Int_t num_samp = -1;
12867 if (HistoCode ==
"D_Adc_EvDs") {
12868 num_samp = i0Sample;
12870 if (HistoCode ==
"D_Adc_EvNb") {
12871 num_samp = i0Sample;
12876 if (HistoCode ==
"D_NOE_ChNb" || HistoCode ==
"D_NOE_ChDs" || HistoCode ==
"D_Ped_ChNb" ||
12877 HistoCode ==
"D_Ped_ChDs" || HistoCode ==
"D_TNo_ChNb" || HistoCode ==
"D_TNo_ChDs" ||
12878 HistoCode ==
"D_MCs_ChNb" || HistoCode ==
"D_MCs_ChDs" || HistoCode ==
"D_LFN_ChNb" ||
12879 HistoCode ==
"D_LFN_ChDs" || HistoCode ==
"D_HFN_ChNb" || HistoCode ==
"D_HFN_ChDs" ||
12880 HistoCode ==
"D_SCs_ChNb" || HistoCode ==
"D_SCs_ChDs") {
12882 "%s_%s_S1_%d_R%d_%d_%d_%d_%s%d_%s_%s",
12883 name_quantity.Data(),
12892 name_opt_plot.Data(),
12896 if (HistoCode ==
"D_MSp_SpNb" || HistoCode ==
"D_SSp_SpNb" || HistoCode ==
"H_Ped_Date" ||
12897 HistoCode ==
"H_TNo_Date" || HistoCode ==
"H_MCs_Date" || HistoCode ==
"H_LFN_Date" ||
12898 HistoCode ==
"H_HFN_Date" || HistoCode ==
"H_SCs_Date" || HistoCode ==
"D_MSp_SpDs" ||
12899 HistoCode ==
"D_SSp_SpDs" || HistoCode ==
"H_Ped_RuDs" || HistoCode ==
"H_TNo_RuDs" ||
12900 HistoCode ==
"H_MCs_RuDs" || HistoCode ==
"H_LFN_RuDs" || HistoCode ==
"H_HFN_RuDs" ||
12901 HistoCode ==
"H_SCs_RuDs") {
12903 "%s_%s_S1_%d_R%d_%d_%d_%d_%s%d_%s%d_Xtal%d_%s_%s",
12904 name_quantity.Data(),
12916 name_opt_plot.Data(),
12920 if (HistoCode ==
"D_Adc_EvNb" || HistoCode ==
"D_Adc_EvDs") {
12922 "%s_%s_S1_%d_R%d_%d_%d_%d_%s%d_%s%d_Xtal%d_Samp%d_%s_%s",
12923 name_quantity.Data(),
12936 name_opt_plot.Data(),
12940 canvas_name = f_in;
12941 return canvas_name.Data();
12969 if (chqcode ==
"D_MSp_SpNb" || chqcode ==
"D_SSp_SpNb" || chqcode ==
"D_MSp_SpDs" || chqcode ==
"D_SSp_SpDs") {
12970 if (opt_plot_read ==
"read") {
12973 if (opt_plot_read ==
"plot") {
12979 if (chqcode ==
"D_Adc_EvNb" || chqcode ==
"D_Adc_EvDs") {
12984 if (chqcode ==
"D_NOE_ChNb" || chqcode ==
"D_Ped_ChNb" || chqcode ==
"D_TNo_ChNb" || chqcode ==
"D_MCs_ChNb" ||
12985 chqcode ==
"D_LFN_ChNb" || chqcode ==
"D_HFN_ChNb" || chqcode ==
"D_SCs_ChNb" || chqcode ==
"D_NOE_ChDs" ||
12986 chqcode ==
"D_Ped_ChDs" || chqcode ==
"D_TNo_ChDs" || chqcode ==
"D_MCs_ChDs" || chqcode ==
"D_LFN_ChDs" ||
12987 chqcode ==
"D_HFN_ChDs" || chqcode ==
"D_SCs_ChDs") {
12998 if (opt_plot_read ==
"read") {
13001 if (opt_plot_read ==
"plot") {
13011 if (chqcode ==
"H_Ped_RuDs" || chqcode ==
"H_TNo_RuDs" || chqcode ==
"H_MCs_RuDs" || chqcode ==
"H_LFN_RuDs" ||
13012 chqcode ==
"H_HFN_RuDs" || chqcode ==
"H_SCs_RuDs") {
13020 const Int_t& arg_AlreadyRead,
13022 const TString& HistoCode,
13023 const Int_t& HisSizePlot,
13024 const Int_t& HisSizeRead,
13025 const Int_t& StexStin_A,
13026 const Int_t& i0StinEcha,
13027 const Int_t& i0Sample,
13028 Int_t& i_data_exist) {
13031 TVectorD plot_histo(HisSizePlot);
13032 for (Int_t
i = 0;
i < HisSizePlot;
i++) {
13033 plot_histo(
i) = (Double_t)0.;
13038 if (arg_AlreadyRead >= 1) {
13040 for (Int_t
i = 0;
i < HisSizeRead;
i++) {
13041 plot_histo(
i) = arg_read_histo(
i);
13047 if (arg_AlreadyRead == 0) {
13049 TVectorD read_histo(HisSizeRead);
13050 for (Int_t
i = 0;
i < HisSizeRead;
i++) {
13051 read_histo(
i) = (Double_t)0.;
13054 if (HistoCode ==
"D_MSp_SpNb" || HistoCode ==
"D_MSp_SpDs" || HistoCode ==
"D_SSp_SpNb" ||
13055 HistoCode ==
"D_SSp_SpDs") {
13057 if (HisSizeRead <= HisSizePlot) {
13058 if (HistoCode ==
"D_MSp_SpNb" || HistoCode ==
"D_MSp_SpDs") {
13059 read_histo = aMyRootFile->
ReadSampleMeans(StexStin_A, i0StinEcha, HisSizeRead);
13060 if (aMyRootFile->
DataExist() == kTRUE) {
13064 for (Int_t
i = 0;
i < HisSizeRead;
i++) {
13065 plot_histo(
i) = read_histo(
i);
13069 if (HistoCode ==
"D_SSp_SpNb" || HistoCode ==
"D_SSp_SpDs") {
13070 read_histo = aMyRootFile->
ReadSampleSigmas(StexStin_A, i0StinEcha, HisSizeRead);
13071 if (aMyRootFile->
DataExist() == kTRUE) {
13075 for (Int_t
i = 0;
i < HisSizeRead;
i++) {
13076 plot_histo(
i) = read_histo(
i);
13080 std::cout <<
"!TEcnaHistos::GetHistoValues(...)> *** ERROR *** > HisSizeRead greater than HisSizePlot" 13081 <<
" for plot as a function of sample#. HisSizeRead = " << HisSizeRead
13082 <<
", HisSizePlot = " << HisSizePlot <<
fTTBELL << std::endl;
13087 if (!(HistoCode ==
"D_MSp_SpNb" || HistoCode ==
"D_SSp_SpNb" || HistoCode ==
"D_MSp_SpDs" ||
13088 HistoCode ==
"D_SSp_SpDs"))
13091 if (HisSizeRead == HisSizePlot) {
13095 if (HistoCode ==
"D_Adc_EvNb" || HistoCode ==
"D_Adc_EvDs") {
13096 read_histo = aMyRootFile->
ReadSampleAdcValues(StexStin_A, i0StinEcha, i0Sample, HisSizeRead);
13097 if (aMyRootFile->
DataExist() == kTRUE) {
13103 if (HistoCode ==
"D_NOE_ChNb" || HistoCode ==
"D_NOE_ChDs") {
13105 if (aMyRootFile->
DataExist() == kTRUE) {
13111 if (HistoCode ==
"D_Ped_ChNb" || HistoCode ==
"D_Ped_ChDs") {
13113 if (aMyRootFile->
DataExist() == kTRUE) {
13120 if (HistoCode ==
"D_TNo_ChNb" || HistoCode ==
"D_TNo_ChDs") {
13122 if (aMyRootFile->
DataExist() == kTRUE) {
13128 if (HistoCode ==
"D_LFN_ChNb" || HistoCode ==
"D_LFN_ChDs") {
13130 if (aMyRootFile->
DataExist() == kTRUE) {
13136 if (HistoCode ==
"D_HFN_ChNb" || HistoCode ==
"D_HFN_ChDs") {
13138 if (aMyRootFile->
DataExist() == kTRUE) {
13144 if (HistoCode ==
"D_MCs_ChNb" || HistoCode ==
"D_MCs_ChDs") {
13146 if (aMyRootFile->
DataExist() == kTRUE) {
13152 if (HistoCode ==
"D_SCs_ChNb" || HistoCode ==
"D_SCs_ChDs") {
13154 if (aMyRootFile->
DataExist() == kTRUE) {
13160 for (Int_t
i = 0;
i < HisSizeRead;
i++) {
13161 plot_histo(
i) = read_histo(
i);
13165 std::cout <<
"!TEcnaHistos::GetHistoValues(...)> *** ERROR *** > HisSizeRead not equal to HisSizePlot." 13166 <<
" HisSizeRead = " << HisSizeRead <<
", HisSizePlot = " << HisSizePlot <<
fTTBELL << std::endl;
13171 if (i_data_exist == 0) {
13172 std::cout <<
"!TEcnaHistos::GetHistoValues(...)> Histo not found." <<
fTTBELL << std::endl;
13182 TString axis_x_var_name;
13184 if (HistoCode ==
"D_NOE_ChNb" || HistoCode ==
"D_Ped_ChNb" || HistoCode ==
"D_TNo_ChNb" ||
13185 HistoCode ==
"D_MCs_ChNb" || HistoCode ==
"D_LFN_ChNb" || HistoCode ==
"D_HFN_ChNb" ||
13186 HistoCode ==
"D_SCs_ChNb") {
13189 axis_x_var_name =
"Xtal (electronic channel number)";
13192 axis_x_var_name =
"Xtal";
13197 axis_x_var_name =
"Tower number";
13200 axis_x_var_name =
"SC number";
13205 if (HistoCode ==
"D_NOE_ChDs") {
13206 axis_x_var_name =
"Number of events";
13208 if (HistoCode ==
"D_Ped_ChDs") {
13209 axis_x_var_name =
"Pedestal";
13211 if (HistoCode ==
"D_TNo_ChDs") {
13212 axis_x_var_name =
"Total noise";
13214 if (HistoCode ==
"D_MCs_ChDs") {
13215 axis_x_var_name =
"Mean cor(s,s')";
13217 if (HistoCode ==
"D_LFN_ChDs") {
13218 axis_x_var_name =
"Low frequency noise";
13220 if (HistoCode ==
"D_HFN_ChDs") {
13221 axis_x_var_name =
"High frequency noise";
13223 if (HistoCode ==
"D_SCs_ChDs") {
13224 axis_x_var_name =
"Sigmas cor(s,s')";
13226 if (HistoCode ==
"D_MSp_SpNb") {
13227 axis_x_var_name =
"Sample";
13229 if (HistoCode ==
"D_MSp_SpDs") {
13230 axis_x_var_name =
"Pedestal";
13232 if (HistoCode ==
"D_SSp_SpNb") {
13233 axis_x_var_name =
"Sample";
13235 if (HistoCode ==
"D_SSp_SpDs") {
13236 axis_x_var_name =
"Total noise";
13238 if (HistoCode ==
"D_Adc_EvDs") {
13239 axis_x_var_name =
"ADC";
13241 if (HistoCode ==
"D_Adc_EvNb") {
13242 axis_x_var_name =
"Event number";
13244 if (HistoCode ==
"H_Ped_Date" || HistoCode ==
"H_TNo_Date" || HistoCode ==
"H_MCs_Date" ||
13245 HistoCode ==
"H_LFN_Date" || HistoCode ==
"H_HFN_Date" || HistoCode ==
"H_SCs_Date") {
13246 axis_x_var_name =
"Time";
13248 if (HistoCode ==
"H_Ped_RuDs") {
13249 axis_x_var_name =
"Pedestal";
13251 if (HistoCode ==
"H_TNo_RuDs") {
13252 axis_x_var_name =
"Total noise";
13254 if (HistoCode ==
"H_MCs_RuDs") {
13255 axis_x_var_name =
"Mean cor(s,s')";
13257 if (HistoCode ==
"H_LFN_RuDs") {
13258 axis_x_var_name =
"Low frequency noise";
13260 if (HistoCode ==
"H_HFN_RuDs") {
13261 axis_x_var_name =
"High frequency noise";
13263 if (HistoCode ==
"H_SCs_RuDs") {
13264 axis_x_var_name =
"Sigmas cor(s,s')";
13267 return axis_x_var_name;
13273 TString axis_y_var_name;
13275 if (HistoCode ==
"D_NOE_ChNb") {
13276 axis_y_var_name =
"Number of events";
13278 if (HistoCode ==
"D_Ped_ChNb") {
13279 axis_y_var_name =
"Pedestal";
13281 if (HistoCode ==
"D_TNo_ChNb") {
13282 axis_y_var_name =
"Total noise";
13284 if (HistoCode ==
"D_MCs_ChNb") {
13285 axis_y_var_name =
"Mean cor(s,s')";
13287 if (HistoCode ==
"D_LFN_ChNb") {
13288 axis_y_var_name =
"Low frequency noise";
13290 if (HistoCode ==
"D_HFN_ChNb") {
13291 axis_y_var_name =
"High frequency noise";
13293 if (HistoCode ==
"D_SCs_ChNb") {
13294 axis_y_var_name =
"Sigma of cor(s,s')";
13297 if (HistoCode ==
"D_NOE_ChDs" || HistoCode ==
"D_Ped_ChDs" || HistoCode ==
"D_TNo_ChDs" ||
13298 HistoCode ==
"D_MCs_ChDs" || HistoCode ==
"D_LFN_ChDs" || HistoCode ==
"D_HFN_ChDs" ||
13299 HistoCode ==
"D_SCs_ChDs") {
13301 axis_y_var_name =
"number of crystals";
13305 axis_y_var_name =
"number of towers";
13308 axis_y_var_name =
"number of SC's";
13313 if (HistoCode ==
"D_MSp_SpNb") {
13314 axis_y_var_name =
"Sample mean";
13316 if (HistoCode ==
"D_MSp_SpDs") {
13317 axis_y_var_name =
"Number of samples";
13319 if (HistoCode ==
"D_SSp_SpNb") {
13320 axis_y_var_name =
"Sample sigma";
13322 if (HistoCode ==
"D_SSp_SpDs") {
13323 axis_y_var_name =
"Number of samples";
13325 if (HistoCode ==
"D_Adc_EvNb") {
13326 axis_y_var_name =
"Sample ADC value";
13328 if (HistoCode ==
"D_Adc_EvDs") {
13329 axis_y_var_name =
"Number of events";
13331 if (HistoCode ==
"H_Ped_Date") {
13332 axis_y_var_name =
"Pedestal";
13334 if (HistoCode ==
"H_TNo_Date") {
13335 axis_y_var_name =
"Total noise";
13337 if (HistoCode ==
"H_MCs_Date") {
13338 axis_y_var_name =
"Mean cor(s,s')";
13340 if (HistoCode ==
"H_LFN_Date") {
13341 axis_y_var_name =
"Low frequency noise";
13343 if (HistoCode ==
"H_HFN_Date") {
13344 axis_y_var_name =
"High frequency noise";
13346 if (HistoCode ==
"H_SCs_Date") {
13347 axis_y_var_name =
"Sigma cor(s,s')";
13350 if (HistoCode ==
"H_Ped_RuDs" || HistoCode ==
"H_TNo_RuDs" || HistoCode ==
"H_MCs_RuDs" ||
13351 HistoCode ==
"H_LFN_RuDs" || HistoCode ==
"H_HFN_RuDs" || HistoCode ==
"H_SCs_RuDs") {
13352 axis_y_var_name =
"number of runs";
13355 return axis_y_var_name;
13361 Axis_t xinf_his = (Axis_t)0;
13363 if (HistoCode ==
"D_NOE_ChNb") {
13364 xinf_his = (Axis_t)0.;
13366 if (HistoCode ==
"D_Ped_ChNb") {
13367 xinf_his = (Axis_t)0.;
13369 if (HistoCode ==
"D_TNo_ChNb") {
13370 xinf_his = (Axis_t)0.;
13372 if (HistoCode ==
"D_MCs_ChNb") {
13373 xinf_his = (Axis_t)0.;
13375 if (HistoCode ==
"D_LFN_ChNb") {
13376 xinf_his = (Axis_t)0.;
13378 if (HistoCode ==
"D_HFN_ChNb") {
13379 xinf_his = (Axis_t)0.;
13381 if (HistoCode ==
"D_SCs_ChNb") {
13382 xinf_his = (Axis_t)0.;
13384 if (HistoCode ==
"D_MSp_SpNb") {
13385 xinf_his = (Axis_t)0.;
13387 if (HistoCode ==
"D_SSp_SpNb") {
13388 xinf_his = (Axis_t)0.;
13390 if (HistoCode ==
"D_Adc_EvNb") {
13391 xinf_his = (Axis_t)0.;
13394 if (HistoCode ==
"D_NOE_ChDs") {
13397 if (HistoCode ==
"D_Ped_ChDs") {
13400 if (HistoCode ==
"D_TNo_ChDs") {
13403 if (HistoCode ==
"D_MCs_ChDs") {
13406 if (HistoCode ==
"D_LFN_ChDs") {
13409 if (HistoCode ==
"D_HFN_ChDs") {
13412 if (HistoCode ==
"D_SCs_ChDs") {
13415 if (HistoCode ==
"D_MSp_SpDs") {
13418 if (HistoCode ==
"D_SSp_SpDs") {
13421 if (HistoCode ==
"D_Adc_EvDs") {
13425 if (HistoCode ==
"H_Ped_Date") {
13426 xinf_his = (Axis_t)0.;
13428 if (HistoCode ==
"H_TNo_Date") {
13429 xinf_his = (Axis_t)0.;
13431 if (HistoCode ==
"H_MCs_Date") {
13432 xinf_his = (Axis_t)0.;
13434 if (HistoCode ==
"H_LFN_Date") {
13435 xinf_his = (Axis_t)0.;
13437 if (HistoCode ==
"H_HFN_Date") {
13438 xinf_his = (Axis_t)0.;
13440 if (HistoCode ==
"H_SCs_Date") {
13441 xinf_his = (Axis_t)0.;
13444 if (HistoCode ==
"H_Ped_RuDs") {
13447 if (HistoCode ==
"H_TNo_RuDs") {
13450 if (HistoCode ==
"H_MCs_RuDs") {
13453 if (HistoCode ==
"H_LFN_RuDs") {
13456 if (HistoCode ==
"H_HFN_RuDs") {
13459 if (HistoCode ==
"H_SCs_RuDs") {
13469 Axis_t xsup_his = (Axis_t)0;
13471 if (HistoCode ==
"D_NOE_ChNb") {
13472 xsup_his = (Axis_t)HisSize;
13474 if (HistoCode ==
"D_Ped_ChNb") {
13475 xsup_his = (Axis_t)HisSize;
13477 if (HistoCode ==
"D_TNo_ChNb") {
13478 xsup_his = (Axis_t)HisSize;
13480 if (HistoCode ==
"D_MCs_ChNb") {
13481 xsup_his = (Axis_t)HisSize;
13483 if (HistoCode ==
"D_LFN_ChNb") {
13484 xsup_his = (Axis_t)HisSize;
13486 if (HistoCode ==
"D_HFN_ChNb") {
13487 xsup_his = (Axis_t)HisSize;
13489 if (HistoCode ==
"D_SCs_ChNb") {
13490 xsup_his = (Axis_t)HisSize;
13492 if (HistoCode ==
"D_MSp_SpNb") {
13493 xsup_his = (Axis_t)HisSize;
13495 if (HistoCode ==
"D_SSp_SpNb") {
13496 xsup_his = (Axis_t)HisSize;
13498 if (HistoCode ==
"D_Adc_EvNb") {
13502 if (HistoCode ==
"D_NOE_ChDs") {
13505 if (HistoCode ==
"D_Ped_ChDs") {
13508 if (HistoCode ==
"D_TNo_ChDs") {
13511 if (HistoCode ==
"D_MCs_ChDs") {
13514 if (HistoCode ==
"D_LFN_ChDs") {
13517 if (HistoCode ==
"D_HFN_ChDs") {
13520 if (HistoCode ==
"D_SCs_ChDs") {
13523 if (HistoCode ==
"D_MSp_SpDs") {
13526 if (HistoCode ==
"D_SSp_SpDs") {
13529 if (HistoCode ==
"D_Adc_EvDs") {
13533 if (HistoCode ==
"H_Ped_Date") {
13534 xsup_his = (Axis_t)0.;
13536 if (HistoCode ==
"H_TNo_Date") {
13537 xsup_his = (Axis_t)0.;
13539 if (HistoCode ==
"H_MCs_Date") {
13540 xsup_his = (Axis_t)0.;
13542 if (HistoCode ==
"H_LFN_Date") {
13543 xsup_his = (Axis_t)0.;
13545 if (HistoCode ==
"H_HFN_Date") {
13546 xsup_his = (Axis_t)0.;
13548 if (HistoCode ==
"H_SCs_Date") {
13549 xsup_his = (Axis_t)0.;
13552 if (HistoCode ==
"H_Ped_RuDs") {
13555 if (HistoCode ==
"H_TNo_RuDs") {
13558 if (HistoCode ==
"H_MCs_RuDs") {
13561 if (HistoCode ==
"H_LFN_RuDs") {
13564 if (HistoCode ==
"H_HFN_RuDs") {
13567 if (HistoCode ==
"H_SCs_RuDs") {
13577 Int_t nb_binx = HisSize;
13591 for (Int_t
i = 0;
i < HisSize;
i++) {
13592 Double_t his_val = (Double_t)0;
13593 Double_t
xi = (Double_t)0;
13595 if (HistoCode ==
"D_NOE_ChNb" || HistoCode ==
"D_Ped_ChNb" || HistoCode ==
"D_LFN_ChNb" ||
13596 HistoCode ==
"D_TNo_ChNb" || HistoCode ==
"D_HFN_ChNb" || HistoCode ==
"D_MCs_ChNb" ||
13597 HistoCode ==
"D_SCs_ChNb" || HistoCode ==
"D_MSp_SpNb" || HistoCode ==
"D_SSp_SpNb") {
13599 his_val = (Double_t)read_histo[
i];
13600 h_his0->Fill(
xi, his_val);
13604 if (HistoCode ==
"D_Adc_EvNb") {
13606 his_val = (Double_t)read_histo[
i];
13607 h_his0->Fill(
xi, his_val);
13610 if (HistoCode ==
"D_NOE_ChDs" || HistoCode ==
"D_Ped_ChDs" || HistoCode ==
"D_LFN_ChDs" ||
13611 HistoCode ==
"D_TNo_ChDs" || HistoCode ==
"D_HFN_ChDs" || HistoCode ==
"D_MCs_ChDs" ||
13612 HistoCode ==
"D_SCs_ChDs" || HistoCode ==
"D_MSp_SpDs" || HistoCode ==
"D_SSp_SpDs" ||
13613 HistoCode ==
"D_Adc_EvDs") {
13614 his_val = (Double_t)read_histo[
i];
13615 Double_t increment = (Double_t)1;
13616 h_his0->Fill(his_val, increment);
13633 if (HistoCode ==
"D_NOE_ChNb") {
13636 if (HistoCode ==
"D_NOE_ChDs") {
13639 if (HistoCode ==
"D_Ped_ChNb") {
13642 if (HistoCode ==
"D_Ped_ChDs") {
13645 if (HistoCode ==
"D_TNo_ChNb") {
13648 if (HistoCode ==
"D_TNo_ChDs") {
13651 if (HistoCode ==
"D_MCs_ChNb") {
13654 if (HistoCode ==
"D_MCs_ChDs") {
13657 if (HistoCode ==
"D_LFN_ChNb") {
13660 if (HistoCode ==
"D_LFN_ChDs") {
13663 if (HistoCode ==
"D_HFN_ChNb") {
13666 if (HistoCode ==
"D_HFN_ChDs") {
13669 if (HistoCode ==
"D_SCs_ChNb") {
13672 if (HistoCode ==
"D_SCs_ChDs") {
13675 if (HistoCode ==
"D_MSp_SpNb") {
13678 if (HistoCode ==
"D_MSp_SpDs") {
13681 if (HistoCode ==
"D_SSp_SpNb") {
13684 if (HistoCode ==
"D_SSp_SpDs") {
13687 if (HistoCode ==
"D_Adc_EvNb") {
13690 if (HistoCode ==
"D_Adc_EvDs") {
13693 if (HistoCode ==
"H_Ped_Date") {
13696 if (HistoCode ==
"H_TNo_Date") {
13699 if (HistoCode ==
"H_MCs_Date") {
13702 if (HistoCode ==
"H_LFN_Date") {
13705 if (HistoCode ==
"H_HFN_Date") {
13708 if (HistoCode ==
"H_SCs_Date") {
13711 if (HistoCode ==
"H_Ped_RuDs") {
13714 if (HistoCode ==
"H_TNo_RuDs") {
13717 if (HistoCode ==
"H_MCs_RuDs") {
13720 if (HistoCode ==
"H_LFN_RuDs") {
13723 if (HistoCode ==
"H_HFN_RuDs") {
13726 if (HistoCode ==
"H_SCs_RuDs") {
13734 if (HistoCode ==
"D_NOE_ChNb") {
13737 if (HistoCode ==
"D_NOE_ChDs") {
13740 if (HistoCode ==
"D_Ped_ChNb") {
13743 if (HistoCode ==
"D_Ped_ChDs") {
13746 if (HistoCode ==
"D_TNo_ChNb") {
13749 if (HistoCode ==
"D_TNo_ChDs") {
13752 if (HistoCode ==
"D_MCs_ChNb") {
13755 if (HistoCode ==
"D_MCs_ChDs") {
13758 if (HistoCode ==
"D_LFN_ChNb") {
13761 if (HistoCode ==
"D_LFN_ChDs") {
13764 if (HistoCode ==
"D_HFN_ChNb") {
13767 if (HistoCode ==
"D_HFN_ChDs") {
13770 if (HistoCode ==
"D_SCs_ChNb") {
13773 if (HistoCode ==
"D_SCs_ChDs") {
13776 if (HistoCode ==
"D_MSp_SpNb") {
13779 if (HistoCode ==
"D_MSp_SpDs") {
13782 if (HistoCode ==
"D_SSp_SpNb") {
13785 if (HistoCode ==
"D_SSp_SpDs") {
13788 if (HistoCode ==
"D_Adc_EvNb") {
13791 if (HistoCode ==
"D_Adc_EvDs") {
13794 if (HistoCode ==
"H_Ped_Date") {
13797 if (HistoCode ==
"H_TNo_Date") {
13800 if (HistoCode ==
"H_MCs_Date") {
13803 if (HistoCode ==
"H_LFN_Date") {
13806 if (HistoCode ==
"H_HFN_Date") {
13809 if (HistoCode ==
"H_SCs_Date") {
13812 if (HistoCode ==
"H_Ped_RuDs") {
13815 if (HistoCode ==
"H_TNo_RuDs") {
13818 if (HistoCode ==
"H_MCs_RuDs") {
13821 if (HistoCode ==
"H_LFN_RuDs") {
13824 if (HistoCode ==
"H_HFN_RuDs") {
13827 if (HistoCode ==
"H_SCs_RuDs") {
13835 Double_t val_inf = (Double_t)0.;
13837 if (HistoCode ==
"D_NOE_ChNb") {
13840 if (HistoCode ==
"D_NOE_ChDs") {
13843 if (HistoCode ==
"D_Ped_ChNb") {
13846 if (HistoCode ==
"D_Ped_ChDs") {
13849 if (HistoCode ==
"D_TNo_ChNb") {
13852 if (HistoCode ==
"D_TNo_ChDs") {
13855 if (HistoCode ==
"D_MCs_ChNb") {
13858 if (HistoCode ==
"D_MCs_ChDs") {
13861 if (HistoCode ==
"D_LFN_ChNb") {
13864 if (HistoCode ==
"D_LFN_ChDs") {
13867 if (HistoCode ==
"D_HFN_ChNb") {
13870 if (HistoCode ==
"D_HFN_ChDs") {
13873 if (HistoCode ==
"D_SCs_ChNb") {
13876 if (HistoCode ==
"D_SCs_ChDs") {
13879 if (HistoCode ==
"D_MSp_SpNb") {
13882 if (HistoCode ==
"D_MSp_SpDs") {
13885 if (HistoCode ==
"D_SSp_SpNb") {
13888 if (HistoCode ==
"D_SSp_SpDs") {
13891 if (HistoCode ==
"D_Adc_EvNb") {
13894 if (HistoCode ==
"D_Adc_EvDs") {
13897 if (HistoCode ==
"H_Ped_Date") {
13900 if (HistoCode ==
"H_TNo_Date") {
13903 if (HistoCode ==
"H_MCs_Date") {
13906 if (HistoCode ==
"H_LFN_Date") {
13909 if (HistoCode ==
"H_HFN_Date") {
13912 if (HistoCode ==
"H_SCs_Date") {
13915 if (HistoCode ==
"H_Ped_RuDs") {
13918 if (HistoCode ==
"H_TNo_RuDs") {
13921 if (HistoCode ==
"H_MCs_RuDs") {
13924 if (HistoCode ==
"H_LFN_RuDs") {
13927 if (HistoCode ==
"H_HFN_RuDs") {
13930 if (HistoCode ==
"H_SCs_RuDs") {
13939 Double_t val_sup = (Double_t)0.;
13941 if (HistoCode ==
"D_NOE_ChNb") {
13944 if (HistoCode ==
"D_NOE_ChDs") {
13947 if (HistoCode ==
"D_Ped_ChNb") {
13950 if (HistoCode ==
"D_Ped_ChDs") {
13953 if (HistoCode ==
"D_TNo_ChNb") {
13956 if (HistoCode ==
"D_TNo_ChDs") {
13959 if (HistoCode ==
"D_MCs_ChNb") {
13962 if (HistoCode ==
"D_MCs_ChDs") {
13965 if (HistoCode ==
"D_LFN_ChNb") {
13968 if (HistoCode ==
"D_LFN_ChDs") {
13971 if (HistoCode ==
"D_HFN_ChNb") {
13974 if (HistoCode ==
"D_HFN_ChDs") {
13977 if (HistoCode ==
"D_SCs_ChNb") {
13980 if (HistoCode ==
"D_SCs_ChDs") {
13983 if (HistoCode ==
"D_MSp_SpNb") {
13986 if (HistoCode ==
"D_MSp_SpDs") {
13989 if (HistoCode ==
"D_SSp_SpNb") {
13992 if (HistoCode ==
"D_SSp_SpDs") {
13995 if (HistoCode ==
"D_Adc_EvNb") {
13998 if (HistoCode ==
"D_Adc_EvDs") {
14001 if (HistoCode ==
"H_Ped_Date") {
14004 if (HistoCode ==
"H_TNo_Date") {
14007 if (HistoCode ==
"H_MCs_Date") {
14010 if (HistoCode ==
"H_LFN_Date") {
14013 if (HistoCode ==
"H_HFN_Date") {
14016 if (HistoCode ==
"H_SCs_Date") {
14019 if (HistoCode ==
"H_Ped_RuDs") {
14022 if (HistoCode ==
"H_TNo_RuDs") {
14025 if (HistoCode ==
"H_MCs_RuDs") {
14028 if (HistoCode ==
"H_LFN_RuDs") {
14031 if (HistoCode ==
"H_HFN_RuDs") {
14034 if (HistoCode ==
"H_SCs_RuDs") {
14181 if (HistoCode ==
"D_NOE_ChNb") {
14184 if (HistoCode ==
"D_NOE_ChDs") {
14187 if (HistoCode ==
"D_Ped_ChNb") {
14190 if (HistoCode ==
"D_Ped_ChDs") {
14193 if (HistoCode ==
"D_TNo_ChNb") {
14196 if (HistoCode ==
"D_TNo_ChDs") {
14199 if (HistoCode ==
"D_MCs_ChNb") {
14202 if (HistoCode ==
"D_MCs_ChDs") {
14205 if (HistoCode ==
"D_LFN_ChNb") {
14208 if (HistoCode ==
"D_LFN_ChDs") {
14211 if (HistoCode ==
"D_HFN_ChNb") {
14214 if (HistoCode ==
"D_HFN_ChDs") {
14217 if (HistoCode ==
"D_SCs_ChNb") {
14220 if (HistoCode ==
"D_SCs_ChDs") {
14223 if (HistoCode ==
"D_MSp_SpNb") {
14226 if (HistoCode ==
"D_MSp_SpDs") {
14229 if (HistoCode ==
"D_SSp_SpNb") {
14232 if (HistoCode ==
"D_SSp_SpDs") {
14235 if (HistoCode ==
"D_Adc_EvNb") {
14238 if (HistoCode ==
"D_Adc_EvDs") {
14241 if (HistoCode ==
"H_Ped_Date") {
14244 if (HistoCode ==
"H_TNo_Date") {
14247 if (HistoCode ==
"H_MCs_Date") {
14250 if (HistoCode ==
"H_LFN_Date") {
14253 if (HistoCode ==
"H_HFN_Date") {
14256 if (HistoCode ==
"H_SCs_Date") {
14259 if (HistoCode ==
"H_Ped_RuDs") {
14262 if (HistoCode ==
"H_TNo_RuDs") {
14265 if (HistoCode ==
"H_MCs_RuDs") {
14268 if (HistoCode ==
"H_LFN_RuDs") {
14271 if (HistoCode ==
"H_HFN_RuDs") {
14274 if (HistoCode ==
"H_SCs_RuDs") {
14277 if (HistoCode ==
"H2LFccMosMatrix") {
14280 if (HistoCode ==
"H2HFccMosMatrix") {
14283 if (HistoCode ==
"H2CorccInStins") {
14289 if (HistoCode ==
"D_NOE_ChNb") {
14292 if (HistoCode ==
"D_NOE_ChDs") {
14295 if (HistoCode ==
"D_Ped_ChNb") {
14298 if (HistoCode ==
"D_Ped_ChDs") {
14301 if (HistoCode ==
"D_TNo_ChNb") {
14304 if (HistoCode ==
"D_TNo_ChDs") {
14307 if (HistoCode ==
"D_MCs_ChNb") {
14310 if (HistoCode ==
"D_MCs_ChDs") {
14313 if (HistoCode ==
"D_LFN_ChNb") {
14316 if (HistoCode ==
"D_LFN_ChDs") {
14319 if (HistoCode ==
"D_HFN_ChNb") {
14322 if (HistoCode ==
"D_HFN_ChDs") {
14325 if (HistoCode ==
"D_SCs_ChNb") {
14328 if (HistoCode ==
"D_SCs_ChDs") {
14331 if (HistoCode ==
"D_MSp_SpNb") {
14334 if (HistoCode ==
"D_MSp_SpDs") {
14337 if (HistoCode ==
"D_SSp_SpNb") {
14340 if (HistoCode ==
"D_SSp_SpDs") {
14343 if (HistoCode ==
"D_Adc_EvNb") {
14346 if (HistoCode ==
"D_Adc_EvDs") {
14349 if (HistoCode ==
"H_Ped_Date") {
14352 if (HistoCode ==
"H_TNo_Date") {
14355 if (HistoCode ==
"H_MCs_Date") {
14358 if (HistoCode ==
"H_LFN_Date") {
14361 if (HistoCode ==
"H_HFN_Date") {
14364 if (HistoCode ==
"H_SCs_Date") {
14367 if (HistoCode ==
"H_Ped_RuDs") {
14370 if (HistoCode ==
"H_TNo_RuDs") {
14373 if (HistoCode ==
"H_MCs_RuDs") {
14376 if (HistoCode ==
"H_LFN_RuDs") {
14379 if (HistoCode ==
"H_HFN_RuDs") {
14382 if (HistoCode ==
"H_SCs_RuDs") {
14385 if (HistoCode ==
"H2LFccMosMatrix") {
14388 if (HistoCode ==
"H2HFccMosMatrix") {
14391 if (HistoCode ==
"H2CorccInStins") {
14397 Double_t val_min = (Double_t)0.;
14398 Double_t val_min_proj = (Double_t)0.1;
14400 if (HistoCode ==
"D_NOE_ChNb") {
14403 if (HistoCode ==
"D_NOE_ChDs") {
14404 val_min = val_min_proj;
14406 if (HistoCode ==
"D_Ped_ChNb") {
14409 if (HistoCode ==
"D_Ped_ChDs") {
14410 val_min = val_min_proj;
14412 if (HistoCode ==
"D_TNo_ChNb") {
14415 if (HistoCode ==
"D_TNo_ChDs") {
14416 val_min = val_min_proj;
14418 if (HistoCode ==
"D_MCs_ChNb") {
14421 if (HistoCode ==
"D_MCs_ChDs") {
14422 val_min = val_min_proj;
14424 if (HistoCode ==
"D_LFN_ChNb") {
14427 if (HistoCode ==
"D_LFN_ChDs") {
14428 val_min = val_min_proj;
14430 if (HistoCode ==
"D_HFN_ChNb") {
14433 if (HistoCode ==
"D_HFN_ChDs") {
14434 val_min = val_min_proj;
14436 if (HistoCode ==
"D_SCs_ChNb") {
14439 if (HistoCode ==
"D_SCs_ChDs") {
14440 val_min = val_min_proj;
14442 if (HistoCode ==
"D_MSp_SpNb") {
14445 if (HistoCode ==
"D_MSp_SpDs") {
14446 val_min = val_min_proj;
14448 if (HistoCode ==
"D_SSp_SpNb") {
14451 if (HistoCode ==
"D_SSp_SpDs") {
14452 val_min = val_min_proj;
14454 if (HistoCode ==
"D_Adc_EvNb") {
14457 if (HistoCode ==
"D_Adc_EvDs") {
14458 val_min = val_min_proj;
14460 if (HistoCode ==
"H_Ped_Date") {
14463 if (HistoCode ==
"H_TNo_Date") {
14466 if (HistoCode ==
"H_MCs_Date") {
14469 if (HistoCode ==
"H_LFN_Date") {
14472 if (HistoCode ==
"H_HFN_Date") {
14475 if (HistoCode ==
"H_SCs_Date") {
14478 if (HistoCode ==
"H_Ped_RuDs") {
14481 if (HistoCode ==
"H_TNo_RuDs") {
14484 if (HistoCode ==
"H_MCs_RuDs") {
14487 if (HistoCode ==
"H_LFN_RuDs") {
14490 if (HistoCode ==
"H_HFN_RuDs") {
14493 if (HistoCode ==
"H_SCs_RuDs") {
14496 if (HistoCode ==
"H2LFccMosMatrix") {
14499 if (HistoCode ==
"H2HFccMosMatrix") {
14502 if (HistoCode ==
"H2CorccInStins") {
14509 Double_t val_max = (Double_t)0.;
14510 Double_t val_max_proj = (Double_t)2000.;
14512 if (HistoCode ==
"D_NOE_ChNb") {
14515 if (HistoCode ==
"D_NOE_ChDs") {
14516 val_max = val_max_proj;
14518 if (HistoCode ==
"D_Ped_ChNb") {
14521 if (HistoCode ==
"D_Ped_ChDs") {
14522 val_max = val_max_proj;
14524 if (HistoCode ==
"D_TNo_ChNb") {
14527 if (HistoCode ==
"D_TNo_ChDs") {
14528 val_max = val_max_proj;
14530 if (HistoCode ==
"D_MCs_ChNb") {
14533 if (HistoCode ==
"D_MCs_ChDs") {
14534 val_max = val_max_proj;
14536 if (HistoCode ==
"D_LFN_ChNb") {
14539 if (HistoCode ==
"D_LFN_ChDs") {
14540 val_max = val_max_proj;
14542 if (HistoCode ==
"D_HFN_ChNb") {
14545 if (HistoCode ==
"D_HFN_ChDs") {
14546 val_max = val_max_proj;
14548 if (HistoCode ==
"D_SCs_ChNb") {
14551 if (HistoCode ==
"D_SCs_ChDs") {
14552 val_max = val_max_proj;
14554 if (HistoCode ==
"D_MSp_SpNb") {
14557 if (HistoCode ==
"D_MSp_SpDs") {
14558 val_max = val_max_proj;
14560 if (HistoCode ==
"D_SSp_SpNb") {
14563 if (HistoCode ==
"D_SSp_SpDs") {
14564 val_max = val_max_proj;
14566 if (HistoCode ==
"D_Adc_EvNb") {
14569 if (HistoCode ==
"D_Adc_EvDs") {
14570 val_max = val_max_proj;
14572 if (HistoCode ==
"H_Ped_Date") {
14575 if (HistoCode ==
"H_TNo_Date") {
14578 if (HistoCode ==
"H_MCs_Date") {
14581 if (HistoCode ==
"H_LFN_Date") {
14584 if (HistoCode ==
"H_HFN_Date") {
14587 if (HistoCode ==
"H_SCs_Date") {
14590 if (HistoCode ==
"H_Ped_RuDs") {
14593 if (HistoCode ==
"H_TNo_RuDs") {
14596 if (HistoCode ==
"H_MCs_RuDs") {
14599 if (HistoCode ==
"H_LFN_RuDs") {
14602 if (HistoCode ==
"H_HFN_RuDs") {
14605 if (HistoCode ==
"H_SCs_RuDs") {
14608 if (HistoCode ==
"H2LFccMosMatrix") {
14611 if (HistoCode ==
"H2HFccMosMatrix") {
14614 if (HistoCode ==
"H2CorccInStins") {
14623 if (HistoCode ==
"D_NOE_ChNb") {
14626 if (HistoCode ==
"D_NOE_ChDs") {
14629 if (HistoCode ==
"D_Ped_ChNb") {
14632 if (HistoCode ==
"D_Ped_ChDs") {
14635 if (HistoCode ==
"D_TNo_ChNb") {
14638 if (HistoCode ==
"D_TNo_ChDs") {
14641 if (HistoCode ==
"D_MCs_ChNb") {
14644 if (HistoCode ==
"D_MCs_ChDs") {
14647 if (HistoCode ==
"D_LFN_ChNb") {
14650 if (HistoCode ==
"D_LFN_ChDs") {
14653 if (HistoCode ==
"D_HFN_ChNb") {
14656 if (HistoCode ==
"D_HFN_ChDs") {
14659 if (HistoCode ==
"D_SCs_ChNb") {
14662 if (HistoCode ==
"D_SCs_ChDs") {
14665 if (HistoCode ==
"D_MSp_SpNb") {
14668 if (HistoCode ==
"D_MSp_SpDs") {
14671 if (HistoCode ==
"D_SSp_SpNb") {
14674 if (HistoCode ==
"D_SSp_SpDs") {
14677 if (HistoCode ==
"D_Adc_EvNb") {
14680 if (HistoCode ==
"D_Adc_EvDs") {
14683 if (HistoCode ==
"H_Ped_Date") {
14686 if (HistoCode ==
"H_TNo_Date") {
14689 if (HistoCode ==
"H_MCs_Date") {
14692 if (HistoCode ==
"H_LFN_Date") {
14695 if (HistoCode ==
"H_HFN_Date") {
14698 if (HistoCode ==
"H_SCs_Date") {
14701 if (HistoCode ==
"H_Ped_RuDs") {
14704 if (HistoCode ==
"H_TNo_RuDs") {
14707 if (HistoCode ==
"H_MCs_RuDs") {
14710 if (HistoCode ==
"H_LFN_RuDs") {
14713 if (HistoCode ==
"H_HFN_RuDs") {
14716 if (HistoCode ==
"H_SCs_RuDs") {
14719 if (HistoCode ==
"H2LFccMosMatrix") {
14722 if (HistoCode ==
"H2HFccMosMatrix") {
14725 if (HistoCode ==
"H2CorccInStins") {
14733 if (HistoCode ==
"D_NOE_ChNb") {
14736 if (HistoCode ==
"D_NOE_ChDs") {
14739 if (HistoCode ==
"D_Ped_ChNb") {
14742 if (HistoCode ==
"D_Ped_ChDs") {
14745 if (HistoCode ==
"D_TNo_ChNb") {
14748 if (HistoCode ==
"D_TNo_ChDs") {
14751 if (HistoCode ==
"D_MCs_ChNb") {
14754 if (HistoCode ==
"D_MCs_ChDs") {
14757 if (HistoCode ==
"D_LFN_ChNb") {
14760 if (HistoCode ==
"D_LFN_ChDs") {
14763 if (HistoCode ==
"D_HFN_ChNb") {
14766 if (HistoCode ==
"D_HFN_ChDs") {
14769 if (HistoCode ==
"D_SCs_ChNb") {
14772 if (HistoCode ==
"D_SCs_ChDs") {
14775 if (HistoCode ==
"D_MSp_SpNb") {
14778 if (HistoCode ==
"D_MSp_SpDs") {
14781 if (HistoCode ==
"D_SSp_SpNb") {
14784 if (HistoCode ==
"D_SSp_SpDs") {
14787 if (HistoCode ==
"D_Adc_EvNb") {
14790 if (HistoCode ==
"D_Adc_EvDs") {
14793 if (HistoCode ==
"H_Ped_Date") {
14796 if (HistoCode ==
"H_TNo_Date") {
14799 if (HistoCode ==
"H_MCs_Date") {
14802 if (HistoCode ==
"H_LFN_Date") {
14805 if (HistoCode ==
"H_HFN_Date") {
14808 if (HistoCode ==
"H_SCs_Date") {
14811 if (HistoCode ==
"H_Ped_RuDs") {
14814 if (HistoCode ==
"H_TNo_RuDs") {
14817 if (HistoCode ==
"H_MCs_RuDs") {
14820 if (HistoCode ==
"H_LFN_RuDs") {
14823 if (HistoCode ==
"H_HFN_RuDs") {
14826 if (HistoCode ==
"H_SCs_RuDs") {
14829 if (HistoCode ==
"H2LFccMosMatrix") {
14832 if (HistoCode ==
"H2HFccMosMatrix") {
14835 if (HistoCode ==
"H2CorccInStins") {
14847 if (HistoCode ==
"D_NOE_ChNb") {
14850 if (HistoCode ==
"D_NOE_ChDs") {
14853 if (HistoCode ==
"D_Ped_ChNb") {
14856 if (HistoCode ==
"D_Ped_ChDs") {
14859 if (HistoCode ==
"D_TNo_ChNb") {
14862 if (HistoCode ==
"D_TNo_ChDs") {
14865 if (HistoCode ==
"D_MCs_ChNb") {
14868 if (HistoCode ==
"D_MCs_ChDs") {
14871 if (HistoCode ==
"D_LFN_ChNb") {
14874 if (HistoCode ==
"D_LFN_ChDs") {
14877 if (HistoCode ==
"D_HFN_ChNb") {
14880 if (HistoCode ==
"D_HFN_ChDs") {
14883 if (HistoCode ==
"D_SCs_ChNb") {
14886 if (HistoCode ==
"D_SCs_ChDs") {
14889 if (HistoCode ==
"D_MSp_SpNb") {
14892 if (HistoCode ==
"D_MSp_SpDs") {
14895 if (HistoCode ==
"D_SSp_SpNb") {
14898 if (HistoCode ==
"D_SSp_SpDs") {
14901 if (HistoCode ==
"D_Adc_EvNb") {
14904 if (HistoCode ==
"D_Adc_EvDs") {
14907 if (HistoCode ==
"H_Ped_Date") {
14910 if (HistoCode ==
"H_TNo_Date") {
14913 if (HistoCode ==
"H_MCs_Date") {
14916 if (HistoCode ==
"H_LFN_Date") {
14919 if (HistoCode ==
"H_HFN_Date") {
14922 if (HistoCode ==
"H_SCs_Date") {
14925 if (HistoCode ==
"H_Ped_RuDs") {
14928 if (HistoCode ==
"H_TNo_RuDs") {
14931 if (HistoCode ==
"H_MCs_RuDs") {
14934 if (HistoCode ==
"H_LFN_RuDs") {
14937 if (HistoCode ==
"H_HFN_RuDs") {
14940 if (HistoCode ==
"H_SCs_RuDs") {
14947 TString xvar =
"(xvar not found)";
14954 if (HistoCode ==
"D_NOE_ChNb") {
14957 if (HistoCode ==
"D_NOE_ChDs") {
14960 if (HistoCode ==
"D_Ped_ChNb") {
14963 if (HistoCode ==
"D_Ped_ChDs") {
14966 if (HistoCode ==
"D_TNo_ChNb") {
14969 if (HistoCode ==
"D_TNo_ChDs") {
14972 if (HistoCode ==
"D_MCs_ChNb") {
14975 if (HistoCode ==
"D_MCs_ChDs") {
14978 if (HistoCode ==
"D_LFN_ChNb") {
14981 if (HistoCode ==
"D_LFN_ChDs") {
14984 if (HistoCode ==
"D_HFN_ChNb") {
14987 if (HistoCode ==
"D_HFN_ChDs") {
14990 if (HistoCode ==
"D_SCs_ChNb") {
14993 if (HistoCode ==
"D_SCs_ChDs") {
14996 if (HistoCode ==
"D_MSp_SpNb") {
14999 if (HistoCode ==
"D_MSp_SpDs") {
15002 if (HistoCode ==
"D_SSp_SpNb") {
15005 if (HistoCode ==
"D_SSp_SpDs") {
15008 if (HistoCode ==
"D_Adc_EvNb") {
15011 if (HistoCode ==
"D_Adc_EvDs") {
15014 if (HistoCode ==
"H_Ped_Date") {
15017 if (HistoCode ==
"H_TNo_Date") {
15020 if (HistoCode ==
"H_MCs_Date") {
15023 if (HistoCode ==
"H_LFN_Date") {
15026 if (HistoCode ==
"H_HFN_Date") {
15029 if (HistoCode ==
"H_SCs_Date") {
15032 if (HistoCode ==
"H_Ped_RuDs") {
15035 if (HistoCode ==
"H_TNo_RuDs") {
15038 if (HistoCode ==
"H_MCs_RuDs") {
15041 if (HistoCode ==
"H_LFN_RuDs") {
15044 if (HistoCode ==
"H_HFN_RuDs") {
15047 if (HistoCode ==
"H_SCs_RuDs") {
15060 if (HistoCode ==
"D_NOE_ChNb") {
15063 if (HistoCode ==
"D_NOE_ChDs") {
15066 if (HistoCode ==
"D_Ped_ChNb") {
15069 if (HistoCode ==
"D_Ped_ChDs") {
15072 if (HistoCode ==
"D_TNo_ChNb") {
15075 if (HistoCode ==
"D_TNo_ChDs") {
15078 if (HistoCode ==
"D_MCs_ChNb") {
15081 if (HistoCode ==
"D_MCs_ChDs") {
15084 if (HistoCode ==
"D_LFN_ChNb") {
15087 if (HistoCode ==
"D_LFN_ChDs") {
15090 if (HistoCode ==
"D_HFN_ChNb") {
15093 if (HistoCode ==
"D_HFN_ChDs") {
15096 if (HistoCode ==
"D_SCs_ChNb") {
15099 if (HistoCode ==
"D_SCs_ChDs") {
15102 if (HistoCode ==
"D_MSp_SpNb") {
15105 if (HistoCode ==
"D_MSp_SpDs") {
15108 if (HistoCode ==
"D_SSp_SpNb") {
15111 if (HistoCode ==
"D_Adc_EvDs") {
15114 if (HistoCode ==
"D_SSp_SpDs") {
15117 if (HistoCode ==
"D_Adc_EvNb") {
15120 if (HistoCode ==
"H_Ped_Date") {
15123 if (HistoCode ==
"H_TNo_Date") {
15126 if (HistoCode ==
"H_MCs_Date") {
15129 if (HistoCode ==
"H_LFN_Date") {
15132 if (HistoCode ==
"H_HFN_Date") {
15135 if (HistoCode ==
"H_SCs_Date") {
15138 if (HistoCode ==
"H_Ped_RuDs") {
15141 if (HistoCode ==
"H_TNo_RuDs") {
15144 if (HistoCode ==
"H_MCs_RuDs") {
15147 if (HistoCode ==
"H_LFN_RuDs") {
15150 if (HistoCode ==
"H_HFN_RuDs") {
15153 if (HistoCode ==
"H_SCs_RuDs") {
15160 TString yvar =
"(yvar not found)";
15167 if (HistoCode ==
"D_NOE_ChNb") {
15170 if (HistoCode ==
"D_NOE_ChDs") {
15173 if (HistoCode ==
"D_Ped_ChNb") {
15176 if (HistoCode ==
"D_Ped_ChDs") {
15179 if (HistoCode ==
"D_TNo_ChNb") {
15182 if (HistoCode ==
"D_TNo_ChDs") {
15185 if (HistoCode ==
"D_MCs_ChNb") {
15188 if (HistoCode ==
"D_MCs_ChDs") {
15191 if (HistoCode ==
"D_LFN_ChNb") {
15194 if (HistoCode ==
"D_LFN_ChDs") {
15197 if (HistoCode ==
"D_HFN_ChNb") {
15200 if (HistoCode ==
"D_HFN_ChDs") {
15203 if (HistoCode ==
"D_SCs_ChNb") {
15206 if (HistoCode ==
"D_SCs_ChDs") {
15209 if (HistoCode ==
"D_MSp_SpNb") {
15212 if (HistoCode ==
"D_MSp_SpDs") {
15215 if (HistoCode ==
"D_SSp_SpNb") {
15218 if (HistoCode ==
"D_SSp_SpDs") {
15221 if (HistoCode ==
"D_Adc_EvNb") {
15224 if (HistoCode ==
"D_Adc_EvDs") {
15227 if (HistoCode ==
"H_Ped_Date") {
15230 if (HistoCode ==
"H_TNo_Date") {
15233 if (HistoCode ==
"H_MCs_Date") {
15236 if (HistoCode ==
"H_LFN_Date") {
15239 if (HistoCode ==
"H_HFN_Date") {
15242 if (HistoCode ==
"H_SCs_Date") {
15245 if (HistoCode ==
"H_Ped_RuDs") {
15248 if (HistoCode ==
"H_TNo_RuDs") {
15251 if (HistoCode ==
"H_MCs_RuDs") {
15254 if (HistoCode ==
"H_LFN_RuDs") {
15257 if (HistoCode ==
"H_HFN_RuDs") {
15260 if (HistoCode ==
"H_SCs_RuDs") {
15273 if (HistoCode ==
"D_NOE_ChNb") {
15276 if (HistoCode ==
"D_NOE_ChDs") {
15279 if (HistoCode ==
"D_Ped_ChNb") {
15282 if (HistoCode ==
"D_Ped_ChDs") {
15285 if (HistoCode ==
"D_TNo_ChNb") {
15288 if (HistoCode ==
"D_TNo_ChDs") {
15291 if (HistoCode ==
"D_MCs_ChNb") {
15294 if (HistoCode ==
"D_MCs_ChDs") {
15297 if (HistoCode ==
"D_LFN_ChNb") {
15300 if (HistoCode ==
"D_LFN_ChDs") {
15303 if (HistoCode ==
"D_HFN_ChNb") {
15306 if (HistoCode ==
"D_HFN_ChDs") {
15309 if (HistoCode ==
"D_SCs_ChNb") {
15312 if (HistoCode ==
"D_SCs_ChDs") {
15315 if (HistoCode ==
"D_MSp_SpNb") {
15318 if (HistoCode ==
"D_MSp_SpDs") {
15321 if (HistoCode ==
"D_SSp_SpNb") {
15324 if (HistoCode ==
"D_SSp_SpDs") {
15327 if (HistoCode ==
"D_Adc_EvNb") {
15330 if (HistoCode ==
"D_Adc_EvDs") {
15333 if (HistoCode ==
"H_Ped_Date") {
15336 if (HistoCode ==
"H_TNo_Date") {
15339 if (HistoCode ==
"H_MCs_Date") {
15342 if (HistoCode ==
"H_LFN_Date") {
15345 if (HistoCode ==
"H_HFN_Date") {
15348 if (HistoCode ==
"H_SCs_Date") {
15351 if (HistoCode ==
"H_Ped_RuDs") {
15354 if (HistoCode ==
"H_TNo_RuDs") {
15357 if (HistoCode ==
"H_MCs_RuDs") {
15360 if (HistoCode ==
"H_LFN_RuDs") {
15363 if (HistoCode ==
"H_HFN_RuDs") {
15366 if (HistoCode ==
"H_SCs_RuDs") {
15380 if (HistoCode ==
"D_NOE_ChNb") {
15383 if (HistoCode ==
"D_NOE_ChDs") {
15386 if (HistoCode ==
"D_Ped_ChNb") {
15389 if (HistoCode ==
"D_Ped_ChDs") {
15392 if (HistoCode ==
"D_TNo_ChNb") {
15395 if (HistoCode ==
"D_TNo_ChDs") {
15398 if (HistoCode ==
"D_MCs_ChNb") {
15401 if (HistoCode ==
"D_MCs_ChDs") {
15404 if (HistoCode ==
"D_LFN_ChNb") {
15407 if (HistoCode ==
"D_LFN_ChDs") {
15410 if (HistoCode ==
"D_HFN_ChNb") {
15413 if (HistoCode ==
"D_HFN_ChDs") {
15416 if (HistoCode ==
"D_SCs_ChNb") {
15419 if (HistoCode ==
"D_SCs_ChDs") {
15422 if (HistoCode ==
"D_MSp_SpNb") {
15425 if (HistoCode ==
"D_MSp_SpDs") {
15428 if (HistoCode ==
"D_SSp_SpNb") {
15431 if (HistoCode ==
"D_SSp_SpDs") {
15434 if (HistoCode ==
"D_Adc_EvNb") {
15437 if (HistoCode ==
"D_Adc_EvDs") {
15440 if (HistoCode ==
"H_Ped_Date") {
15443 if (HistoCode ==
"H_TNo_Date") {
15446 if (HistoCode ==
"H_MCs_Date") {
15449 if (HistoCode ==
"H_LFN_Date") {
15452 if (HistoCode ==
"H_HFN_Date") {
15455 if (HistoCode ==
"H_SCs_Date") {
15458 if (HistoCode ==
"H_Ped_RuDs") {
15461 if (HistoCode ==
"H_TNo_RuDs") {
15464 if (HistoCode ==
"H_MCs_RuDs") {
15467 if (HistoCode ==
"H_LFN_RuDs") {
15470 if (HistoCode ==
"H_HFN_RuDs") {
15473 if (HistoCode ==
"H_SCs_RuDs") {
15483 memo_flag =
"(no memo_flag info)";
15485 Int_t memo_flag_number = -1;
15496 if (memo_flag_number == 0) {
15497 memo_flag =
"Free";
15499 if (memo_flag_number >= 1) {
15500 memo_flag =
"Busy";
15511 memo_flag =
"(no memo_flag info)";
15513 Int_t memo_flag_number = -1;
15520 if (HistoCode ==
"D_NOE_ChNb") {
15523 if (HistoCode ==
"D_NOE_ChDs") {
15526 if (HistoCode ==
"D_Ped_ChNb") {
15529 if (HistoCode ==
"D_Ped_ChDs") {
15532 if (HistoCode ==
"D_TNo_ChNb") {
15535 if (HistoCode ==
"D_TNo_ChDs") {
15538 if (HistoCode ==
"D_MCs_ChNb") {
15541 if (HistoCode ==
"D_MCs_ChDs") {
15544 if (HistoCode ==
"D_LFN_ChNb") {
15547 if (HistoCode ==
"D_LFN_ChDs") {
15550 if (HistoCode ==
"D_HFN_ChNb") {
15553 if (HistoCode ==
"D_HFN_ChDs") {
15556 if (HistoCode ==
"D_SCs_ChNb") {
15559 if (HistoCode ==
"D_SCs_ChDs") {
15562 if (HistoCode ==
"D_MSp_SpNb") {
15565 if (HistoCode ==
"D_MSp_SpDs") {
15568 if (HistoCode ==
"D_SSp_SpNb") {
15571 if (HistoCode ==
"D_SSp_SpDs") {
15574 if (HistoCode ==
"D_Adc_EvNb") {
15577 if (HistoCode ==
"D_Adc_EvDs") {
15580 if (HistoCode ==
"H_Ped_Date") {
15583 if (HistoCode ==
"H_TNo_Date") {
15586 if (HistoCode ==
"H_MCs_Date") {
15589 if (HistoCode ==
"H_LFN_Date") {
15592 if (HistoCode ==
"H_HFN_Date") {
15595 if (HistoCode ==
"H_SCs_Date") {
15598 if (HistoCode ==
"H_Ped_RuDs") {
15601 if (HistoCode ==
"H_TNo_RuDs") {
15604 if (HistoCode ==
"H_MCs_RuDs") {
15607 if (HistoCode ==
"H_LFN_RuDs") {
15610 if (HistoCode ==
"H_HFN_RuDs") {
15613 if (HistoCode ==
"H_SCs_RuDs") {
15618 if (memo_flag_number == 0) {
15619 memo_flag =
"Free";
15621 if (memo_flag_number == 1) {
15622 memo_flag =
"Busy";
15629 const TString& HistoCode,
const TString& opt_plot,
const TString& canvas_name, UInt_t canv_w, UInt_t canv_h) {
15632 TCanvas* main_canvas =
nullptr;
15635 fCanvH1SamePlus =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15640 if (HistoCode ==
"D_NOE_ChNb") {
15641 fCanvD_NOE_ChNb =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15645 if (HistoCode ==
"D_NOE_ChDs") {
15646 fCanvD_NOE_ChDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15650 if (HistoCode ==
"D_Ped_ChNb") {
15651 fCanvD_Ped_ChNb =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15655 if (HistoCode ==
"D_Ped_ChDs") {
15656 fCanvD_Ped_ChDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15660 if (HistoCode ==
"D_TNo_ChNb") {
15661 fCanvD_TNo_ChNb =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15665 if (HistoCode ==
"D_TNo_ChDs") {
15666 fCanvD_TNo_ChDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15670 if (HistoCode ==
"D_MCs_ChNb") {
15671 fCanvD_MCs_ChNb =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15675 if (HistoCode ==
"D_MCs_ChDs") {
15676 fCanvD_MCs_ChDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15680 if (HistoCode ==
"D_LFN_ChNb") {
15681 fCanvD_LFN_ChNb =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15685 if (HistoCode ==
"D_LFN_ChDs") {
15686 fCanvD_LFN_ChDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15690 if (HistoCode ==
"D_HFN_ChNb") {
15691 fCanvD_HFN_ChNb =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15695 if (HistoCode ==
"D_HFN_ChDs") {
15696 fCanvD_HFN_ChDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15700 if (HistoCode ==
"D_SCs_ChNb") {
15701 fCanvD_SCs_ChNb =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15705 if (HistoCode ==
"D_SCs_ChDs") {
15706 fCanvD_SCs_ChDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15711 if (HistoCode ==
"D_MSp_SpNb") {
15712 fCanvD_MSp_SpNb =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15716 if (HistoCode ==
"D_MSp_SpDs") {
15717 fCanvD_MSp_SpDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15721 if (HistoCode ==
"D_SSp_SpNb") {
15722 fCanvD_SSp_SpNb =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15726 if (HistoCode ==
"D_SSp_SpDs") {
15727 fCanvD_SSp_SpDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15732 if (HistoCode ==
"D_Adc_EvNb") {
15733 fCanvD_Adc_EvNb =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15737 if (HistoCode ==
"D_Adc_EvDs") {
15738 fCanvD_Adc_EvDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15743 if (HistoCode ==
"H_Ped_Date") {
15744 fCanvH_Ped_Date =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15748 if (HistoCode ==
"H_TNo_Date") {
15749 fCanvH_TNo_Date =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15753 if (HistoCode ==
"H_MCs_Date") {
15754 fCanvH_MCs_Date =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15758 if (HistoCode ==
"H_LFN_Date") {
15759 fCanvH_LFN_Date =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15763 if (HistoCode ==
"H_HFN_Date") {
15764 fCanvH_HFN_Date =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15768 if (HistoCode ==
"H_SCs_Date") {
15769 fCanvH_SCs_Date =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15774 if (HistoCode ==
"H_Ped_RuDs") {
15775 fCanvH_Ped_RuDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15779 if (HistoCode ==
"H_TNo_RuDs") {
15780 fCanvH_TNo_RuDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15784 if (HistoCode ==
"H_MCs_RuDs") {
15785 fCanvH_MCs_RuDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15789 if (HistoCode ==
"H_LFN_RuDs") {
15790 fCanvH_LFN_RuDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15794 if (HistoCode ==
"H_HFN_RuDs") {
15795 fCanvH_HFN_RuDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15799 if (HistoCode ==
"H_SCs_RuDs") {
15800 fCanvH_SCs_RuDs =
new TCanvas(canvas_name.Data(), canvas_name.Data(), canv_w, canv_h);
15805 return main_canvas;
15826 if (HistoCode ==
"D_NOE_ChNb") {
15836 if (HistoCode ==
"D_NOE_ChDs")
15847 if (HistoCode ==
"D_Ped_ChNb") {
15857 if (HistoCode ==
"D_Ped_ChDs") {
15867 if (HistoCode ==
"D_TNo_ChNb") {
15877 if (HistoCode ==
"D_TNo_ChDs")
15888 if (HistoCode ==
"D_MCs_ChNb") {
15898 if (HistoCode ==
"D_MCs_ChDs") {
15908 if (HistoCode ==
"D_LFN_ChNb")
15919 if (HistoCode ==
"D_LFN_ChDs") {
15929 if (HistoCode ==
"D_HFN_ChNb") {
15939 if (HistoCode ==
"D_HFN_ChDs") {
15949 if (HistoCode ==
"D_SCs_ChNb")
15960 if (HistoCode ==
"D_SCs_ChDs") {
15970 if (HistoCode ==
"D_MSp_SpNb") {
15980 if (HistoCode ==
"D_MSp_SpDs") {
15990 if (HistoCode ==
"D_SSp_SpNb")
16001 if (HistoCode ==
"D_SSp_SpDs")
16012 if (HistoCode ==
"D_Adc_EvDs") {
16022 if (HistoCode ==
"D_Adc_EvNb") {
16032 if (HistoCode ==
"H_Ped_Date")
16042 if (HistoCode ==
"H_TNo_Date") {
16051 if (HistoCode ==
"H_MCs_Date") {
16061 if (HistoCode ==
"H_LFN_Date")
16071 if (HistoCode ==
"H_HFN_Date") {
16080 if (HistoCode ==
"H_SCs_Date") {
16090 if (HistoCode ==
"H_Ped_RuDs")
16100 if (HistoCode ==
"H_TNo_RuDs") {
16109 if (HistoCode ==
"H_MCs_RuDs") {
16119 if (HistoCode ==
"H_LFN_RuDs")
16129 if (HistoCode ==
"H_HFN_RuDs") {
16138 if (HistoCode ==
"H_SCs_RuDs") {
16152 TCanvas* main_canvas =
nullptr;
16159 if (HistoCode ==
"D_NOE_ChNb") {
16162 if (HistoCode ==
"D_NOE_ChDs") {
16165 if (HistoCode ==
"D_Ped_ChNb") {
16168 if (HistoCode ==
"D_Ped_ChDs") {
16171 if (HistoCode ==
"D_TNo_ChNb") {
16174 if (HistoCode ==
"D_TNo_ChDs") {
16177 if (HistoCode ==
"D_MCs_ChNb") {
16180 if (HistoCode ==
"D_MCs_ChDs") {
16183 if (HistoCode ==
"D_LFN_ChNb") {
16186 if (HistoCode ==
"D_LFN_ChDs") {
16189 if (HistoCode ==
"D_HFN_ChNb") {
16192 if (HistoCode ==
"D_HFN_ChDs") {
16195 if (HistoCode ==
"D_SCs_ChNb") {
16198 if (HistoCode ==
"D_SCs_ChDs") {
16201 if (HistoCode ==
"D_MSp_SpNb") {
16204 if (HistoCode ==
"D_MSp_SpDs") {
16207 if (HistoCode ==
"D_SSp_SpNb") {
16210 if (HistoCode ==
"D_SSp_SpDs") {
16213 if (HistoCode ==
"D_Adc_EvNb") {
16216 if (HistoCode ==
"D_Adc_EvDs") {
16219 if (HistoCode ==
"H_Ped_Date") {
16222 if (HistoCode ==
"H_TNo_Date") {
16225 if (HistoCode ==
"H_MCs_Date") {
16228 if (HistoCode ==
"H_LFN_Date") {
16231 if (HistoCode ==
"H_HFN_Date") {
16234 if (HistoCode ==
"H_SCs_Date") {
16237 if (HistoCode ==
"H_Ped_RuDs") {
16240 if (HistoCode ==
"H_TNo_RuDs") {
16243 if (HistoCode ==
"H_MCs_RuDs") {
16246 if (HistoCode ==
"H_LFN_RuDs") {
16249 if (HistoCode ==
"H_HFN_RuDs") {
16252 if (HistoCode ==
"H_SCs_RuDs") {
16256 return main_canvas;
16268 std::cout <<
"TEcnaHistos::PlotCloneOfCurrentCanvas()> Last canvas has been removed. No clone can be done." 16270 <<
" Please, display the canvas again." <<
fTTBELL << std::endl;
16273 std::cout <<
"TEcnaHistos::PlotCloneOfCurrentCanvas()> No canvas has been created. No clone can be done." <<
fTTBELL 16282 TVirtualPad* main_subpad =
nullptr;
16288 fCanvH1SamePlus->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16295 if (HistoCode ==
"D_NOE_ChNb") {
16296 fCanvD_NOE_ChNb->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16302 if (HistoCode ==
"D_NOE_ChDs") {
16303 fCanvD_NOE_ChDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16309 if (HistoCode ==
"D_Ped_ChNb") {
16310 fCanvD_Ped_ChNb->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16316 if (HistoCode ==
"D_Ped_ChDs") {
16317 fCanvD_Ped_ChDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16323 if (HistoCode ==
"D_TNo_ChNb") {
16324 fCanvD_TNo_ChNb->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16330 if (HistoCode ==
"D_TNo_ChDs") {
16331 fCanvD_TNo_ChDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16337 if (HistoCode ==
"D_MCs_ChNb") {
16338 fCanvD_MCs_ChNb->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16344 if (HistoCode ==
"D_MCs_ChDs") {
16345 fCanvD_MCs_ChDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16351 if (HistoCode ==
"D_LFN_ChNb") {
16352 fCanvD_LFN_ChNb->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16358 if (HistoCode ==
"D_LFN_ChDs") {
16359 fCanvD_LFN_ChDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16365 if (HistoCode ==
"D_HFN_ChNb") {
16366 fCanvD_HFN_ChNb->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16372 if (HistoCode ==
"D_HFN_ChDs") {
16373 fCanvD_HFN_ChDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16379 if (HistoCode ==
"D_SCs_ChNb") {
16380 fCanvD_SCs_ChNb->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16386 if (HistoCode ==
"D_SCs_ChDs") {
16387 fCanvD_SCs_ChDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16393 if (HistoCode ==
"D_MSp_SpNb") {
16394 fCanvD_MSp_SpNb->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16400 if (HistoCode ==
"D_MSp_SpDs") {
16401 fCanvD_MSp_SpDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16407 if (HistoCode ==
"D_SSp_SpNb") {
16408 fCanvD_SSp_SpNb->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16414 if (HistoCode ==
"D_SSp_SpDs") {
16415 fCanvD_SSp_SpDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16421 if (HistoCode ==
"D_Adc_EvNb") {
16422 fCanvD_Adc_EvNb->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16428 if (HistoCode ==
"D_Adc_EvDs") {
16429 fCanvD_Adc_EvDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16435 if (HistoCode ==
"H_Ped_Date") {
16436 fCanvH_Ped_Date->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16442 if (HistoCode ==
"H_TNo_Date") {
16443 fCanvH_TNo_Date->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16449 if (HistoCode ==
"H_MCs_Date") {
16450 fCanvH_MCs_Date->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16456 if (HistoCode ==
"H_LFN_Date") {
16457 fCanvH_LFN_Date->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16463 if (HistoCode ==
"H_HFN_Date") {
16464 fCanvH_HFN_Date->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16470 if (HistoCode ==
"H_SCs_Date") {
16471 fCanvH_SCs_Date->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16477 if (HistoCode ==
"H_Ped_RuDs") {
16478 fCanvH_Ped_RuDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16484 if (HistoCode ==
"H_TNo_RuDs") {
16485 fCanvH_TNo_RuDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16491 if (HistoCode ==
"H_MCs_RuDs") {
16492 fCanvH_MCs_RuDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16498 if (HistoCode ==
"H_LFN_RuDs") {
16499 fCanvH_LFN_RuDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16505 if (HistoCode ==
"H_HFN_RuDs") {
16506 fCanvH_HFN_RuDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16512 if (HistoCode ==
"H_SCs_RuDs") {
16513 fCanvH_SCs_RuDs->Connect(
"Closed()",
"TEcnaHistos",
this,
"DoCanvasClosed()");
16520 if (main_subpad ==
nullptr) {
16521 std::cout <<
"*TEcnaHistos::ActivePad(...)> main_subpad = " << main_subpad <<
". This canvas has been closed." 16525 return main_subpad;
16635 std::cout <<
"!TEcnaHistos::DoCanvasClosed(...)> WARNING: canvas has been closed." << std::endl;
16646 if (HistoCode ==
"D_NOE_ChNb") {
16649 if (HistoCode ==
"D_NOE_ChDs") {
16652 if (HistoCode ==
"D_Ped_ChNb") {
16655 if (HistoCode ==
"D_Ped_ChDs") {
16658 if (HistoCode ==
"D_TNo_ChNb") {
16661 if (HistoCode ==
"D_TNo_ChDs") {
16664 if (HistoCode ==
"D_MCs_ChNb") {
16667 if (HistoCode ==
"D_MCs_ChDs") {
16670 if (HistoCode ==
"D_LFN_ChNb") {
16673 if (HistoCode ==
"D_LFN_ChDs") {
16676 if (HistoCode ==
"D_HFN_ChNb") {
16679 if (HistoCode ==
"D_HFN_ChDs") {
16682 if (HistoCode ==
"D_SCs_ChNb") {
16685 if (HistoCode ==
"D_SCs_ChDs") {
16688 if (HistoCode ==
"D_MSp_SpNb") {
16691 if (HistoCode ==
"D_MSp_SpDs") {
16694 if (HistoCode ==
"D_SSp_SpNb") {
16697 if (HistoCode ==
"D_SSp_SpDs") {
16700 if (HistoCode ==
"D_Adc_EvNb") {
16703 if (HistoCode ==
"D_Adc_EvDs") {
16706 if (HistoCode ==
"H_Ped_Date") {
16709 if (HistoCode ==
"H_TNo_Date") {
16712 if (HistoCode ==
"H_MCs_Date") {
16715 if (HistoCode ==
"H_LFN_Date") {
16718 if (HistoCode ==
"H_HFN_Date") {
16721 if (HistoCode ==
"H_SCs_Date") {
16724 if (HistoCode ==
"H_Ped_RuDs") {
16727 if (HistoCode ==
"H_TNo_RuDs") {
16730 if (HistoCode ==
"H_MCs_RuDs") {
16733 if (HistoCode ==
"H_LFN_RuDs") {
16736 if (HistoCode ==
"H_HFN_RuDs") {
16739 if (HistoCode ==
"H_SCs_RuDs") {
16749 TPaveText* main_pavtxt =
nullptr;
16756 if (HistoCode ==
"D_NOE_ChNb") {
16759 if (HistoCode ==
"D_NOE_ChDs") {
16762 if (HistoCode ==
"D_Ped_ChNb") {
16765 if (HistoCode ==
"D_Ped_ChDs") {
16768 if (HistoCode ==
"D_TNo_ChNb") {
16771 if (HistoCode ==
"D_TNo_ChDs") {
16774 if (HistoCode ==
"D_MCs_ChNb") {
16777 if (HistoCode ==
"D_MCs_ChDs") {
16780 if (HistoCode ==
"D_LFN_ChNb") {
16783 if (HistoCode ==
"D_LFN_ChDs") {
16786 if (HistoCode ==
"D_HFN_ChNb") {
16789 if (HistoCode ==
"D_HFN_ChDs") {
16792 if (HistoCode ==
"D_SCs_ChNb") {
16795 if (HistoCode ==
"D_SCs_ChDs") {
16798 if (HistoCode ==
"D_MSp_SpNb") {
16801 if (HistoCode ==
"D_MSp_SpDs") {
16804 if (HistoCode ==
"D_SSp_SpNb") {
16807 if (HistoCode ==
"D_SSp_SpDs") {
16810 if (HistoCode ==
"D_Adc_EvNb") {
16813 if (HistoCode ==
"D_Adc_EvDs") {
16816 if (HistoCode ==
"H_Ped_Date") {
16819 if (HistoCode ==
"H_TNo_Date") {
16822 if (HistoCode ==
"H_MCs_Date") {
16825 if (HistoCode ==
"H_LFN_Date") {
16828 if (HistoCode ==
"H_HFN_Date") {
16831 if (HistoCode ==
"H_SCs_Date") {
16834 if (HistoCode ==
"H_Ped_RuDs") {
16837 if (HistoCode ==
"H_TNo_RuDs") {
16840 if (HistoCode ==
"H_MCs_RuDs") {
16843 if (HistoCode ==
"H_LFN_RuDs") {
16846 if (HistoCode ==
"H_HFN_RuDs") {
16849 if (HistoCode ==
"H_SCs_RuDs") {
16854 if (main_pavtxt ==
nullptr) {
16855 std::cout <<
"*TEcnaHistos::ActivePavTxt(...)> ERROR: main_pavtxt = " << main_pavtxt << std::endl;
16858 return main_pavtxt;
16883 const TString& HistoCode,
16884 const TString& opt_plot,
16885 const Int_t& arg_AlreadyRead) {
16890 h_his0->SetMarkerStyle(1);
16905 if (HistoCode ==
"D_NOE_ChNb") {
16918 if (HistoCode ==
"D_NOE_ChDs") {
16931 if (HistoCode ==
"D_Ped_ChNb") {
16944 if (HistoCode ==
"D_Ped_ChDs") {
16957 if (HistoCode ==
"D_TNo_ChNb") {
16970 if (HistoCode ==
"D_TNo_ChDs") {
16984 if (HistoCode ==
"D_MCs_ChNb") {
16997 if (HistoCode ==
"D_MCs_ChDs") {
17010 if (HistoCode ==
"D_LFN_ChNb") {
17023 if (HistoCode ==
"D_LFN_ChDs") {
17036 if (HistoCode ==
"D_HFN_ChNb") {
17049 if (HistoCode ==
"D_HFN_ChDs") {
17063 if (HistoCode ==
"D_SCs_ChNb") {
17076 if (HistoCode ==
"D_SCs_ChDs") {
17090 if (HistoCode ==
"D_MSp_SpNb") {
17091 if ((opt_plot ==
fOnlyOnePlot && arg_AlreadyRead == 0) ||
17097 h_his0->SetFillColor((Color_t)0);
17110 if (HistoCode ==
"D_MSp_SpDs") {
17111 if ((opt_plot ==
fOnlyOnePlot && arg_AlreadyRead == 0) ||
17117 h_his0->SetFillColor((Color_t)0);
17130 if (HistoCode ==
"D_SSp_SpNb") {
17131 if ((opt_plot ==
fOnlyOnePlot && arg_AlreadyRead == 0) ||
17137 h_his0->SetFillColor((Color_t)0);
17150 if (HistoCode ==
"D_SSp_SpDs") {
17151 if ((opt_plot ==
fOnlyOnePlot && arg_AlreadyRead == 0) ||
17157 h_his0->SetFillColor((Color_t)0);
17170 if (HistoCode ==
"D_Adc_EvNb") {
17182 gPad->SetGrid(1, 0);
17185 if (HistoCode ==
"D_Adc_EvDs") {
17199 if (HistoCode ==
"H_Ped_RuDs") {
17211 gPad->SetGrid(1, 1);
17214 if (HistoCode ==
"H_TNo_RuDs") {
17226 gPad->SetGrid(1, 1);
17229 if (HistoCode ==
"H_MCs_RuDs") {
17241 gPad->SetGrid(1, 1);
17244 if (HistoCode ==
"H_LFN_RuDs") {
17256 gPad->SetGrid(1, 1);
17259 if (HistoCode ==
"H_HFN_RuDs") {
17271 gPad->SetGrid(1, 1);
17274 if (HistoCode ==
"H_SCs_RuDs") {
17286 gPad->SetGrid(1, 1);
17306 gPad->SetGrid(1, 1);
17310 if (HistoCode ==
"H_Ped_Date") {
17322 gPad->SetGrid(1, 1);
17325 if (HistoCode ==
"H_TNo_Date") {
17337 gPad->SetGrid(1, 1);
17340 if (HistoCode ==
"H_MCs_Date") {
17352 gPad->SetGrid(1, 1);
17355 if (HistoCode ==
"H_LFN_Date") {
17367 gPad->SetGrid(1, 1);
17370 if (HistoCode ==
"H_HFN_Date") {
17382 gPad->SetGrid(1, 1);
17385 if (HistoCode ==
"H_SCs_Date") {
17397 gPad->SetGrid(1, 1);
17412 if (HistoCode ==
"D_NOE_ChNb") {
17415 if (HistoCode ==
"D_NOE_ChDs") {
17418 if (HistoCode ==
"D_Ped_ChNb") {
17421 if (HistoCode ==
"D_Ped_ChDs") {
17424 if (HistoCode ==
"D_TNo_ChNb") {
17427 if (HistoCode ==
"D_TNo_ChDs") {
17430 if (HistoCode ==
"D_MCs_ChNb") {
17433 if (HistoCode ==
"D_MCs_ChDs") {
17436 if (HistoCode ==
"D_LFN_ChNb") {
17439 if (HistoCode ==
"D_LFN_ChDs") {
17442 if (HistoCode ==
"D_HFN_ChNb") {
17445 if (HistoCode ==
"D_HFN_ChDs") {
17448 if (HistoCode ==
"D_SCs_ChNb") {
17451 if (HistoCode ==
"D_SCs_ChDs") {
17454 if (HistoCode ==
"D_MSp_SpNb") {
17457 if (HistoCode ==
"D_MSp_SpDs") {
17460 if (HistoCode ==
"D_SSp_SpNb") {
17463 if (HistoCode ==
"D_SSp_SpDs") {
17466 if (HistoCode ==
"D_Adc_EvNb") {
17469 if (HistoCode ==
"D_Adc_EvDs") {
17472 if (HistoCode ==
"H_Ped_Date") {
17475 if (HistoCode ==
"H_TNo_Date") {
17478 if (HistoCode ==
"H_MCs_Date") {
17481 if (HistoCode ==
"H_LFN_Date") {
17484 if (HistoCode ==
"H_HFN_Date") {
17487 if (HistoCode ==
"H_SCs_Date") {
17490 if (HistoCode ==
"H_Ped_RuDs") {
17493 if (HistoCode ==
"H_TNo_RuDs") {
17496 if (HistoCode ==
"H_MCs_RuDs") {
17499 if (HistoCode ==
"H_LFN_RuDs") {
17502 if (HistoCode ==
"H_HFN_RuDs") {
17505 if (HistoCode ==
"H_SCs_RuDs") {
17515 TColor* my_color =
new TColor();
17518 if (DeeEndcap ==
"EE+") {
17519 if (DeeDir ==
"right" && QuadType ==
"top") {
17522 if (DeeDir ==
"right" && QuadType ==
"bottom") {
17525 if (DeeDir ==
"left" && QuadType ==
"top") {
17526 couleur = (Color_t)my_color->GetColor(
"#006600");
17528 if (DeeDir ==
"left" && QuadType ==
"bottom") {
17529 couleur = (Color_t)my_color->GetColor(
"#CC3300");
17532 if (DeeEndcap ==
"EE-") {
17533 if (DeeDir ==
"right" && QuadType ==
"top") {
17534 couleur = (Color_t)my_color->GetColor(
"#008800");
17536 if (DeeDir ==
"right" && QuadType ==
"bottom") {
17537 couleur = (Color_t)my_color->GetColor(
"#EE5500");
17539 if (DeeDir ==
"left" && QuadType ==
"top") {
17542 if (DeeDir ==
"left" && QuadType ==
"bottom") {
17574 graph->SetMarkerStyle(1);
17576 graph->SetMarkerStyle(20);
17599 std::cout <<
"TEcnaHistos::NewCanvas(...)> *** ERROR *** " << opt_plot.Data() <<
": " 17600 <<
"unknown option for NewCanvas. Only " <<
fSameOnePlot <<
" option is accepted." <<
fTTBELL 17620 if (HistoCode ==
"D_NOE_ChNb") {
17631 if (HistoCode ==
"D_NOE_ChDs") {
17642 if (HistoCode ==
"D_Ped_ChNb")
17654 if (HistoCode ==
"D_Ped_ChDs") {
17665 if (HistoCode ==
"D_TNo_ChNb") {
17676 if (HistoCode ==
"D_TNo_ChDs") {
17687 if (HistoCode ==
"D_MCs_ChNb")
17699 if (HistoCode ==
"D_MCs_ChDs") {
17710 if (HistoCode ==
"D_LFN_ChNb") {
17721 if (HistoCode ==
"D_LFN_ChDs")
17733 if (HistoCode ==
"D_HFN_ChNb") {
17744 if (HistoCode ==
"D_HFN_ChDs") {
17755 if (HistoCode ==
"D_SCs_ChNb") {
17766 if (HistoCode ==
"D_SCs_ChDs")
17778 if (HistoCode ==
"D_MSp_SpNb") {
17789 if (HistoCode ==
"D_MSp_SpDs") {
17800 if (HistoCode ==
"D_SSp_SpNb") {
17811 if (HistoCode ==
"D_SSp_SpDs") {
17822 if (HistoCode ==
"D_Adc_EvNb")
17834 if (HistoCode ==
"D_Adc_EvDs") {
17845 if (HistoCode ==
"H_Ped_Date") {
17856 if (HistoCode ==
"H_TNo_Date") {
17867 if (HistoCode ==
"H_MCs_Date")
17879 if (HistoCode ==
"H_LFN_Date") {
17890 if (HistoCode ==
"H_HFN_Date") {
17901 if (HistoCode ==
"H_SCs_Date") {
17912 if (HistoCode ==
"H_Ped_RuDs") {
17923 if (HistoCode ==
"H_TNo_RuDs") {
17934 if (HistoCode ==
"H_MCs_RuDs")
17946 if (HistoCode ==
"H_LFN_RuDs") {
17957 if (HistoCode ==
"H_HFN_RuDs") {
17968 if (HistoCode ==
"H_SCs_RuDs") {
17984 const TString& CorOrCov,
17985 const Int_t& StexStinEcna,
17986 const Int_t& MatrixBinIndex,
17987 const Int_t& MatSize,
17988 const TMatrixD& read_matrix) {
17991 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