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; }