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
0816055c
Commit
0816055c
authored
1 year ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
GUI use new Det2D API
parent
093fd44d
No related branches found
No related tags found
1 merge request
!2189
Detector2D now parameterized through width and center in phi,alpha (#854)
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GUI/Model/Detector/DetectorItem.cpp
+5
-1
5 additions, 1 deletion
GUI/Model/Detector/DetectorItem.cpp
with
5 additions
and
1 deletion
GUI/Model/Detector/DetectorItem.cpp
+
5
−
1
View file @
0816055c
...
...
@@ -59,12 +59,16 @@ std::unique_ptr<IDetector> DetectorItem::createDetector() const
const
int
n_x
=
m_phiAxis
.
nbins
();
const
double
x_min
=
Units
::
deg2rad
(
m_phiAxis
.
min
());
const
double
x_max
=
Units
::
deg2rad
(
m_phiAxis
.
max
());
const
double
x_wid
=
x_max
-
x_min
;
const
double
x_cen
=
(
x_min
+
x_max
)
/
2
;
const
int
n_y
=
m_alphaAxis
.
nbins
();
const
double
y_min
=
Units
::
deg2rad
(
m_alphaAxis
.
min
());
const
double
y_max
=
Units
::
deg2rad
(
m_alphaAxis
.
max
());
const
double
y_wid
=
y_max
-
y_min
;
const
double
y_cen
=
(
y_min
+
y_max
)
/
2
;
auto
result
=
std
::
make_unique
<
Old
Detec2D
>
(
n_x
,
x_min
,
x_ma
x
,
n_y
,
y_mi
n
,
y_
max
);
auto
result
=
std
::
make_unique
<
Detec
tor
2D
>
(
x_wid
,
y_wid
,
n_
x
,
n_y
,
x_ce
n
,
y_
cen
);
if
(
m_maskContainerItem
)
{
const
QVector
<
MaskItem
*>
maskItems
=
m_maskContainerItem
->
maskItems
();
...
...
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