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
Merge requests
!2191
Detector2D simpler arg name
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Detector2D simpler arg name
j.tidy1
into
main
Overview
0
Commits
2
Pipelines
2
Changes
2
Merged
Wuttke, Joachim
requested to merge
j.tidy1
into
main
1 year ago
Overview
0
Commits
2
Pipelines
2
Changes
2
Expand
0
0
Merge request reports
Viewing commit
853d5867
Prev
Next
Show latest version
2 files
+
6
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
853d5867
clang-format
· 853d5867
Wuttke, Joachim
authored
1 year ago
Device/Detector/Detector2D.cpp
+
4
−
5
Options
@@ -26,11 +26,10 @@ using std::numbers::pi;
Detector2D
::
Detector2D
(
double
phi_span
,
double
alpha_span
,
size_t
n_phi
,
size_t
n_alpha
,
double
phi_center
,
double
alpha_center
)
:
IDetector
(
new
Frame
(
newEquiDivision
(
"phi_f (rad)"
,
n_phi
,
phi_center
-
phi_span
/
2
,
phi_center
+
phi_span
/
2
),
newEquiDivision
(
"alpha_f (rad)"
,
n_alpha
,
alpha_center
-
alpha_span
/
2
,
alpha_center
+
alpha_span
/
2
)))
:
IDetector
(
new
Frame
(
newEquiDivision
(
"phi_f (rad)"
,
n_phi
,
phi_center
-
phi_span
/
2
,
phi_center
+
phi_span
/
2
),
newEquiDivision
(
"alpha_f (rad)"
,
n_alpha
,
alpha_center
-
alpha_span
/
2
,
alpha_center
+
alpha_span
/
2
)))
{
ASSERT
(
-
pi
/
2
<
axis
(
0
).
min
()
&&
axis
(
0
).
max
()
<
+
pi
/
2
);
ASSERT
(
-
pi
/
2
<
axis
(
1
).
min
()
&&
axis
(
1
).
max
()
<
+
pi
/
2
);
Loading