implmented some startup features

This commit is contained in:
nemu
2008-04-03 13:10:49 +00:00
parent 5fc7e14f3f
commit 0652495a3f
13 changed files with 101 additions and 24 deletions

View File

@ -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;
}