82 , pluginsMonName_ ( iConfig.getParameter<std::
string> (
"pluginsMonName") )
83 , modules_vector_ ( iConfig.getParameter<std::vector<std::
string> >(
"modules") )
84 , categories_vector_ ( iConfig.getParameter<std::vector<std::
string> >(
"categories") )
85 , doWarningsPlots_ ( iConfig.getParameter<bool> (
"doWarningsPlots") )
86 , doPUmonitoring_ ( iConfig.getParameter<bool> (
"doPUmonitoring") )
135 if(errors->size()==0){
147 for(
size_t i = 0,
n = errors->size();
i <
n ;
i++){
152 size_t pos = s.find(
':');
154 std::map<std::string,int>::const_iterator it =
modulesMap.find(s_module);
167 TString
module = it->first;
168 TString
category = (*errors)[
i].category;
217 for (
size_t imodule = 0; imodule < nModules; imodule++)
221 for (
size_t icategories = 0; icategories < nCategories; icategories++)
233 int BXlumiBin = BXlumiParameters.
getParameter<
int>(
"BXlumiBin");
234 double BXlumiMin = BXlumiParameters.
getParameter<
double>(
"BXlumiMin");
235 double BXlumiMax = BXlumiParameters.
getParameter<
double>(
"BXlumiMax");
238 for(std::map<std::string,int>::const_iterator it =
modulesMap.begin();
243 histname =
"errorsVsBXlumi_" + it->first;
251 histname =
"warningVsBXlumi_" + it->first;
267 if(outputMEsInRootFile)
T getParameter(std::string const &) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
LogMessageMonitor(const edm::ParameterSet &)
MonitorElement * CategoriesVsModules
std::vector< std::string > categories_vector_
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
std::vector< MonitorElement * > ModulesWarningsVsBXlumi
virtual void beginLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
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)
std::map< std::string, int > modulesMap
Provides a code based selection for trigger and DCS information in order to have no failing filters i...
std::vector< MonitorElement * > ModulesErrorsVsBXlumi
virtual void endRun(edm::Run const &, edm::EventSetup const &)
double getValue(const edm::Event &)
void addDefault(ParameterSetDescription const &psetDescription)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
void Fill(HcalDetId &id, double val, std::vector< TH2F > &depth)
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
bool accept(const edm::Event &event, const edm::EventSetup &setup)
To be called from analyze/filter() methods.
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", const uint32_t run=0, SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
edm::EDGetTokenT< std::vector< edm::ErrorSummaryEntry > > errorToken_
GenericTriggerEventFlag * genTriggerEventFlag_
std::vector< std::string > modules_vector_
virtual void endLuminosityBlock(edm::LuminosityBlock const &, edm::EventSetup const &)
std::string pluginsMonName_
void showDirStructure(void) const
void initRun(const edm::Run &run, const edm::EventSetup &setup)
To be called from beginRun() methods.
MonitorElement * book2D(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY)
Book 2D histogram.
void setAxisTitle(const std::string &title, int axis=1)
set x-, y- or z-axis title (axis=1, 2, 3 respectively)
virtual void beginRun(edm::Run const &, edm::EventSetup const &)
void setCurrentFolder(const std::string &fullpath)