Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
mantidproject
mantid
Commits
8d6ee67c
Commit
8d6ee67c
authored
Feb 20, 2017
by
Samuel Jackson
Browse files
Refs #18920 Apply clang-format patch
parent
e72f58b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Framework/DataObjects/test/PeakTest.h
View file @
8d6ee67c
...
...
@@ -265,15 +265,15 @@ public:
}
void
test_getQLabFrame
()
{
Instrument_sptr
inst
=
ComponentCreationHelper
::
createTestInstrumentRectangular2
(
1
,
10
);
Peak
p
(
inst
,
0
,
1.5
);
p
.
setQLabFrame
(
V3D
(
1
,
1
,
1
));
auto
q
=
p
.
getQLabFrame
();
// should be the same
TS_ASSERT_DELTA
(
q
[
0
],
1
,
1e-5
);
TS_ASSERT_DELTA
(
q
[
1
],
1
,
1e-5
);
TS_ASSERT_DELTA
(
q
[
2
],
1
,
1e-5
);
Instrument_sptr
inst
=
ComponentCreationHelper
::
createTestInstrumentRectangular2
(
1
,
10
);
Peak
p
(
inst
,
0
,
1.5
);
p
.
setQLabFrame
(
V3D
(
1
,
1
,
1
));
auto
q
=
p
.
getQLabFrame
();
// should be the same
TS_ASSERT_DELTA
(
q
[
0
],
1
,
1e-5
);
TS_ASSERT_DELTA
(
q
[
1
],
1
,
1e-5
);
TS_ASSERT_DELTA
(
q
[
2
],
1
,
1e-5
);
}
//------------------------------------------------------------------------------------
...
...
@@ -391,7 +391,7 @@ public:
// test with & without extended detector space
// extended space is a sphere, so all points should fall radius*detector
// direction away from the detector direction with extended space
auto
testQ
=
[
this
,
&
sphereInst
,
&
refFrame
,
&
refBeamDir
](
const
V3D
&
q
)
{
auto
testQ
=
[
this
,
&
sphereInst
,
&
refFrame
,
&
refBeamDir
](
const
V3D
&
q
)
{
// Compute expected direction
const
auto
qBeam
=
q
.
scalar_prod
(
refBeamDir
);
const
double
norm_q
=
q
.
norm
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment