From a25af63b8e873b845820b0bdcc9e6f8590091a69 Mon Sep 17 00:00:00 2001 From: nemu Date: Wed, 4 May 2011 05:41:23 +0000 Subject: [PATCH] FIXED bug reported in MUSR-183: missing background for 2nd histo in asymmetry fits when using musrt0. --- ChangeLog | 1 + src/classes/PMsrHandler.cpp | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index bae38690..49f86188 100644 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,7 @@ changes since 0.9.0 =================================== NEW any2many: force the user to define the exact NeXus ouput formate (HDF4, HDF5, XML) +FIXED bug reported in MUSR-183: missing background for 2nd histo in asymmetry fits when using musrt0. FIXED Makefiles so that the NeXus support will not be built if it has not been enabled during the configure stage FIXED ASCII export from musrview in case of a Fourier-Power- or Fourier-Phase-difference plot FIXED bug in asymmetry fit with fixed background diff --git a/src/classes/PMsrHandler.cpp b/src/classes/PMsrHandler.cpp index 38e48d02..d527864c 100644 --- a/src/classes/PMsrHandler.cpp +++ b/src/classes/PMsrHandler.cpp @@ -827,9 +827,11 @@ Int_t PMsrHandler::WriteMsrLogFile(const Bool_t messages) if (fRuns[runNo].GetBkgRange(0) >= 0) { fout.width(16); fout << left << "background"; - for (UInt_t j=0; j<2; j++) { - fout.width(8); - fout << left << fRuns[runNo].GetBkgRange(j); + for (UInt_t j=0; j<4; j++) { + if (fRuns[runNo].GetBkgRange(j) > 0) { + fout.width(8); + fout << left << fRuns[runNo].GetBkgRange(j); + } } fout << endl; }