Commit 9b859e1d authored by Martyn Gigg's avatar Martyn Gigg
Browse files

Clang format changes

parent 40801553
......@@ -87,8 +87,8 @@ RectangularBeamProfile::defineActiveRegion(const API::Sample &sample) const {
}
// In the beam direction use the maximum sample extent other wise restrict
// the active region to the width/height of beam
const auto & sampleMin(sampleBox.minPoint());
const auto & sampleMax(sampleBox.maxPoint());
const auto &sampleMin(sampleBox.minPoint());
const auto &sampleMax(sampleBox.maxPoint());
V3D minPoint, maxPoint;
minPoint[m_horIdx] = m_min[m_horIdx];
maxPoint[m_horIdx] = m_min[m_horIdx] + m_width;
......@@ -96,7 +96,7 @@ RectangularBeamProfile::defineActiveRegion(const API::Sample &sample) const {
maxPoint[m_upIdx] = m_min[m_upIdx] + m_height;
minPoint[m_beamIdx] = sampleMin[m_beamIdx];
maxPoint[m_beamIdx] = sampleMax[m_beamIdx];
return Geometry::BoundingBox(maxPoint.X(), maxPoint.Y(), maxPoint.Z(),
minPoint.X(), minPoint.Y(), minPoint.Z());
}
......
......@@ -35,7 +35,7 @@ public:
MockRNG rng;
auto mcabsorb = createTestObject();
// 3 random numbers per event expected
// 3 random numbers per event expected
EXPECT_CALL(rng, nextValue())
.Times(Exactly(30))
.WillRepeatedly(Return(0.5));
......
......@@ -53,8 +53,7 @@ public:
TS_ASSERT_DELTA(0.0028357258, factor, 1e-8);
}
void
test_Absorption_In_Sample_With_Hole_Container_Scatter_In_All_Segments() {
void test_Absorption_In_Sample_With_Hole_Container_Scatter_In_All_Segments() {
using Mantid::Kernel::V3D;
using namespace MonteCarloTesting;
using namespace ::testing;
......
......@@ -118,7 +118,7 @@ public:
verifyDimensions(wsProps, outputWS);
const double delta(1e-05);
const size_t middle_index(4);
TS_ASSERT_DELTA(0.0032600806, outputWS->y(0).front(), delta);
TS_ASSERT_DELTA(0.00040160571, outputWS->y(0)[middle_index], delta);
TS_ASSERT_DELTA(0.00027626768, outputWS->y(0).back(), delta);
......
......@@ -746,9 +746,9 @@ public:
TS_ASSERT_THROWS_NOTHING(
point = ball->generatePointInObject(rng, activeRegion, maxAttempts));
const double tolerance(1e-10);
TS_ASSERT_DELTA(-0.1 + 0.01*0.2, point.X(), tolerance);
TS_ASSERT_DELTA(-0.1 + 0.02*0.2, point.Y(), tolerance);
TS_ASSERT_DELTA(-0.1 + 0.03*0.2, point.Z(), tolerance);
TS_ASSERT_DELTA(-0.1 + 0.01 * 0.2, point.X(), tolerance);
TS_ASSERT_DELTA(-0.1 + 0.02 * 0.2, point.Y(), tolerance);
TS_ASSERT_DELTA(-0.1 + 0.03 * 0.2, point.Z(), tolerance);
}
void testSolidAngleSphere()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment