16 struct RunBasedHistograms {
19 std::vector<dqm::reco::MonitorElement *> element_array;
23 events_processed(nullptr),
40 RunBasedHistograms &)
const override;
54 descriptions.
add(
"dqmHLTTestMonitor", desc);
59 m_dqm_path(config.getUntrackedParameter<std::
string>(
"dqmPath")),
60 m_lumisections_range(config.getUntrackedParameter<uint32_t>(
"lumisectionRange")),
61 m_num_histograms(config.getUntrackedParameter<uint32_t>(
"numberOfHistograms")) {}
75 histograms.events_processed = booker.
book1D(
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;
82 histograms.element_array[
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++) {
94 histograms.element_array[
i]->Fill(lumisection);
DaqTestHistograms(edm::ParameterSet const &)
const std::string m_dqm_path
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
virtual void setCurrentFolder(std::string const &fullpath)
const uint32_t m_num_histograms
#define DEFINE_FWK_MODULE(type)
void dqmAnalyze(edm::Event const &, edm::EventSetup const &, RunBasedHistograms const &) const override
void dqmBeginRun(edm::Run const &, edm::EventSetup const &, RunBasedHistograms &) const override
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
tuple config
parse the configuration file
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