828 int indexHistogram = -1;
834 const int histNrBins = histLimits.
nrBins;
863 const int histNrBins = histLimits.
nrBins;
867 histName = l1ExtraObject +
"_NrObjectsPerEvent";
868 histTitle = l1ExtraObject +
": number of objects per event";
883 std::string quantityLongName =
" transverse energy ";
887 quantityLongName =
" transverse momentum ";
893 const int histNrBinsET = histLimits.
nrBins;
896 const std::vector<float>& binThresholdsET = histLimits.
binThresholds;
898 float* binThresholdsETf;
899 size_t sizeBinThresholdsET = binThresholdsET.size();
900 binThresholdsETf =
new float[sizeBinThresholdsET];
901 copy(binThresholdsET.begin(), binThresholdsET.end(), binThresholdsETf);
903 LogDebug(
"L1ExtraDQM") <<
"\n PT/ET histogram for " << l1ExtraObject <<
"\n histNrBinsET = " << histNrBinsET
904 <<
"\n histMinValueET = " << histMinValueET <<
"\n histMaxValueET = " << histMaxValueET
905 <<
"\n Last bin value represents the upper limit of the histogram" << std::endl;
906 for (
size_t iBin = 0; iBin < sizeBinThresholdsET; ++iBin) {
907 LogTrace(
"L1ExtraDQM") <<
"Bin " << iBin <<
": " <<
quantity <<
" = " << binThresholdsETf[iBin] <<
" GeV" 911 histName = l1ExtraObject +
"_" +
quantity;
943 delete[] binThresholdsETf;
954 const int histNrBinsPhi = histLimits.
nrBins;
957 const std::vector<float>& binThresholdsPhi = histLimits.
binThresholds;
959 float* binThresholdsPhif;
960 size_t sizeBinThresholdsPhi = binThresholdsPhi.size();
961 binThresholdsPhif =
new float[sizeBinThresholdsPhi];
962 copy(binThresholdsPhi.begin(), binThresholdsPhi.end(), binThresholdsPhif);
964 LogDebug(
"L1ExtraDQM") <<
"\n phi histogram for " << l1ExtraObject <<
"\n histNrBinsPhi = " << histNrBinsPhi
965 <<
"\n histMinValuePhi = " << histMinValuePhi <<
"\n histMaxValuePhi = " << histMaxValuePhi
966 <<
"\n Last bin value represents the upper limit of the histogram" << std::endl;
967 for (
size_t iBin = 0; iBin < sizeBinThresholdsPhi; ++iBin) {
968 LogTrace(
"L1ExtraDQM") <<
"Bin " << iBin <<
": phi = " << binThresholdsPhif[iBin] <<
" deg" << std::endl;
971 histName = l1ExtraObject +
"_phi";
972 histTitle = l1ExtraObject +
": phi distribution ";
983 delete[] binThresholdsPhif;
995 const int histNrBinsEta = histLimits.
nrBins;
998 const std::vector<float>& binThresholdsEta = histLimits.
binThresholds;
1001 float* binThresholdsEtaf;
1002 size_t sizeBinThresholdsEta = binThresholdsEta.size();
1003 binThresholdsEtaf =
new float[sizeBinThresholdsEta];
1004 copy(binThresholdsEta.begin(), binThresholdsEta.end(), binThresholdsEtaf);
1006 LogDebug(
"L1ExtraDQM") <<
"\n eta histogram for " << l1ExtraObject <<
"\n histNrBinsEta = " << histNrBinsEta
1007 <<
"\n histMinValueEta = " << histMinValueEta <<
"\n histMaxValueEta = " << histMaxValueEta
1008 <<
"\n Last bin value represents the upper limit of the histogram" << std::endl;
1009 for (
size_t iBin = 0; iBin < sizeBinThresholdsEta; ++iBin) {
1010 LogTrace(
"L1ExtraDQM") <<
"Bin " << iBin <<
": eta = " << binThresholdsEtaf[iBin] << std::endl;
1013 histName = l1ExtraObject +
"_eta";
1014 histTitle = l1ExtraObject +
": eta distribution ";
1025 delete[] binThresholdsEtaf;
static std::string to_string(const XMLCh *ch)
std::vector< float > binThresholds
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())