Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
62dd8720
Commit
62dd8720
authored
2 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
merge fct
parent
15eb9005
No related branches found
No related tags found
1 merge request
!1318
merge functions in main computation
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Sim/Simulation/ISimulation.h
+1
-1
1 addition, 1 deletion
Sim/Simulation/ISimulation.h
Sim/Simulation/SpecularSimulation.cpp
+2
-9
2 additions, 9 deletions
Sim/Simulation/SpecularSimulation.cpp
Sim/Simulation/SpecularSimulation.h
+0
-2
0 additions, 2 deletions
Sim/Simulation/SpecularSimulation.h
with
3 additions
and
12 deletions
Sim/Simulation/ISimulation.h
+
1
−
1
View file @
62dd8720
...
@@ -106,7 +106,7 @@ private:
...
@@ -106,7 +106,7 @@ private:
//! Normalizes the detector counts to beam intensity, to solid angle, and to exposure angle.
//! Normalizes the detector counts to beam intensity, to solid angle, and to exposure angle.
virtual
void
normalize
(
size_t
/*start*/
,
size_t
/*n_elements*/
)
{}
virtual
void
normalize
(
size_t
/*start*/
,
size_t
/*n_elements*/
)
{}
virtual
void
addBackgroundIntensity
(
size_t
start
,
size_t
n_elements
)
=
0
;
virtual
void
addBackgroundIntensity
(
size_t
,
size_t
)
{}
virtual
void
addDataToCache
(
double
weight
)
=
0
;
virtual
void
addDataToCache
(
double
weight
)
=
0
;
...
...
This diff is collapsed.
Click to expand it.
Sim/Simulation/SpecularSimulation.cpp
+
2
−
9
View file @
62dd8720
...
@@ -54,16 +54,9 @@ void SpecularSimulation::runComputation(const ReSample& re_sample, size_t iEleme
...
@@ -54,16 +54,9 @@ void SpecularSimulation::runComputation(const ReSample& re_sample, size_t iEleme
{
{
SpecularElement
&
ele
=
*
(
m_eles
.
begin
()
+
static_cast
<
long
>
(
iElement
));
SpecularElement
&
ele
=
*
(
m_eles
.
begin
()
+
static_cast
<
long
>
(
iElement
));
SpecularComputation
(
re_sample
,
options
(),
progress
()).
run
(
ele
);
SpecularComputation
(
re_sample
,
options
(),
progress
()).
run
(
ele
);
}
void
SpecularSimulation
::
addBackgroundIntensity
(
size_t
start
,
size_t
n_elements
)
if
(
background
())
{
ele
.
setIntensity
(
background
()
->
addBackground
(
ele
.
intensity
()));
if
(
!
background
())
return
;
for
(
size_t
i
=
start
,
stop_point
=
start
+
n_elements
;
i
<
stop_point
;
++
i
)
{
SpecularElement
&
element
=
m_eles
[
i
];
element
.
setIntensity
(
background
()
->
addBackground
(
element
.
intensity
()));
}
}
}
void
SpecularSimulation
::
addDataToCache
(
double
weight
)
void
SpecularSimulation
::
addDataToCache
(
double
weight
)
...
...
This diff is collapsed.
Click to expand it.
Sim/Simulation/SpecularSimulation.h
+
0
−
2
View file @
62dd8720
...
@@ -48,8 +48,6 @@ private:
...
@@ -48,8 +48,6 @@ private:
void
runComputation
(
const
ReSample
&
re_sample
,
size_t
iElement
)
override
;
void
runComputation
(
const
ReSample
&
re_sample
,
size_t
iElement
)
override
;
void
addBackgroundIntensity
(
size_t
start_ind
,
size_t
n_elements
)
override
;
void
addDataToCache
(
double
weight
)
override
;
void
addDataToCache
(
double
weight
)
override
;
//... Overridden getters:
//... Overridden getters:
...
...
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