IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
corsika
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Air Shower Physics
corsika
Commits
e49397d5
Commit
e49397d5
authored
2 years ago
by
Maximilian Reininghaus
Browse files
Options
Downloads
Patches
Plain Diff
skip rotation if particle is already at rest
parent
08fc28ce
No related branches found
No related tags found
1 merge request
!468
Resolve "Add FLUKA"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
corsika/detail/framework/geometry/CoordinateSystem.inl
+7
-1
7 additions, 1 deletion
corsika/detail/framework/geometry/CoordinateSystem.inl
corsika/framework/utility/COMBoost.hpp
+1
-1
1 addition, 1 deletion
corsika/framework/utility/COMBoost.hpp
with
8 additions
and
2 deletions
corsika/detail/framework/geometry/CoordinateSystem.inl
+
7
−
1
View file @
e49397d5
...
@@ -81,7 +81,13 @@ namespace corsika {
...
@@ -81,7 +81,13 @@ namespace corsika {
template
<
typename
TDim
>
template
<
typename
TDim
>
inline
CoordinateSystemPtr
make_rotationToZ
(
CoordinateSystemPtr
const
&
cs
,
inline
CoordinateSystemPtr
make_rotationToZ
(
CoordinateSystemPtr
const
&
cs
,
Vector
<
TDim
>
const
&
vVec
)
{
Vector
<
TDim
>
const
&
vVec
)
{
auto
const
a
=
vVec
.
normalized
().
getComponents
(
cs
).
getEigenVector
();
auto
const
vVecComp
=
vVec
.
getComponents
(
cs
);
if
(
vVecComp
.
getX
().
magnitude
()
==
0
&&
vVecComp
.
getY
().
magnitude
()
==
0
&&
vVecComp
.
getZ
().
magnitude
()
==
0
)
{
return
cs
;
}
auto
const
a
=
vVecComp
.
normalized
().
getEigenVector
();
auto
const
a1
=
a
(
0
),
a2
=
a
(
1
),
a3
=
a
(
2
);
auto
const
a1
=
a
(
0
),
a2
=
a
(
1
),
a3
=
a
(
2
);
Eigen
::
Matrix3d
A
,
B
;
Eigen
::
Matrix3d
A
,
B
;
...
...
This diff is collapsed.
Click to expand it.
corsika/framework/utility/COMBoost.hpp
+
1
−
1
View file @
e49397d5
...
@@ -86,7 +86,7 @@ namespace corsika {
...
@@ -86,7 +86,7 @@ namespace corsika {
//! internal method
//! internal method
void
setBoost
(
double
const
coshEta
,
double
const
sinhEta
);
void
setBoost
(
double
const
coshEta
,
double
const
sinhEta
);
p
rivate
:
p
ublic
:
Eigen
::
Matrix2d
boost_
;
Eigen
::
Matrix2d
boost_
;
Eigen
::
Matrix2d
inverseBoost_
;
Eigen
::
Matrix2d
inverseBoost_
;
CoordinateSystemPtr
const
originalCS_
;
CoordinateSystemPtr
const
originalCS_
;
...
...
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