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
2d024f9f
Commit
2d024f9f
authored
2 years ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
rename -> m_beamPolarization
parent
93107d60
No related branches found
Branches containing commit
No related tags found
2 merge requests
!907
Core cleanup
,
!905
mv class Instrument out of core
Pipeline
#65459
failed
2 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Device/Beam/Beam.cpp
+7
-7
7 additions, 7 deletions
Device/Beam/Beam.cpp
Device/Beam/Beam.h
+1
-1
1 addition, 1 deletion
Device/Beam/Beam.h
with
8 additions
and
8 deletions
Device/Beam/Beam.cpp
+
7
−
7
View file @
2d024f9f
...
...
@@ -53,7 +53,7 @@ Beam Beam::horizontalBeam()
Beam
::
Beam
(
const
Beam
&
other
)
:
Beam
(
other
.
m_intensity
,
other
.
m_wavelength
,
other
.
direction
())
{
m_b
loch_vector
=
other
.
m_bloch_vector
;
m_b
eamPolarization
=
other
.
m_beamPolarization
;
if
(
other
.
m_shape_factor
)
m_shape_factor
.
reset
(
other
.
m_shape_factor
->
clone
());
}
...
...
@@ -67,7 +67,7 @@ Beam& Beam::operator=(const Beam& other)
// m_direction = other.m_direction;
m_alpha
=
other
.
m_alpha
;
m_phi
=
other
.
m_phi
;
m_b
loch_vector
=
other
.
m_bloch_vector
;
m_b
eamPolarization
=
other
.
m_beamPolarization
;
if
(
other
.
m_shape_factor
)
m_shape_factor
.
reset
(
other
.
m_shape_factor
->
clone
());
else
...
...
@@ -144,19 +144,19 @@ void Beam::setPolarization(const R3 bloch_vector)
"Beam::setPolarization: "
"The given Bloch vector cannot represent a real physical ensemble"
);
}
m_b
loch_vector
=
bloch_vector
;
m_b
eamPolarization
=
bloch_vector
;
}
R3
Beam
::
getBlochVector
()
const
{
return
m_b
loch_vector
;
return
m_b
eamPolarization
;
}
SpinMatrix
Beam
::
getPolarization
()
const
{
double
x
=
m_b
loch_vector
.
x
();
double
y
=
m_b
loch_vector
.
y
();
double
z
=
m_b
loch_vector
.
z
();
double
x
=
m_b
eamPolarization
.
x
();
double
y
=
m_b
eamPolarization
.
y
();
double
z
=
m_b
eamPolarization
.
z
();
return
{(
1.0
+
z
)
/
2.0
,
complex_t
(
x
,
-
y
)
/
2.0
,
complex_t
(
x
,
y
)
/
2.0
,
(
1.0
-
z
)
/
2.0
};
}
...
...
This diff is collapsed.
Click to expand it.
Device/Beam/Beam.h
+
1
−
1
View file @
2d024f9f
...
...
@@ -83,7 +83,7 @@ private:
double
m_alpha
;
double
m_phi
;
std
::
unique_ptr
<
IFootprintFactor
>
m_shape_factor
;
//!< footprint correction handler
R3
m_b
loch_vector
;
//!< Bloch vector encoding the beam's polarization
R3
m_b
eamPolarization
;
//!< Bloch vector encoding the beam's polarization
RealLimits
m_alphaLimits
;
...
...
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