IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
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
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Pranav Sampathkumar
corsika
Commits
de5bfbc5
Commit
de5bfbc5
authored
2 years ago
by
Maximilian Reininghaus
Browse files
Options
Downloads
Patches
Plain Diff
return references in CoMBoost::getXYCS()
parent
459849b2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
corsika/detail/framework/utility/COMBoost.inl
+7
-5
7 additions, 5 deletions
corsika/detail/framework/utility/COMBoost.inl
corsika/framework/utility/COMBoost.hpp
+3
-3
3 additions, 3 deletions
corsika/framework/utility/COMBoost.hpp
with
10 additions
and
8 deletions
corsika/detail/framework/utility/COMBoost.inl
+
7
−
5
View file @
de5bfbc5
...
...
@@ -23,7 +23,7 @@ namespace corsika {
HEPMassType
const
massTarget
)
:
originalCS_
{
P4projectile
.
getSpaceLikeComponents
().
getCoordinateSystem
()}
,
rotatedCS_
{
make_rotationToZ
(
originalCS_
,
P4projectile
.
getSpaceLikeComponents
())}
{
auto
const
pProjectile
=
P4projectile
.
getSpaceLikeComponents
();
auto
const
&
pProjectile
=
P4projectile
.
getSpaceLikeComponents
();
auto
const
pProjNormSquared
=
pProjectile
.
getSquaredNorm
();
auto
const
pProjNorm
=
sqrt
(
pProjNormSquared
);
...
...
@@ -82,7 +82,7 @@ namespace corsika {
template
<
typename
FourVector
>
inline
FourVector
COMBoost
::
toCoM
(
FourVector
const
&
p4
)
const
{
auto
pComponents
=
p4
.
getSpaceLikeComponents
().
getComponents
(
rotatedCS_
);
auto
const
pComponents
=
p4
.
getSpaceLikeComponents
().
getComponents
(
rotatedCS_
);
Eigen
::
Vector3d
eVecRotated
=
pComponents
.
getEigenVector
();
Eigen
::
Vector2d
lab
;
...
...
@@ -102,7 +102,7 @@ namespace corsika {
template
<
typename
FourVector
>
inline
FourVector
COMBoost
::
fromCoM
(
FourVector
const
&
p4
)
const
{
auto
pCM
=
p4
.
getSpaceLikeComponents
().
getComponents
(
rotatedCS_
);
auto
const
pCM
=
p4
.
getSpaceLikeComponents
().
getComponents
(
rotatedCS_
);
auto
const
Ecm
=
p4
.
getTimeLikeComponent
();
Eigen
::
Vector2d
com
;
...
...
@@ -134,8 +134,10 @@ namespace corsika {
inverseBoost_
<<
coshEta
,
-
sinhEta
,
-
sinhEta
,
coshEta
;
}
inline
CoordinateSystemPtr
COMBoost
::
getRotatedCS
()
const
{
return
rotatedCS_
;
}
inline
CoordinateSystemPtr
const
&
COMBoost
::
getRotatedCS
()
const
{
return
rotatedCS_
;
}
inline
CoordinateSystemPtr
COMBoost
::
getOriginalCS
()
const
{
return
originalCS_
;
}
inline
CoordinateSystemPtr
const
&
COMBoost
::
getOriginalCS
()
const
{
return
originalCS_
;
}
}
// namespace corsika
This diff is collapsed.
Click to expand it.
corsika/framework/utility/COMBoost.hpp
+
3
−
3
View file @
de5bfbc5
...
...
@@ -76,10 +76,10 @@ namespace corsika {
FourVector
fromCoM
(
FourVector
const
&
p4
)
const
;
//! returns the rotated coordinate system: +z is projectile direction
CoordinateSystemPtr
getRotatedCS
()
const
;
CoordinateSystemPtr
const
&
getRotatedCS
()
const
;
//! returns the original coordinate system of the projectile (lab)
CoordinateSystemPtr
getOriginalCS
()
const
;
CoordinateSystemPtr
const
&
getOriginalCS
()
const
;
protected:
//! internal method
...
...
@@ -88,7 +88,7 @@ namespace corsika {
private:
Eigen
::
Matrix2d
boost_
;
Eigen
::
Matrix2d
inverseBoost_
;
CoordinateSystemPtr
originalCS_
;
CoordinateSystemPtr
const
originalCS_
;
CoordinateSystemPtr
rotatedCS_
;
};
}
// namespace corsika
...
...
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