Skip to content

Commit

Permalink
Add one method. Refs #5306.
Browse files Browse the repository at this point in the history
  • Loading branch information
wdzhou committed Jul 26, 2012
1 parent f9ad244 commit d8e6cc8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ class DLLExport ThermalNeutronBk2BkExpConvPV : virtual public API::IPeakFunction
/// Set Miller Indicies
void setMillerIndex(int h, int k, int l);

/// Get Miller Index from this peak
void getMillerIndex(int& h, int &k, int &l);

protected:

virtual void functionLocal(double* out, const double* xValues, const size_t nData)const;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,18 @@ void ThermalNeutronBk2BkExpConvPV::setMillerIndex(int h, int k, int l)
return;
}

/*
* Get Miller Index from this peak
*/
void ThermalNeutronBk2BkExpConvPV::getMillerIndex(int& h, int &k, int &l)
{
h = mH;
k = mK;
l = mL;

return;
}

/*
* Override function1D
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,9 +342,8 @@ void Ntest_functionCalculator()
peak.function1D(out, xvalues, ndata);

return;
}
}

};


#endif /* MANTID_CURVEFITTING_THERMALNEUTRONBK2BKEXPCONVPVTEST_H_ */

0 comments on commit d8e6cc8

Please sign in to comment.