19 modulesErrorsFound =
NULL;
20 modulesWarningsFound =
NULL;
21 categoriesWarningsFound =
NULL;
22 categoriesErrorsFound =
NULL;
23 directoryName =
parameters.getParameter<
string>(
"Directory");
40 theDbe->setCurrentFolder(directoryName);
76 entries.push_back(directoryName +
"/Warnings/modules_warnings");
77 entries.push_back(directoryName +
"/Errors/modules_errors");
78 entries.push_back(directoryName +
"/Warnings/categories_warnings");
79 entries.push_back(directoryName +
"/Errors/categories_errors");
84 for(vector<string>::const_iterator ent = entries.begin();
85 ent != entries.end(); ++ent) {
97 if(theDbe->get(*ent)){
98 if (TH1 *rootHisto = me->
getTH1()) {
105 if( rootHisto->GetBinContent(
bin)>0){
107 binContent.push_back(rootHisto->GetBinContent(
bin));
108 binLabel.push_back(rootHisto->GetXaxis()->GetBinLabel(
bin));
115 theDbe->setCurrentFolder(directoryName +
"/Warnings");
116 modulesWarningsFound = theDbe->get(directoryName +
"/Warnings/modulesWarningsFound");
117 if (modulesWarningsFound) theDbe->removeElement(modulesWarningsFound->getName());
119 modulesWarningsFound = theDbe->book1D(
"modulesWarningsFound",
"Warnings per module", binContent.size(), 0, binContent.size());
121 modulesWarningsFound = theDbe->book1D(
"modulesWarningsFound",
"Warnings per module", 1, 0, 1);
122 modulesWarningsFound->setBinLabel(1,
"Module name");
124 for (
int i=0;
i<nonzeros; ++
i){
125 if(modulesWarningsFound!=
NULL){
128 modulesWarningsFound->setBinContent(
i+1,binContent[
i]);
129 modulesWarningsFound->setBinLabel(i+1,binLabel[i]);
132 if(nonzeros>4) modulesWarningsFound->getTH1()->GetXaxis()->LabelsOption(
"v");
135 theDbe->setCurrentFolder(directoryName +
"/Errors");
136 modulesErrorsFound = theDbe->get(directoryName +
"/Errors/modulesErrorsFound");
137 if (modulesErrorsFound) theDbe->removeElement(modulesErrorsFound->getName());
139 modulesErrorsFound = theDbe->book1D(
"modulesErrorsFound",
"Errors per module",binContent.size(), 0, binContent.size() );
141 modulesErrorsFound = theDbe->book1D(
"modulesErrorsFound",
"Errors per module",1, 0, 1 );
142 modulesErrorsFound->setBinLabel(1,
"Module name");
144 for (
int i=0;
i<nonzeros; ++
i){
145 if(modulesErrorsFound!=
NULL){
147 modulesErrorsFound->setBinContent(
i+1,binContent[
i]);
148 modulesErrorsFound->setBinLabel(i+1,binLabel[i]);
151 if(nonzeros>4) modulesErrorsFound->getTH1()->GetXaxis()->LabelsOption(
"v");
154 theDbe->setCurrentFolder(directoryName +
"/Warnings");
155 categoriesWarningsFound = theDbe->get(directoryName +
"/Warnings/categoriesWarningsFound");
156 if (categoriesWarningsFound) theDbe->removeElement(categoriesWarningsFound->getName());
158 categoriesWarningsFound = theDbe->book1D(
"categoriesWarningsFound",
"Warnings per category", binContent.size(),0,binContent.size());
160 categoriesWarningsFound = theDbe->book1D(
"categoriesWarningsFound",
"Warnings per category", 1,0,1);
161 categoriesWarningsFound->setBinLabel(1,
"Category name");
163 for (
int i=0;
i<nonzeros; ++
i){
164 if(categoriesWarningsFound!=
NULL){
167 categoriesWarningsFound->setBinContent(
i+1,binContent[
i]);
168 categoriesWarningsFound->setBinLabel(i+1,binLabel[i]);
171 if(nonzeros>4) categoriesWarningsFound->getTH1()->GetXaxis()->LabelsOption(
"v");
174 theDbe->setCurrentFolder(directoryName +
"/Errors");
175 categoriesErrorsFound = theDbe->get(directoryName +
"/Errors/categoriesErrorsFound");
176 if (categoriesErrorsFound) theDbe->removeElement(categoriesErrorsFound->getName());
178 categoriesErrorsFound = theDbe->book1D(
"categoriesErrorsFound",
"Errors per category", binContent.size(),0,binContent.size());
180 categoriesErrorsFound = theDbe->book1D(
"categoriesErrorsFound",
"Errors per category", 1,0,1);
181 categoriesErrorsFound->setBinLabel(1,
"Category name");
183 for (
int i=0;
i<nonzeros; ++
i){
184 if(categoriesErrorsFound!=
NULL){
186 categoriesErrorsFound->setBinContent(
i+1,binContent[
i]);
187 categoriesErrorsFound->setBinLabel(i+1,binLabel[i]);
190 if(nonzeros>4) categoriesErrorsFound->getTH1()->GetXaxis()->LabelsOption(
"v");
void endRun(const edm::Run &, const edm::EventSetup &)
void endLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
void analyze(const edm::Event &, const edm::EventSetup &)
void beginRun(const edm::Run &, const edm::EventSetup &)
DQMMessageLoggerClient(const edm::ParameterSet &)
void beginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &)
virtual ~DQMMessageLoggerClient()
int getNbinsX(void) const
get # of bins in X-axis