added the option to write the content of the MINUIT2.OUTPUT ascii file as yaml. This extends the previous commit from Ryan M.L. McFadden.
This commit is contained in:
@ -2104,6 +2104,11 @@ void PTextEdit::musrFit()
|
||||
cmd.append("--estimateN0");
|
||||
}
|
||||
|
||||
// check yamlOut flag
|
||||
if (fAdmin->getYamlOutFlag()) {
|
||||
cmd.append("--yaml");
|
||||
}
|
||||
|
||||
// check per-run-block-chisq flag
|
||||
if (fAdmin->getChisqPerRunBlockFlag()) {
|
||||
cmd.append("--per-run-block-chisq");
|
||||
@ -2336,6 +2341,11 @@ void PTextEdit::musrMsr2Data()
|
||||
cmd.append("-e");
|
||||
}
|
||||
|
||||
// yaml out. Add flag only if a fit is done
|
||||
if (fMsr2DataParam->yamlOut && (fMsr2DataParam->fitOnly || fMsr2DataParam->templateRunNo != -1)) {
|
||||
cmd.append("-y");
|
||||
}
|
||||
|
||||
// write per-run-block chisq. Add flag only if a fit is done
|
||||
if (fMsr2DataParam->perRunBlockChisq && (fMsr2DataParam->fitOnly || fMsr2DataParam->templateRunNo != -1)) {
|
||||
cmd.append("-p");
|
||||
@ -2719,6 +2729,7 @@ void PTextEdit::musrPrefs()
|
||||
fAdmin->setTimeout(dlg->getTimeout());
|
||||
fAdmin->setChisqPerRunBlockFlag(dlg->getKeepRunPerBlockChisqFlag());
|
||||
fAdmin->setEstimateN0Flag(dlg->getEstimateN0Flag());
|
||||
fAdmin->setYamlOutFlag(dlg->getYamlOutFlag());
|
||||
}
|
||||
|
||||
delete dlg;
|
||||
|
Reference in New Issue
Block a user