826 int indexHistogram = -1;
832 const int histNrBins = histLimits.
nrBins;
840 histName = l1ExtraObject +
"_Count_" + std::to_string(iCount);
841 histTitle = l1ExtraObject +
": count " + std::to_string(iCount);
861 const int histNrBins = histLimits.
nrBins;
865 histName = l1ExtraObject +
"_NrObjectsPerEvent";
866 histTitle = l1ExtraObject +
": number of objects per event";
881 std::string quantityLongName =
" transverse energy ";
885 quantityLongName =
" transverse momentum ";
891 const int histNrBinsET = histLimits.
nrBins;
894 const std::vector<float>& binThresholdsET = histLimits.
binThresholds;
896 float* binThresholdsETf;
897 size_t sizeBinThresholdsET = binThresholdsET.size();
898 binThresholdsETf =
new float[sizeBinThresholdsET];
899 copy(binThresholdsET.begin(), binThresholdsET.end(), binThresholdsETf);
901 LogDebug(
"L1ExtraDQM") <<
"\n PT/ET histogram for " << l1ExtraObject <<
"\n histNrBinsET = " << histNrBinsET
902 <<
"\n histMinValueET = " << histMinValueET <<
"\n histMaxValueET = " << histMaxValueET
903 <<
"\n Last bin value represents the upper limit of the histogram" << std::endl;
904 for (
size_t iBin = 0; iBin < sizeBinThresholdsET; ++iBin) {
905 LogTrace(
"L1ExtraDQM") <<
"Bin " << iBin <<
": " <<
quantity <<
" = " << binThresholdsETf[iBin] <<
" GeV"
909 histName = l1ExtraObject +
"_" +
quantity;
919 histName = l1ExtraObject +
"_Count_" + std::to_string(iCount);
920 histTitle = l1ExtraObject +
": count " + std::to_string(iCount);
941 delete[] binThresholdsETf;
952 const int histNrBinsPhi = histLimits.
nrBins;
955 const std::vector<float>& binThresholdsPhi = histLimits.
binThresholds;
957 float* binThresholdsPhif;
958 size_t sizeBinThresholdsPhi = binThresholdsPhi.size();
959 binThresholdsPhif =
new float[sizeBinThresholdsPhi];
960 copy(binThresholdsPhi.begin(), binThresholdsPhi.end(), binThresholdsPhif);
962 LogDebug(
"L1ExtraDQM") <<
"\n phi histogram for " << l1ExtraObject <<
"\n histNrBinsPhi = " << histNrBinsPhi
963 <<
"\n histMinValuePhi = " << histMinValuePhi <<
"\n histMaxValuePhi = " << histMaxValuePhi
964 <<
"\n Last bin value represents the upper limit of the histogram" << std::endl;
965 for (
size_t iBin = 0; iBin < sizeBinThresholdsPhi; ++iBin) {
966 LogTrace(
"L1ExtraDQM") <<
"Bin " << iBin <<
": phi = " << binThresholdsPhif[iBin] <<
" deg" << std::endl;
969 histName = l1ExtraObject +
"_phi";
970 histTitle = l1ExtraObject +
": phi distribution ";
974 m_monElement.push_back(ibooker.book1D(histName,
histTitle, histNrBinsPhi, histMinValuePhi, histMaxValuePhi));
981 delete[] binThresholdsPhif;
993 const int histNrBinsEta = histLimits.
nrBins;
996 const std::vector<float>& binThresholdsEta = histLimits.
binThresholds;
999 float* binThresholdsEtaf;
1000 size_t sizeBinThresholdsEta = binThresholdsEta.size();
1001 binThresholdsEtaf =
new float[sizeBinThresholdsEta];
1002 copy(binThresholdsEta.begin(), binThresholdsEta.end(), binThresholdsEtaf);
1004 LogDebug(
"L1ExtraDQM") <<
"\n eta histogram for " << l1ExtraObject <<
"\n histNrBinsEta = " << histNrBinsEta
1005 <<
"\n histMinValueEta = " << histMinValueEta <<
"\n histMaxValueEta = " << histMaxValueEta
1006 <<
"\n Last bin value represents the upper limit of the histogram" << std::endl;
1007 for (
size_t iBin = 0; iBin < sizeBinThresholdsEta; ++iBin) {
1008 LogTrace(
"L1ExtraDQM") <<
"Bin " << iBin <<
": eta = " << binThresholdsEtaf[iBin] << std::endl;
1011 histName = l1ExtraObject +
"_eta";
1012 histTitle = l1ExtraObject +
": eta distribution ";
1023 delete[] binThresholdsEtaf;