Go to the documentation of this file.
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() override=default
DaqTestHistograms(edm::ParameterSet const &)
void dqmAnalyze(edm::Event const &, edm::EventSetup const &, RunBasedHistograms const &) const override
const std::string m_dqm_path
const uint32_t m_num_histograms
virtual void setCurrentFolder(std::string const &fullpath)
#define DEFINE_FWK_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void dqmBeginRun(edm::Run const &, edm::EventSetup const &, RunBasedHistograms &) const override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &, RunBasedHistograms &) const override
const uint32_t m_lumisections_range
MonitorElement * book1D(TString const &name, TString const &title, int const nchX, double const lowX, double const highX, FUNC onbooking=NOOP())