83 , pluginsMonName_ ( iConfig.getParameter<std::string> (
"pluginsMonName") )
84 , modules_vector_ ( iConfig.getParameter<std::vector<std::string> >(
"modules") )
85 , categories_vector_ ( iConfig.getParameter<std::vector<std::string> >(
"categories") )
86 , doWarningsPlots_ ( iConfig.getParameter<bool> (
"doWarningsPlots") )
87 , doPUmonitoring_ ( iConfig.getParameter<bool> (
"doPUmonitoring") )
124 iEvent.
getByLabel(
"logErrorHarvester",errors);
131 if(errors->size()==0){
143 for(
size_t i = 0,
n = errors->size();
i <
n ;
i++){
147 std::string
s = (*errors)[
i].module;
148 size_t pos = s.find(
':');
149 std::string s_module = s.substr(pos+1,s.size());
150 std::map<std::string,int>::const_iterator it =
modulesMap.find(s_module);
163 TString
module = it->first;
164 TString
category = (*errors)[
i].category;
213 for (
size_t imodule = 0; imodule < nModules; imodule++)
217 for (
size_t icategories = 0; icategories < nCategories; icategories++)
229 int BXlumiBin = BXlumiParameters.
getParameter<
int>(
"BXlumiBin");
230 double BXlumiMin = BXlumiParameters.
getParameter<
double>(
"BXlumiMin");
231 double BXlumiMax = BXlumiParameters.
getParameter<
double>(
"BXlumiMax");
234 for(std::map<std::string,int>::const_iterator it =
modulesMap.begin();
239 histname =
"errorsVsBXlumi_" + it->first;
247 histname =
"warningVsBXlumi_" + it->first;
263 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_
#define DEFINE_FWK_MODULE(type)
void save(const std::string &filename, const std::string &path="", const std::string &pattern="", const std::string &rewrite="", SaveReferenceTag ref=SaveWithReference, int minStatus=dqm::qstatus::STATUS_OK, const std::string &fileupdate="RECREATE")
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)
bool accept(const edm::Event &event, const edm::EventSetup &setup)
To be called from analyze/filter() methods.
MonitorElement * bookProfile(const char *name, const char *title, int nchX, double lowX, double highX, int nchY, double lowY, double highY, const char *option="s")
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
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)