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
59da3197
Commit
59da3197
authored
1 year ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
IDetector::applyDetectorResolution sort blocks
parent
1d6ee355
No related branches found
No related tags found
1 merge request
!2036
repair interpretation of resolution function arguments (#777)
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Device/Detector/IDetector.cpp
+3
-3
3 additions, 3 deletions
Device/Detector/IDetector.cpp
with
3 additions
and
3 deletions
Device/Detector/IDetector.cpp
+
3
−
3
View file @
59da3197
...
@@ -157,12 +157,12 @@ void IDetector::setResolutionFunction(const IResolutionFunction2D& resFunc)
...
@@ -157,12 +157,12 @@ void IDetector::setResolutionFunction(const IResolutionFunction2D& resFunc)
void
IDetector
::
applyDetectorResolution
(
Datafield
*
intensity_map
)
const
void
IDetector
::
applyDetectorResolution
(
Datafield
*
intensity_map
)
const
{
{
if
(
!
m_resolution
)
return
;
ASSERT
(
intensity_map
);
ASSERT
(
intensity_map
);
if
(
!
m_resolution
)
return
;
m_resolution
->
applyDetectorResolution
(
intensity_map
);
m_resolution
->
applyDetectorResolution
(
intensity_map
);
if
(
detectorMask
()
&&
detectorMask
()
->
hasMasks
())
{
if
(
detectorMask
()
&&
detectorMask
()
->
hasMasks
())
{
// sets amplitude in masked areas to zero
// sets amplitude in masked areas to zero
auto
buff
=
std
::
make_unique
<
Datafield
>
(
intensity_map
->
frame
().
clone
());
auto
buff
=
std
::
make_unique
<
Datafield
>
(
intensity_map
->
frame
().
clone
());
...
...
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