Skip to content

Commit f3c4ac2

Browse files
correction on Checks for Quality aggregator (#2232)
1 parent 3244d13 commit f3c4ac2

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

Modules/MUON/MID/src/ClustQcCheck.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,22 @@ Quality ClustQcCheck::check(std::map<std::string, std::shared_ptr<MonitorObject>
5757
if (mo->getName() == "ClusterMap11") {
5858
auto* h2 = dynamic_cast<TH2F*>(mo->getObject());
5959
h2->Scale(scale);
60+
result = Quality::Good;
6061
}
6162
if (mo->getName() == "ClusterMap12") {
6263
auto* h2 = dynamic_cast<TH2F*>(mo->getObject());
6364
h2->Scale(scale);
65+
result = Quality::Good;
6466
}
6567
if (mo->getName() == "ClusterMap21") {
6668
auto* h2 = dynamic_cast<TH2F*>(mo->getObject());
6769
h2->Scale(scale);
70+
result = Quality::Good;
6871
}
6972
if (mo->getName() == "ClusterMap22") {
7073
auto* h2 = dynamic_cast<TH2F*>(mo->getObject());
7174
h2->Scale(scale);
75+
result = Quality::Good;
7276
}
7377
}
7478
return result;

Modules/MUON/MID/src/DigitsQcCheck.cxx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void DigitsQcCheck::configure()
6262

6363
Quality DigitsQcCheck::check(std::map<std::string, std::shared_ptr<MonitorObject>>* moMap)
6464
{
65-
Quality result = Quality::Null;
65+
Quality result = Quality::Good;
6666
// This info must be available from the beginning
6767
TH1* meanMultiHits = nullptr;
6868
for (auto& item : *moMap) {
@@ -169,6 +169,7 @@ Quality DigitsQcCheck::check(std::map<std::string, std::shared_ptr<MonitorObject
169169
qual.addReason(flag, fmt::format("{} boards empty", nEmptyLB));
170170
}
171171
mQualityMap[item.second->getName()] = qual;
172+
result = qual;
172173
} // if mNTFInSeconds > 0.
173174
}
174175
if (item.second->getName() == "NbLBEmpty") {
@@ -193,6 +194,7 @@ Quality DigitsQcCheck::check(std::map<std::string, std::shared_ptr<MonitorObject
193194
}
194195
}
195196
}
197+
196198
return result;
197199
}
198200

Modules/MUON/MID/src/TracksQcCheck.cxx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,14 +84,15 @@ Quality TracksQcCheck::check(std::map<std::string, std::shared_ptr<MonitorObject
8484
for (int i = 1; i < h->GetNbinsX(); i++) {
8585
if ((i == 1) && (h->GetBinContent(i) < mRatio44Threshold)) {
8686
result = Quality::Bad;
87+
8788
result.addReason(FlagReasonFactory::Unknown(),
88-
"All Ratio44 too high in bin " + std::to_string(i));
89+
"Global Ratio44 too low : bin " + std::to_string(i));
8990
lineThreshold->SetLineColor(kRed);
9091
break;
9192
} else if ((i > 1) && (i < 10) && (h->GetBinContent(i) < mRatio44Threshold)) {
9293
result = Quality::Medium;
9394
result.addReason(FlagReasonFactory::Unknown(),
94-
"Ratio44 too high in bin " + std::to_string(i));
95+
"Ratio44 too low in bin " + std::to_string(i));
9596
lineThreshold->SetLineColor(kOrange);
9697
break;
9798
}

0 commit comments

Comments
 (0)