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
864558ae
Commit
864558ae
authored
3 years ago
by
Felix Riehn
Browse files
Options
Downloads
Patches
Plain Diff
cleaning epos
parent
f187b113
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
corsika/detail/modules/epos/InteractionModel.inl
+5
-8
5 additions, 8 deletions
corsika/detail/modules/epos/InteractionModel.inl
with
5 additions
and
8 deletions
corsika/detail/modules/epos/InteractionModel.inl
+
5
−
8
View file @
864558ae
...
...
@@ -147,18 +147,18 @@ namespace corsika::epos {
inline
void
InteractionModel
::
initializeEventCoM
(
Code
const
idBeam
,
int
const
iBeamA
,
int
const
iBeamZ
,
Code
const
idTarget
,
int
const
iTargetA
,
int
const
iTargetZ
,
HEPEnergyType
const
Ecm
)
const
{
HEPEnergyType
const
Ecm
NN
)
const
{
CORSIKA_LOGGER_TRACE
(
logger_
,
"initialize event in CoM frame!"
" Ecm={}"
,
Ecm
);
Ecm
NN
);
::
epos
::
lept1_
.
engy
=
-
1.
;
::
epos
::
enrgy_
.
ecms
=
-
1.
;
::
epos
::
enrgy_
.
elab
=
-
1.
;
::
epos
::
enrgy_
.
ekin
=
-
1.
;
::
epos
::
hadr1_
.
pnll
=
-
1.
;
::
epos
::
enrgy_
.
ecms
=
Ecm
/
1
_GeV
;
// -> c.m.s. frame
::
epos
::
enrgy_
.
ecms
=
Ecm
NN
/
1
_GeV
;
// -> c.m.s. frame
CORSIKA_LOGGER_TRACE
(
logger_
,
"inside EPOS: Ecm={}, Elab={}"
,
::
epos
::
enrgy_
.
ecms
,
::
epos
::
enrgy_
.
elab
);
...
...
@@ -390,10 +390,6 @@ namespace corsika::epos {
auto
const
&
csPrime
=
boost
.
getRotatedCS
();
// z is along the CM motion (projectile, in Cascade)
HEPMomentumType
const
pLabMag
=
sqrt
((
Elab
-
get_mass
(
projectileId
))
*
(
Elab
+
get_mass
(
projectileId
)));
MomentumVector
pLab
(
csPrime
,
{
0
_eV
,
0
_eV
,
pLabMag
});
CORSIKA_LOGGER_DEBUG
(
logger_
,
"doInteraction: interaction, projectile id={}, E={}, p3={} "
,
projectileId
,
projectileP4
.
getTimeLikeComponent
(),
...
...
@@ -414,7 +410,7 @@ namespace corsika::epos {
if
(
is_nucleus
(
projectileId
))
{
beamA
=
get_nucleus_A
(
projectileId
);
beamZ
=
get_nucleus_Z
(
projectileId
);
CORSIKA_LOGGER_DEBUG
(
logger_
,
"A={}, Z={} "
,
beamA
,
beamZ
);
CORSIKA_LOGGER_DEBUG
(
logger_
,
"
projectile:
A={}, Z={} "
,
beamA
,
beamZ
);
}
// // from corsika7 interface
...
...
@@ -424,6 +420,7 @@ namespace corsika::epos {
if
(
is_nucleus
(
targetId
))
{
targetA
=
get_nucleus_A
(
targetId
);
targetZ
=
get_nucleus_Z
(
targetId
);
CORSIKA_LOGGER_DEBUG
(
logger_
,
"target: A={}, Z={} "
,
beamA
,
beamZ
);
}
initializeEventCoM
(
projectileId
,
beamA
,
beamZ
,
targetId
,
targetA
,
targetZ
,
sqrtSNN
);
...
...
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