currently the function numbers need to be consecutive for the DKS version. This is now enforced.

This commit is contained in:
suter_a 2019-09-23 20:51:41 +02:00
parent f4d6f63607
commit 37658e177b

View File

@ -116,6 +116,18 @@ Bool_t PFunctionHandler::DoParse()
}
}
// for DKS, functions must be numbered consecutive
if (success) {
for (UInt_t i=0; i<fFuncs.size(); i++) {
if (fFuncs[i].GetFuncNo() != i+1) {
std::cerr << std::endl << "**ERROR**: for DKS, the function numbers need to be consecutive, sorry.";
std::cerr << std::endl;
success = false;
break;
}
}
}
return success;
}