Skip to content

Commit

Permalink
Add OrientedLattice to tests. Refs #5397
Browse files Browse the repository at this point in the history
  • Loading branch information
martyngigg committed Aug 2, 2012
1 parent b00a43d commit 5a175fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include "MantidMDAlgorithms/Quantification/Resolution/ModeratorChopperResolution.h"

#include "MantidMDAlgorithms/Quantification/Observation.h"
#include "MantidGeometry/Crystal/OrientedLattice.h"
#include "MantidGeometry/Instrument/ReferenceFrame.h"

#include "MantidTestHelpers/ComponentCreationHelper.h"
Expand Down Expand Up @@ -70,6 +71,8 @@ class ModeratorChopperResolutionTest : public CxxTest::TestSuite

m_expt->setInstrument(instrument);
m_expt->mutableRun().addProperty("deltaE-mode", DeltaEMode::asString(Mantid::Kernel::DeltaEMode::Direct));
m_expt->mutableSample().setOrientedLattice(new Mantid::Geometry::OrientedLattice(5.57,5.51,12.298));


// Add log entry
m_expt->mutableRun().addProperty("Ei", 45.1);
Expand Down
2 changes: 2 additions & 0 deletions Code/Mantid/Framework/MDAlgorithms/test/ObservationTest.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include "MantidMDAlgorithms/Quantification/Observation.h"
#include "MantidKernel/DeltaEMode.h"
#include "MantidGeometry/Crystal/OrientedLattice.h"
#include "MantidGeometry/Instrument/ReferenceFrame.h"

#include "MantidTestHelpers/ComponentCreationHelper.h"
Expand Down Expand Up @@ -224,6 +225,7 @@ class ObservationTest : public CxxTest::TestSuite

m_expt->setInstrument(instrument);
m_expt->mutableRun().addProperty("deltaE-mode", DeltaEMode::asString(emode));
m_expt->mutableSample().setOrientedLattice(new Mantid::Geometry::OrientedLattice(5.57,5.51,12.298));

if(emode == DeltaEMode::Direct) // Direct
{
Expand Down

0 comments on commit 5a175fb

Please sign in to comment.