currently the function numbers need to be consecutive for the DKS version. This is now enforced.
This commit is contained in:
@ -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;
|
return success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user