Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
9355fc69
Commit
9355fc69
authored
9 years ago
by
Martyn Gigg
Browse files
Options
Downloads
Patches
Plain Diff
Apply clang-format to the test changes
Refs #14129
parent
ef3fa905
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Framework/Algorithms/test/CreateSampleWorkspaceTest.h
+8
-4
8 additions, 4 deletions
Framework/Algorithms/test/CreateSampleWorkspaceTest.h
with
8 additions
and
4 deletions
Framework/Algorithms/test/CreateSampleWorkspaceTest.h
+
8
−
4
View file @
9355fc69
...
...
@@ -217,15 +217,19 @@ public:
// Name of the output workspace.
std
::
string
outWSName
(
"CreateSampleWorkspaceTest_OutputWS_event"
);
auto
ws
=
boost
::
dynamic_pointer_cast
<
IEventWorkspace
>
(
createSampleWorkspace
(
outWSName
,
"Event"
));
auto
ws
=
boost
::
dynamic_pointer_cast
<
IEventWorkspace
>
(
createSampleWorkspace
(
outWSName
,
"Event"
));
TS_ASSERT
(
ws
);
if
(
!
ws
)
return
;
if
(
!
ws
)
return
;
// The number of events per spectrum is not simply nhist*events_per_hist
// The algorithm computes the number of events required per bin to give the
// total per spectrum as requested but can only add integer numbers of events
// total per spectrum as requested but can only add integer numbers of
// events
// so the number added will always be less than expected.
// In this case the background has 99 bins at 0.3 & 1 bin at 10.3 => total sum=40
// In this case the background has 99 bins at 0.3 & 1 bin at 10.3 => total
// sum=40
// signal_scale_factor = events_per_spec/40 = 1000/40=25 =>
// background Y = 0.3*25 = 7.5 => int(7.5)=7
// peak Y = 10.3*25 = 257.5 => int(257.5)=257
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment