Skip to content

Commit

Permalink
Going a little crazy with const correctness. Refs #3866.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfpeterson committed Nov 23, 2011
1 parent 48db66f commit d31318f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Code/Mantid/Framework/Algorithms/src/FindPeaks.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*WIKI*
/*WIKI*
This algorithm searches the specified spectra in a workspace for peaks, returning a list of the found and successfully fitted peaks. The search algorithm is described in full in reference [1]. In summary: the second difference of each spectrum is computed and smoothed. This smoothed data is then searched for patterns consistent with the presence of a peak. The list of candidate peaks found is passed to a fitting routine and those that are successfully fitted are kept and returned in the output workspace (and logged at information level).
Expand Down Expand Up @@ -179,7 +179,7 @@ void FindPeaks::findPeaksGivenStartingPoints(std::vector<double> peakCenters, st
for (int spec = start; spec < end; ++spec)
{

const MantidVec& datax = inputWS->dataX(spec);
const MantidVec& datax = inputWS->readX(spec);

for (it = peakCenters.begin(); it != peakCenters.end(); ++it)
{
Expand Down

0 comments on commit d31318f

Please sign in to comment.