corrected the handling of the positive error flag
This commit is contained in:
@ -120,7 +120,11 @@ bool PFitter::DoFit()
|
|||||||
SetParameters();
|
SetParameters();
|
||||||
|
|
||||||
bool status;
|
bool status;
|
||||||
bool minosUsed = false;
|
// init positive errors to default false, if minos is called, it will be set true there
|
||||||
|
for (unsigned int i=0; i<fParams.size(); i++) {
|
||||||
|
fRunInfo->SetMsrParamPosErrorPresent(i, false);
|
||||||
|
}
|
||||||
|
|
||||||
for (unsigned int i=0; i<fCmdList.size(); i++) {
|
for (unsigned int i=0; i<fCmdList.size(); i++) {
|
||||||
switch (fCmdList[i]) {
|
switch (fCmdList[i]) {
|
||||||
case PMN_INTERACTIVE:
|
case PMN_INTERACTIVE:
|
||||||
@ -150,7 +154,10 @@ bool PFitter::DoFit()
|
|||||||
break;
|
break;
|
||||||
case PMN_MINOS:
|
case PMN_MINOS:
|
||||||
status = ExecuteMinos();
|
status = ExecuteMinos();
|
||||||
minosUsed = true;
|
// set positive errors true
|
||||||
|
for (unsigned int i=0; i<fParams.size(); i++) {
|
||||||
|
fRunInfo->SetMsrParamPosErrorPresent(i, true);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case PMN_PLOT:
|
case PMN_PLOT:
|
||||||
cout << endl << "**WARNING** from PFitter::DoFit() : the command PLOT is not yet implemented.";
|
cout << endl << "**WARNING** from PFitter::DoFit() : the command PLOT is not yet implemented.";
|
||||||
@ -183,13 +190,6 @@ 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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user