Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Michael Wedel
committed
May 4, 2015
1 parent
f4fae77
commit 6331195
Showing
4 changed files
with
105 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
Code/Mantid/Framework/SINQ/inc/MantidSINQ/PoldiUtilities/PoldiSpectrumCalibrationFunction.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#ifndef MANTID_SINQ_POLDISPECTRUMCALIBRATIONFUNCTION_H_ | ||
#define MANTID_SINQ_POLDISPECTRUMCALIBRATIONFUNCTION_H_ | ||
|
||
#include "MantidSINQ/DllConfig.h" | ||
#include "MantidSINQ/PoldiUtilities/PoldiSpectrumDomainFunction.h" | ||
|
||
namespace Mantid { | ||
namespace Poldi { | ||
|
||
/** PoldiSpectrumCalibrationFunction | ||
@author Michael Wedel, Paul Scherrer Institut - SINQ | ||
@date 01/05/2015 | ||
Copyright © 2015 PSI-NXMM | ||
This file is part of Mantid. | ||
Mantid is free software; you can redistribute it and/or modify | ||
it under the terms of the GNU General Public License as published by | ||
the Free Software Foundation; either version 3 of the License, or | ||
(at your option) any later version. | ||
Mantid is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU General Public License for more details. | ||
You should have received a copy of the GNU General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
File change history is stored at: <https://github.com/mantidproject/mantid> | ||
Code Documentation is available at: <http://doxygen.mantidproject.org> | ||
*/ | ||
class MANTID_SINQ_DLL PoldiSpectrumCalibrationFunction | ||
: public PoldiSpectrumDomainFunction { | ||
public: | ||
PoldiSpectrumCalibrationFunction(); | ||
virtual ~PoldiSpectrumCalibrationFunction() {} | ||
|
||
virtual std::string name() const { | ||
return "PoldiSpectrumCalibrationFunction"; | ||
} | ||
|
||
protected: | ||
virtual getPeakCenter(const Poldi2DHelper_sptr &poldi2DHelper) const; | ||
}; | ||
|
||
} // namespace Poldi | ||
} // namespace Mantid | ||
|
||
#endif /* MANTID_SINQ_POLDISPECTRUMCALIBRATIONFUNCTION_H_ */ |
21 changes: 21 additions & 0 deletions
21
Code/Mantid/Framework/SINQ/src/PoldiUtilities/PoldiSpectrumCalibrationFunction.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#include "MantidSINQ/PoldiUtilities/PoldiSpectrumCalibrationFunction.h" | ||
|
||
namespace Mantid | ||
{ | ||
namespace Poldi | ||
{ | ||
|
||
PoldiSpectrumCalibrationFunction::PoldiSpectrumCalibrationFunction() : | ||
PoldiSpectrumDomainFunction() | ||
{ | ||
|
||
} | ||
|
||
PoldiSpectrumCalibrationFunction::getPeakCenter(const Poldi2DHelper_sptr &poldi2DHelper) const | ||
{ | ||
|
||
} | ||
|
||
|
||
} // namespace Poldi | ||
} // namespace Mantid |
29 changes: 29 additions & 0 deletions
29
Code/Mantid/Framework/SINQ/test/PoldiSpectrumCalibrationFunctionTest.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#ifndef MANTID_SINQ_POLDISPECTRUMCALIBRATIONFUNCTIONTEST_H_ | ||
#define MANTID_SINQ_POLDISPECTRUMCALIBRATIONFUNCTIONTEST_H_ | ||
|
||
#include <cxxtest/TestSuite.h> | ||
|
||
#include "MantidSINQ/PoldiUtilities/PoldiSpectrumCalibrationFunction.h" | ||
|
||
using Mantid::SINQ::PoldiSpectrumCalibrationFunction; | ||
using namespace Mantid::API; | ||
|
||
class PoldiSpectrumCalibrationFunctionTest : public CxxTest::TestSuite | ||
{ | ||
public: | ||
// This pair of boilerplate methods prevent the suite being created statically | ||
// This means the constructor isn't called when running other tests | ||
static PoldiSpectrumCalibrationFunctionTest *createSuite() { return new PoldiSpectrumCalibrationFunctionTest(); } | ||
static void destroySuite( PoldiSpectrumCalibrationFunctionTest *suite ) { delete suite; } | ||
|
||
|
||
void test_Something() | ||
{ | ||
TSM_ASSERT( "You forgot to write a test!", 0); | ||
} | ||
|
||
|
||
}; | ||
|
||
|
||
#endif /* MANTID_SINQ_POLDISPECTRUMCALIBRATIONFUNCTIONTEST_H_ */ |