Skip to content

Commit

Permalink
FIT LevelCheck: some cometics (#1985)
Browse files Browse the repository at this point in the history
  • Loading branch information
afurs authored Sep 13, 2023
1 parent b5d9d7b commit 7d73bd5
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions Modules/FIT/FIT/src/LevelCheck.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,7 @@ void LevelCheck::configure()
// Automatic selection of bins to ignore
// Dead channel map
updateBinsToIgnoreWithDCM();
// Prepare list of bins to ignore as str
for (const auto& bin : mBinsToIgnore) {
mBinsToIgnoreAsStr += (mBinsToIgnoreAsStr.empty() ? "" : ",") + std::to_string(bin);
}
if (mBinsToIgnore.size() == 0) {
mBinsToIgnoreAsStr = "EMPTY";
}
mBinsToIgnoreAsStr = std::to_string(mBinsToIgnore.size());
}

Quality LevelCheck::check(std::map<std::string, std::shared_ptr<MonitorObject>>* moMap)
Expand Down Expand Up @@ -145,9 +139,7 @@ void LevelCheck::beautify(std::shared_ptr<MonitorObject> mo, Quality checkResult
h->GetListOfFunctions()->Add(msg);
msg->SetName(Form("%s_msg", mo->GetName()));
msg->Clear();
if (mBinsToIgnoreAsStr != "EMPTY") {
msg->AddText(("Ignore elements: " + mBinsToIgnoreAsStr).c_str());
}
msg->AddText(Form("N ignored elements: %s", mBinsToIgnoreAsStr.c_str()));
msg->AddText(Form("N elements with warning (%s %.3f) = %d", mSignCheck.c_str(), mThreshWarning, mNumWarnings));
msg->AddText(Form("N elements with error (%s %.3f) = %d", mSignCheck.c_str(), mThreshError, mNumErrors));
if (checkResult == Quality::Good) {
Expand Down

0 comments on commit 7d73bd5

Please sign in to comment.