merge in Bastian M. Wojek's cpp-version of msr2data. This should help to step towards a real platform independent musrfit package.

This commit is contained in:
nemu 2009-08-31 11:57:42 +00:00
parent 060192488c
commit 0cfd715ed3

View File

@ -2665,6 +2665,7 @@ bool PMsrHandler::HandleStatisticEntry(PMsrLines &lines)
if (lines.empty()) {
cout << endl << ">> PMsrHandler::HandleStatisticEntry: **WARNING** There is no STATISTIC block! Do you really want this?";
cout << endl;
fStatistic.fValid = false;
return true;
}
@ -2710,6 +2711,7 @@ bool PMsrHandler::HandleStatisticEntry(PMsrLines &lines)
}
// extract chisq
if (lines[i].fLine.Contains("chisq =")) {
fStatistic.fValid = true;
strncpy(str, lines[i].fLine.Data(), sizeof(str));
status = sscanf(str+lines[i].fLine.Index("chisq = ")+8, "%lf", &dval);
if (status == 1) {
@ -2720,6 +2722,7 @@ bool PMsrHandler::HandleStatisticEntry(PMsrLines &lines)
}
// extract maxLH
if (lines[i].fLine.Contains("maxLH =")) {
fStatistic.fValid = true;
strncpy(str, lines[i].fLine.Data(), sizeof(str));
status = sscanf(str+lines[i].fLine.Index("maxLH = ")+8, "%lf", &dval);
if (status == 1) {