implmented some startup features
This commit is contained in:
@ -118,6 +118,7 @@ bool PFitter::DoFit()
|
||||
SetParameters();
|
||||
|
||||
bool status;
|
||||
bool minosUsed = false;
|
||||
for (unsigned int i=0; i<fCmdList.size(); i++) {
|
||||
switch (fCmdList[i]) {
|
||||
case PMN_INTERACTIVE:
|
||||
@ -148,6 +149,7 @@ bool PFitter::DoFit()
|
||||
break;
|
||||
case PMN_MINOS:
|
||||
status = ExecuteMinos();
|
||||
minosUsed = true;
|
||||
break;
|
||||
case PMN_PLOT:
|
||||
cout << endl << "**WARNING** from PFitter::DoFit() : the command PLOT is not yet implemented.";
|
||||
@ -180,6 +182,13 @@ bool PFitter::DoFit()
|
||||
}
|
||||
}
|
||||
|
||||
// if minos was not used, there are NO valid positive errors
|
||||
if (!minosUsed) {
|
||||
for (unsigned int i=0; i<fParams.size(); i++) {
|
||||
fRunInfo->SetMsrParamPosErrorPresent(i, false);
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user