check for subsequent numbered parameters added according to the suggestion of the Royal Highness pointed out in MUSR-103.
This commit is contained in:
parent
b89773bbe5
commit
da50f1d18c
@ -1451,6 +1451,21 @@ Bool_t PMsrHandler::HandleFitParameterEntry(PMsrLines &lines)
|
||||
iter++;
|
||||
}
|
||||
|
||||
// check if all parameters have subsequent numbers.
|
||||
for (UInt_t i=0; i<fParam.size(); i++) {
|
||||
if (fParam[i].fNo != (Int_t)i+1) {
|
||||
error = true;
|
||||
cerr << endl << ">> PMsrHandler::HandleFitParameterEntry: **ERROR**";
|
||||
cerr << endl << ">> Sorry, you are assuming to much from this program, it cannot";
|
||||
cerr << endl << ">> handle none subsequent numbered parameters yet or in the near future.";
|
||||
cerr << endl << ">> Found parameter " << fParam[i].fName.Data() << ", with";
|
||||
cerr << endl << ">> parameter number " << fParam[i].fNo << ", at paramter position " << i+1 << ".";
|
||||
cerr << endl << ">> This needs to be fixed first.";
|
||||
cerr << endl;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return !error;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user