9 : m_dqm_path( iConfig.getUntrackedParameter<
std::
string>(
"dqmPath") )
11 edm::LogInfo(
"TriggerRatesMonitorClient") <<
"Constructor TriggerRatesMonitorClient::TriggerRatesMonitorClient " << std::endl;
20 edm::LogInfo(
"TriggerRatesMonitorClient") <<
"TriggerRatesMonitorClient::beginJob " << std::endl;
32 std::vector<std::string> directories = igetter_.
getSubdirs();
36 for (
auto const &
dir : directories) {
40 std::vector<std::string>
const & all_mes = igetter_.
getMEs();
41 std::vector<std::string> mes;
42 for (
auto const & me : all_mes )
43 if ( me.find(
"accept") != std::string::npos ) mes.push_back(me);
45 int nbinsY = mes.size();
47 double xmaxY = xminY + 1.*nbinsY;
50 for (
auto const & me : mes ) {
57 nbinsX = histo->GetNbinsX();
58 double xminX = histo->GetXaxis()->GetXmin();
59 double xmaxX = histo->GetXaxis()->GetXmax();
70 for (
int ibinX=1; ibinX <= nbinsX; ++ibinX ) {
71 float rate = histo->GetBinContent(ibinX);
87 edm::LogInfo(
"TriggerRatesMonitorClient") <<
"TriggerRatesMonitorClient::endLumi " << std::endl;
95 descriptions.
add(
"triggerRatesMonitorClient", desc);
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
MonitorElement * get(const std::string &path)
#define DEFINE_FWK_MODULE(type)
void dqmEndLuminosityBlock(DQMStore::IBooker &, DQMStore::IGetter &, edm::LuminosityBlock const &, edm::EventSetup const &) override
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::vector< std::string > getMEs(void)
TriggerRatesMonitorClient(const edm::ParameterSet &ps)
void setCurrentFolder(const std::string &fullpath)
MonitorElement * book2D(Args &&...args)
TH1F * getTH1F(void) const
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::vector< TH2F * > m_hltXpd_counts
std::vector< std::string > getSubdirs(void)
void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override
TH2F * getTH2F(void) const