16 struct RunBasedHistograms {
19 std::vector<dqm::reco::MonitorElement *> element_array;
23 events_processed(nullptr),
40 RunBasedHistograms &)
const override;
52 desc.addUntracked<uint32_t>(
"lumisectionRange", 25);
53 desc.addUntracked<uint32_t>(
"numberOfHistograms", 10);
54 descriptions.
add(
"dqmHLTTestMonitor",
desc);
60 m_lumisections_range(
config.getUntrackedParameter<uint32_t>(
"lumisectionRange")),
61 m_num_histograms(
config.getUntrackedParameter<uint32_t>(
"numberOfHistograms")) {}
77 for (
size_t i = 0;
i <
histograms.element_array.size();
i++) {
78 std::stringstream strs;
79 strs <<
"element " <<
i;
80 std::stringstream strs2;
81 strs2 <<
"e vs ls " <<
i;
90 unsigned int lumisection =
event.luminosityBlock();
92 histograms.events_processed->Fill(lumisection);
93 for (
size_t i = 0;
i <
histograms.element_array.size();
i++) {
DaqTestHistograms(edm::ParameterSet const &)
const std::string m_dqm_path
virtual void setCurrentFolder(std::string const &fullpath)
const uint32_t m_num_histograms
void dqmAnalyze(edm::Event const &, edm::EventSetup const &, RunBasedHistograms const &) const override
void dqmBeginRun(edm::Run const &, edm::EventSetup const &, RunBasedHistograms &) const override
#define DEFINE_FWK_MODULE(type)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &, RunBasedHistograms &) const override
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())
~DaqTestHistograms() override=default
const uint32_t m_lumisections_range