9 : m_dqm_path(iConfig.getUntrackedParameter<
std::
string>(
"dqmPath")) {
11 <<
"Constructor TriggerRatesMonitorClient::TriggerRatesMonitorClient " << std::endl;
18 edm::LogInfo(
"TriggerRatesMonitorClient") <<
"TriggerRatesMonitorClient::beginJob " << std::endl;
29 std::vector<std::string> directories = igetter_.
getSubdirs();
33 for (
auto const&
dir : directories) {
37 std::vector<std::string>
const& all_mes = igetter_.
getMEs();
38 std::vector<std::string> mes;
39 for (
auto const&
me : all_mes)
40 if (
me.find(
"accept") != std::string::npos)
48 for (
auto const&
me : mes) {
55 nbinsX = histo->GetNbinsX();
56 double xminX = histo->GetXaxis()->GetXmin();
57 double xmaxX = histo->GetXaxis()->GetXmax();
68 for (
int ibinX = 1; ibinX <=
nbinsX; ++ibinX) {
69 float rate = histo->GetBinContent(ibinX);
86 edm::LogInfo(
"TriggerRatesMonitorClient") <<
"TriggerRatesMonitorClient::endLumi " << std::endl;
92 descriptions.
add(
"triggerRatesMonitorClient", desc);
virtual TH2F * getTH2F() const
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
void setCurrentFolder(std::string const &fullpath)
virtual TH1F * getTH1F() const
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
#define DEFINE_FWK_MODULE(type)
std::vector< std::string > getMEs()
TriggerRatesMonitorClient(const edm::ParameterSet &ps)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::vector< TH2F * > m_hltXpd_counts
MonitorElement * book2D(TString const &name, TString const &title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
MonitorElement * get(std::string const &path)
std::vector< std::string > getSubdirs()