Skip to content

Commit

Permalink
Refs #11674. Checkpointing work
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Wedel committed May 22, 2015
1 parent 12637d5 commit c3295ac
Show file tree
Hide file tree
Showing 4 changed files with 105 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Code/Mantid/Framework/SINQ/CMakeLists.txt
Expand Up @@ -30,6 +30,7 @@ set ( SRC_FILES
src/PoldiUtilities/PoldiResidualCorrelationCore.cpp
src/PoldiUtilities/PoldiSpectrumDomainFunction.cpp
src/PoldiUtilities/PoldiSourceSpectrum.cpp
src/PoldiUtilities/PoldiSpectrumCalibrationFunction.cpp
src/PoldiUtilities/PoldiSpectrumConstantBackground.cpp
src/PoldiUtilities/PoldiSpectrumLinearBackground.cpp
src/PoldiUtilities/PoldiSpectrumPawleyFunction.cpp
Expand Down Expand Up @@ -76,6 +77,7 @@ set ( INC_FILES
inc/MantidSINQ/PoldiUtilities/PoldiPeak.h
inc/MantidSINQ/PoldiUtilities/PoldiPeakCollection.h
inc/MantidSINQ/PoldiUtilities/PoldiResidualCorrelationCore.h
inc/MantidSINQ/PoldiUtilities/PoldiSpectrumCalibrationFunction.h
inc/MantidSINQ/PoldiUtilities/PoldiSpectrumConstantBackground.h
inc/MantidSINQ/PoldiUtilities/PoldiSpectrumDomainFunction.h
inc/MantidSINQ/PoldiUtilities/PoldiSpectrumLinearBackground.h
Expand Down Expand Up @@ -119,6 +121,7 @@ set ( TEST_FILES
PoldiResidualCorrelationCoreTest.h
PoldiSourceSpectrumTest.h
PoldiSpectrumDomainFunctionTest.h
PoldiSpectrumCalibrationFunctionTest.h
PoldiSpectrumConstantBackgroundTest.h
PoldiSpectrumLinearBackgroundTest.h
PoldiSpectrumPawleyFunctionTest.h
Expand Down
@@ -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_ */
@@ -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
@@ -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_ */

0 comments on commit c3295ac

Please sign in to comment.