suppress warning missing deadtime correction if not relevant.
All checks were successful
Build and Deploy Documentation / build-and-deploy (push) Successful in 29s

This commit is contained in:
2026-03-03 08:52:19 +01:00
parent 3174b320b2
commit f91bc12709

View File

@@ -177,7 +177,16 @@ void PRunBase::DeadTimeCorrection(std::vector<PDoubleVector> &histos, PUIntVecto
return;
}
if (!runData->DeadTimeCorrectionReady()) {
bool checkDeadTime{false};
PMsrRunList *rl = fMsrInfo->GetMsrRunList();
for (unsigned int i=0; i<rl->size(); 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;
}