Skip to content
Snippets Groups Projects
Commit c770b8e1 authored by Pierre-Alain Loizeau's avatar Pierre-Alain Loizeau Committed by Pierre-Alain Loizeau
Browse files

[mCBM] in check timing algo, protect against warning flood in TRD case

parent c31d8dbd
No related branches found
No related tags found
1 merge request!1508[mCBM] in check timing algo, protect against warning flood in TRD case
......@@ -507,7 +507,13 @@ int CbmMcbmCheckTimingAlgo::GetViewId<CbmTrdDigi>(CheckTimingDetector det, std::
if (view.compare(std::to_string(moduleId)) == 0) return iview;
iview++;
}
LOG(warning) << "Trd condition not implemented. Skip.";
std::string sFullModId = det.sName + " module " + std::to_string(moduleId);
if (0 == fUnimplementedTrdViewWarned.count(sFullModId)) {
LOG(warning) << "Trd condition not implemented for " << sFullModId << ". Skipping it from now on.";
fUnimplementedTrdViewWarned.insert(sFullModId);
}
return -1;
}
......
......@@ -12,6 +12,7 @@
#include "TString.h"
#include <unordered_set>
#include <vector>
class TH1;
......@@ -163,6 +164,8 @@ private:
Double_t fRichPeakWidthNs = 40.;
Double_t fPsdPeakWidthNs = 20.;
std::unordered_set<std::string> fUnimplementedTrdViewWarned = {};
ClassDefNV(CbmMcbmCheckTimingAlgo, 1);
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment