suppress warning missing deadtime correction if not relevant.
Build and Deploy Documentation / build-and-deploy (push) Successful in 29s
Build and Deploy Documentation / build-and-deploy (push) Successful in 29s
This commit is contained in:
1 parent
3174b320b2
commit
f91bc12709
1 file changed
+10
-1
@@ -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