Skip to content

Commit

Permalink
refs #10384 Various modifications to satisfy different analysis tools
Browse files Browse the repository at this point in the history
Modifications related to different error calculation formula.
  • Loading branch information
abuts committed Oct 29, 2014
1 parent 9b1feb0 commit e62dbab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -65,7 +65,7 @@ namespace Algorithms
// time interval for measuring the background
double m_dtBg;
// Squared error of the background for first spectra of a background workspace
double m_ErrSq;
//double m_ErrSq;
// energy conversion mode
int m_Emode;
// source-sample distance
Expand Down
6 changes: 3 additions & 3 deletions Code/Mantid/Framework/Algorithms/src/BackgroundHelper.cpp
Expand Up @@ -10,7 +10,7 @@ namespace Mantid
BackgroundHelper::BackgroundHelper():
m_WSUnit(),m_bgWs(),m_wkWS(),
m_singleValueBackground(false),
m_NBg(0),m_dtBg(1),m_ErrSq(0),
m_NBg(0),m_dtBg(1), //m_ErrSq(0),
m_Emode(0),
m_L1(0),m_Efix(0),
m_Sample(),
Expand Down Expand Up @@ -55,7 +55,7 @@ namespace Mantid
const MantidVec& dataE = bkgWS->dataE(0);
m_NBg = dataY[0];
m_dtBg = dataX[1]-dataX[0];
m_ErrSq = dataE[0]*dataE[0]; // needs further clarification
//m_ErrSq = dataE[0]*dataE[0]; // needs further clarification


m_Efix = this->getEi(sourceWS);
Expand All @@ -73,7 +73,7 @@ namespace Mantid
if(m_singleValueBackground)
{
dtBg = m_dtBg;
ErrSq = m_ErrSq;
// ErrSq = m_ErrSq;
IBg = m_NBg;
}
else
Expand Down

0 comments on commit e62dbab

Please sign in to comment.