16 modulesErrorsFound =
nullptr;
17 modulesWarningsFound =
nullptr;
18 categoriesWarningsFound =
nullptr;
19 categoriesErrorsFound =
nullptr;
29 if (theDbe !=
nullptr) {
30 theDbe->setCurrentFolder(directoryName);
50 vector<string> entries;
51 entries.push_back(directoryName +
"/Warnings/modules_warnings");
52 entries.push_back(directoryName +
"/Errors/modules_errors");
53 entries.push_back(directoryName +
"/Warnings/categories_warnings");
54 entries.push_back(directoryName +
"/Errors/categories_errors");
58 for (
auto ent = entries.begin(); ent != entries.end(); ++ent) {
68 if (theDbe->get(*ent)) {
69 if (TH1* rootHisto =
me->getTH1()) {
75 if (rootHisto->GetBinContent(
bin) > 0) {
77 binContent.push_back(rootHisto->GetBinContent(
bin));
78 binLabel.emplace_back(rootHisto->GetXaxis()->GetBinLabel(
bin));
84 theDbe->setCurrentFolder(directoryName +
"/Warnings");
85 modulesWarningsFound = theDbe->get(directoryName +
"/Warnings/modulesWarningsFound");
87 modulesWarningsFound = theDbe->book1D(
88 "modulesWarningsFound",
"Warnings per module", binContent.size(), 0, binContent.size());
90 modulesWarningsFound = theDbe->book1D(
"modulesWarningsFound",
"Warnings per module", 1, 0, 1);
91 modulesWarningsFound->setBinLabel(1,
"Module name");
93 for (
int i = 0;
i < nonzeros; ++
i) {
94 if (modulesWarningsFound !=
nullptr) {
97 modulesWarningsFound->setBinContent(
i + 1, binContent[
i]);
98 modulesWarningsFound->setBinLabel(
i + 1, binLabel[
i]);
102 modulesWarningsFound->getTH1()->GetXaxis()->LabelsOption(
"v");
105 theDbe->setCurrentFolder(directoryName +
"/Errors");
106 modulesErrorsFound = theDbe->get(directoryName +
"/Errors/modulesErrorsFound");
109 theDbe->book1D(
"modulesErrorsFound",
"Errors per module", binContent.size(), 0, binContent.size());
111 modulesErrorsFound = theDbe->book1D(
"modulesErrorsFound",
"Errors per module", 1, 0, 1);
112 modulesErrorsFound->setBinLabel(1,
"Module name");
114 for (
int i = 0;
i < nonzeros; ++
i) {
115 if (modulesErrorsFound !=
nullptr) {
117 modulesErrorsFound->setBinContent(
i + 1, binContent[
i]);
118 modulesErrorsFound->setBinLabel(
i + 1, binLabel[
i]);
122 modulesErrorsFound->getTH1()->GetXaxis()->LabelsOption(
"v");
125 theDbe->setCurrentFolder(directoryName +
"/Warnings");
126 categoriesWarningsFound = theDbe->get(directoryName +
"/Warnings/categoriesWarningsFound");
128 categoriesWarningsFound = theDbe->book1D(
129 "categoriesWarningsFound",
"Warnings per category", binContent.size(), 0, binContent.size());
131 categoriesWarningsFound = theDbe->book1D(
"categoriesWarningsFound",
"Warnings per category", 1, 0, 1);
132 categoriesWarningsFound->setBinLabel(1,
"Category name");
134 for (
int i = 0;
i < nonzeros; ++
i) {
135 if (categoriesWarningsFound !=
nullptr) {
138 categoriesWarningsFound->setBinContent(
i + 1, binContent[
i]);
139 categoriesWarningsFound->setBinLabel(
i + 1, binLabel[
i]);
143 categoriesWarningsFound->getTH1()->GetXaxis()->LabelsOption(
"v");
146 theDbe->setCurrentFolder(directoryName +
"/Errors");
147 categoriesErrorsFound = theDbe->get(directoryName +
"/Errors/categoriesErrorsFound");
149 categoriesErrorsFound = theDbe->book1D(
150 "categoriesErrorsFound",
"Errors per category", binContent.size(), 0, binContent.size());
152 categoriesErrorsFound = theDbe->book1D(
"categoriesErrorsFound",
"Errors per category", 1, 0, 1);
153 categoriesErrorsFound->setBinLabel(1,
"Category name");
155 for (
int i = 0;
i < nonzeros; ++
i) {
156 if (categoriesErrorsFound !=
nullptr) {
158 categoriesErrorsFound->setBinContent(
i + 1, binContent[
i]);
159 categoriesErrorsFound->setBinLabel(
i + 1, binLabel[
i]);
163 categoriesErrorsFound->getTH1()->GetXaxis()->LabelsOption(
"v");