From ed42ca327089182e1988f01e43bb293053ee88cb Mon Sep 17 00:00:00 2001 From: Isakov Artem Date: Wed, 14 Aug 2024 11:24:03 +0200 Subject: [PATCH] Unified EPN QC Checks to work with Moving Window --- Modules/ITS/src/ITSDecodingErrorCheck.cxx | 4 ++-- Modules/ITS/src/ITSTrackCheck.cxx | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Modules/ITS/src/ITSDecodingErrorCheck.cxx b/Modules/ITS/src/ITSDecodingErrorCheck.cxx index 6977e7d1c6..b0885a2cdd 100644 --- a/Modules/ITS/src/ITSDecodingErrorCheck.cxx +++ b/Modules/ITS/src/ITSDecodingErrorCheck.cxx @@ -67,7 +67,7 @@ Quality ITSDecodingErrorCheck::check(std::mapgetName() == "General/LinkErrorPlots") { + if (((string)mo->getName()).find("General/LinkErrorPlots") != std::string::npos) { result = Quality::Good; auto* h = dynamic_cast(mo->getObject()); if (h == nullptr) { @@ -137,7 +137,7 @@ void ITSDecodingErrorCheck::beautify(std::shared_ptr mo, Quality TString status; int textColor; - if ((mo->getName() == "General/LinkErrorPlots") || (mo->getName() == "General/ChipErrorPlots")) { + if ((((string)mo->getName()).find("General/LinkErrorPlots") != std::string::npos) || (mo->getName() == "General/ChipErrorPlots")) { auto* h = dynamic_cast(mo->getObject()); if (h == nullptr) { ILOG(Error, Support) << "could not cast LinkErrorPlots to TH1D*" << ENDM; diff --git a/Modules/ITS/src/ITSTrackCheck.cxx b/Modules/ITS/src/ITSTrackCheck.cxx index cf574438bb..5489e0cbeb 100644 --- a/Modules/ITS/src/ITSTrackCheck.cxx +++ b/Modules/ITS/src/ITSTrackCheck.cxx @@ -38,7 +38,7 @@ Quality ITSTrackCheck::check(std::map>::iterator iter; for (iter = moMap->begin(); iter != moMap->end(); ++iter) { - if (iter->second->getName() == "NClusters") { + if (((string)iter->second->getName()).find("NClusters") != std::string::npos) { auto* h = dynamic_cast(iter->second->getObject()); if (h == nullptr) { ILOG(Error, Support) << "could not cast NClusters to TH1D*" << ENDM; @@ -84,7 +84,7 @@ Quality ITSTrackCheck::check(std::mapsecond->getName() == "AngularDistribution") { + if (((string)iter->second->getName()).find("AngularDistribution") != std::string::npos) { auto* hAngular = dynamic_cast(iter->second->getObject()); if (hAngular == nullptr) { ILOG(Error, Support) << "could not cast AngularDistribution to TH2D*" << ENDM; @@ -220,7 +220,7 @@ void ITSTrackCheck::beautify(std::shared_ptr mo, Quality checkRes TString status; int textColor; - if (mo->getName() == "NClusters") { + if (((string)mo->getName()).find("NClusters") != std::string::npos) { auto* h = dynamic_cast(mo->getObject()); if (h == nullptr) { ILOG(Error, Support) << "could not cast NClusters to TH1D*" << ENDM; @@ -300,7 +300,7 @@ void ITSTrackCheck::beautify(std::shared_ptr mo, Quality checkRes h->GetListOfFunctions()->Add(tShifterInfo->Clone()); } - if (mo->getName() == "AngularDistribution") { + if (((string)mo->getName()).find("AngularDistribution") != std::string::npos) { auto* h = dynamic_cast(mo->getObject()); if (h == nullptr) { ILOG(Error, Support) << "could not cast AngularDistribution to TH2D*" << ENDM;