|
|
Go to the documentation of this file.
81 pluginsMonName_(iConfig.getParameter<
std::
string>(
"pluginsMonName")),
82 modules_vector_(iConfig.getParameter<
std::vector<
std::
string> >(
"modules")),
83 categories_vector_(iConfig.getParameter<
std::vector<
std::
string> >(
"categories")),
84 doWarningsPlots_(iConfig.getParameter<
bool>(
"doWarningsPlots")),
85 doPUmonitoring_(iConfig.getParameter<
bool>(
"doPUmonitoring")) {
138 for (
size_t i = 0,
n =
errors->size();
i <
n;
i++) {
142 size_t pos =
s.find(
':');
144 std::map<std::string, int>::const_iterator it =
modulesMap.find(s_module);
157 TString
module = it->first;
158 TString
category = (*errors)[
i].category;
199 ibooker.setCurrentFolder(MEFolderName);
211 for (
size_t imodule = 0; imodule < nModules; imodule++)
215 for (
size_t icategories = 0; icategories <
nCategories; icategories++)
232 for (std::map<std::string, int>::const_iterator it =
modulesMap.begin(); it !=
modulesMap.end(); ++it,
i++) {
233 ibooker.setCurrentFolder(MEFolderName +
"/PUmonitoring/Errors");
235 histname =
"errorsVsBXlumi_" + it->first;
242 ibooker.setCurrentFolder(MEFolderName +
"/PUmonitoring/Warnings");
244 histname =
"warningVsBXlumi_" + it->first;
266 if (outputMEsInRootFile) {
std::vector< MonitorElement * > ModulesWarningsVsBXlumi
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
LogMessageMonitor(const edm::ParameterSet &)
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override
MonitorElement * CategoriesVsModules
std::vector< std::string > categories_vector_
std::vector< MonitorElement * > ModulesErrorsVsBXlumi
#define DEFINE_FWK_MODULE(type)
std::map< std::string, int > modulesMap
DQM_DEPRECATED void save(std::string const &filename, std::string const &path="")
bool accept(const edm::Event &event, const edm::EventSetup &setup)
To be called from analyze/filter() methods.
void analyze(const edm::Event &, const edm::EventSetup &) override
std::vector< std::string > modules_vector_
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
virtual void setBinLabel(int bin, const std::string &label, int axis=1)
set bin label for x, y or z axis (axis=1, 2, 3 respectively)
double getValue(const edm::Event &)
T getParameter(std::string const &) const
edm::EDGetTokenT< std::vector< edm::ErrorSummaryEntry > > errorToken_
std::string pluginsMonName_
void initRun(const edm::Run &run, const edm::EventSetup &setup)
To be called from beginRun() methods.
GenericTriggerEventFlag * genTriggerEventFlag_
~LogMessageMonitor() override
void addDefault(ParameterSetDescription const &psetDescription)
virtual void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)