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:
@ -127,6 +127,7 @@ void msr2data_syntax()
|
||||
std::cout << std::endl << " -k, --keep-mn2-output : if fitting is used, pass the option --keep-mn2-output to musrfit";
|
||||
std::cout << std::endl << " -t, --title-from-data-file : if fitting is used, pass the option --title-from-data-file to musrfit";
|
||||
std::cout << std::endl << " -e, --estimateN0: estimate N0 for single histogram fits.";
|
||||
std::cout << std::endl << " -y, --yaml: write fit results (MINUIT2.OUTPUT) into a yaml-file. Output <msr-file>.yaml";
|
||||
std::cout << std::endl << " -p, --per-run-block-chisq: will per run block chisq to the msr-file.";
|
||||
std::cout << std::endl;
|
||||
std::cout << std::endl << " global : switch on the global-fit mode";
|
||||
@ -187,6 +188,7 @@ std::string msr2data_validArguments(const std::vector<std::string> &arg)
|
||||
|| (!iter->substr(0,3).compare("fit")) || (!iter->compare("-k")) || (!iter->compare("--keep-mn2-output")) \
|
||||
|| (!iter->compare("-t")) || (!iter->compare("--title-from-data-file")) \
|
||||
|| (!iter->compare("-e")) || (!iter->compare("--estimateN0")) \
|
||||
|| (!iter->compare("-y") || (!iter->compare("--yaml"))) \
|
||||
|| (!iter->compare("-p")) || (!iter->compare("--per-run-block-chisq")) \
|
||||
|| (!iter->compare("data")) || (!iter->substr(0,4).compare("msr-")) || (!iter->compare("global")) \
|
||||
|| (!iter->compare("global+")) || (!iter->compare("global+!")) || (!iter->compare("new")) \
|
||||
@ -716,6 +718,8 @@ int main(int argc, char *argv[])
|
||||
musrfitOptions.append("-t ");
|
||||
if (!msr2data_useOption(arg, "-e") || !msr2data_useOption(arg, "--estimateN0"))
|
||||
musrfitOptions.append("-e ");
|
||||
if (!msr2data_useOption(arg, "-y") || !msr2data_useOption(arg, "--yaml"))
|
||||
musrfitOptions.append("-y ");
|
||||
if (!msr2data_useOption(arg, "-p") || !msr2data_useOption(arg, "--per-run-block-chisq"))
|
||||
musrfitOptions.append("-p ");
|
||||
}
|
||||
|
Reference in New Issue
Block a user