suppress warning missing deadtime correction if not relevant.
All checks were successful
Build and Deploy Documentation / build-and-deploy (push) Successful in 29s
All checks were successful
Build and Deploy Documentation / build-and-deploy (push) Successful in 29s
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user