From f91bc12709420140f0dae56270411bdbe869fc54 Mon Sep 17 00:00:00 2001 From: Andreas Suter Date: Tue, 3 Mar 2026 08:52:19 +0100 Subject: [PATCH] suppress warning missing deadtime correction if not relevant. --- src/classes/PRunBase.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/classes/PRunBase.cpp b/src/classes/PRunBase.cpp index 3b51cb10c..a3f2d4678 100644 --- a/src/classes/PRunBase.cpp +++ b/src/classes/PRunBase.cpp @@ -177,7 +177,16 @@ void PRunBase::DeadTimeCorrection(std::vector &histos, PUIntVecto return; } - if (!runData->DeadTimeCorrectionReady()) { + bool checkDeadTime{false}; + PMsrRunList *rl = fMsrInfo->GetMsrRunList(); + for (unsigned int i=0; isize(); i++) { + if (!rl->at(i).GetFileFormat()->CompareTo("nexus", TString::kIgnoreCase)) { + checkDeadTime = true; + break; + } + } + + if (!runData->DeadTimeCorrectionReady() && checkDeadTime) { std::cerr << std::endl << "**WARNING** PRunBase::DeadTimeCorrection: missing input for dead time correction" << std::endl; return; }