corrected time resolution for WKM from (ns) -> (us)

This commit is contained in:
nemu 2011-02-07 16:59:42 +00:00
parent 9e4f92173a
commit 507c36b4d8
2 changed files with 3 additions and 2 deletions

View File

@ -12,6 +12,7 @@ NEW any2many: an attempt to write the universial musr-data-file converter. Just
NEW musrt0: added the possibility to show the t0 saved in the data file 's'. Furthermore added the option
--getT0FromPromptPeak, -g with <firstGoodBinOffset>: will, in non-interactive mode estimate the t0's from
the prompt peak and write it into the msr-file (MUSR-133).
FIXED corrected time resolution for WKM from (ns) -> (us)
FIXED the formating of fixed parameters (step=0) where wrongly formatted (connected to MUSR-167). This
should be done correctly now.
FIXED for single histogram fits, the chisq given was wrong (not the fit-result though). I missed some needed scaling

View File

@ -1360,7 +1360,7 @@ Bool_t PRunDataHandler::ReadWkmFile()
StripWhitespace(line);
dval = ToDouble(line, ok);
if (ok)
runData.SetTimeResolution(dval);
runData.SetTimeResolution(dval*1.0e3); // us -> ns
}
}
@ -3271,7 +3271,7 @@ Bool_t PRunDataHandler::WriteWkmFile(TString fln)
cout << endl << "Groups : " << fData[0].GetNoOfHistos();
cout << endl << "Channels : " << static_cast<UInt_t>(fData[0].GetDataBin(0)->size()/fAny2ManyInfo->rebin);
cout.precision(10);
cout << endl << "Resolution : " << fData[0].GetTimeResolution()*fAny2ManyInfo->rebin;
cout << endl << "Resolution : " << fData[0].GetTimeResolution()*fAny2ManyInfo->rebin/1.0e3; // ns->us
cout.setf(ios::fixed,ios::floatfield); // floatfield set to fixed
// write data