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
f187b113
Commit
f187b113
authored
3 years ago
by
Felix Riehn
Browse files
Options
Downloads
Patches
Plain Diff
set CoM energy to nucleon-nucleon for epos
parent
92f99f13
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
+22
-10
22 additions, 10 deletions
corsika/detail/modules/epos/InteractionModel.inl
with
22 additions
and
10 deletions
corsika/detail/modules/epos/InteractionModel.inl
+
22
−
10
View file @
f187b113
...
@@ -76,7 +76,10 @@ namespace corsika::epos {
...
@@ -76,7 +76,10 @@ namespace corsika::epos {
::
epos
::
aaset_
(
iarg
);
::
epos
::
aaset_
(
iarg
);
// debug output settings
// debug output settings
::
epos
::
prnt1_
.
ish
=
0
;
// debug level in epos, 0: off, 6: medium output
if
(
epos_listing_
)
::
epos
::
prnt1_
.
ish
=
4
;
else
::
epos
::
prnt1_
.
ish
=
0
;
// debug level in epos, 0: off, 6: medium output
::
epos
::
prnt3_
.
iwseed
=
0
;
// 1: printout seeds, 0: off
::
epos
::
prnt3_
.
iwseed
=
0
;
// 1: printout seeds, 0: off
::
epos
::
files_
.
ifch
=
6
;
// output unit, 6: screen
::
epos
::
files_
.
ifch
=
6
;
// output unit, 6: screen
...
@@ -366,19 +369,22 @@ namespace corsika::epos {
...
@@ -366,19 +369,22 @@ namespace corsika::epos {
count_
=
count_
+
1
;
count_
=
count_
+
1
;
// define projectile
// define nucleon-nucleon center-of-mass frame
// define projectile, in lab frame
auto
const
projectileP4NN
=
auto
const
sqrtS2
=
(
projectileP4
+
targetP4
).
getNormSqr
();
projectileP4
/
(
is_nucleus
(
projectileId
)
?
get_nucleus_A
(
projectileId
)
:
1
);
HEPEnergyType
const
sqrtS
=
sqrt
(
sqrtS2
);
auto
const
targetP4NN
=
if
(
!
isValid
(
projectileId
,
targetId
,
sqrtS
))
{
targetP4
/
(
is_nucleus
(
targetId
)
?
get_nucleus_A
(
targetId
)
:
1
);
auto
const
SNN
=
(
projectileP4NN
+
targetP4NN
).
getNormSqr
();
HEPEnergyType
const
sqrtSNN
=
sqrt
(
SNN
);
if
(
!
isValid
(
projectileId
,
targetId
,
sqrtSNN
))
{
throw
std
::
runtime_error
(
"invalid projectile/target/energy combination."
);
throw
std
::
runtime_error
(
"invalid projectile/target/energy combination."
);
}
}
HEPEnergyType
const
Elab
=
(
sqrtS2
-
static_pow
<
2
>
(
get_mass
(
projectileId
))
-
HEPEnergyType
const
Elab
=
(
SNN
-
static_pow
<
2
>
(
get_mass
(
projectileId
))
-
static_pow
<
2
>
(
get_mass
(
targetId
)))
/
static_pow
<
2
>
(
get_mass
(
targetId
)))
/
(
2
*
get_mass
(
targetId
));
(
2
*
get_mass
(
targetId
));
// system of initial-state
// system of initial-state
COMBoost
const
boost
(
projectileP4
,
targetP4
);
COMBoost
const
boost
(
projectileP4
NN
,
targetP4
NN
);
auto
const
&
originalCS
=
boost
.
getOriginalCS
();
auto
const
&
originalCS
=
boost
.
getOriginalCS
();
auto
const
&
csPrime
=
auto
const
&
csPrime
=
...
@@ -392,10 +398,16 @@ namespace corsika::epos {
...
@@ -392,10 +398,16 @@ namespace corsika::epos {
"doInteraction: interaction, projectile id={}, E={}, p3={} "
,
"doInteraction: interaction, projectile id={}, E={}, p3={} "
,
projectileId
,
projectileP4
.
getTimeLikeComponent
(),
projectileId
,
projectileP4
.
getTimeLikeComponent
(),
projectileP4
.
getSpaceLikeComponents
());
projectileP4
.
getSpaceLikeComponents
());
CORSIKA_LOGGER_DEBUG
(
logger_
,
"doInteraction: projectile per-nucleon ENN={}, p3NN={} "
,
projectileP4NN
.
getTimeLikeComponent
(),
projectileP4NN
.
getSpaceLikeComponents
());
CORSIKA_LOGGER_DEBUG
(
CORSIKA_LOGGER_DEBUG
(
logger_
,
"doInteraction: interaction, target id={}, E={}, p3={} "
,
targetId
,
logger_
,
"doInteraction: interaction, target id={}, E={}, p3={} "
,
targetId
,
targetP4
.
getTimeLikeComponent
(),
targetP4
.
getSpaceLikeComponents
());
targetP4
.
getTimeLikeComponent
(),
targetP4
.
getSpaceLikeComponents
());
CORSIKA_LOGGER_DEBUG
(
logger_
,
"doInteraction: Elab={}, sqrtS={} "
,
Elab
,
sqrtS
);
CORSIKA_LOGGER_DEBUG
(
logger_
,
"doInteraction: target per-nucleon ENN={}, p3NN={} "
,
targetP4NN
.
getTimeLikeComponent
(),
targetP4NN
.
getSpaceLikeComponents
());
CORSIKA_LOGGER_DEBUG
(
logger_
,
"doInteraction: Elab={}, sqrtSNN={} "
,
Elab
,
sqrtSNN
);
int
beamA
=
1
;
int
beamA
=
1
;
int
beamZ
=
1
;
int
beamZ
=
1
;
...
@@ -413,7 +425,7 @@ namespace corsika::epos {
...
@@ -413,7 +425,7 @@ namespace corsika::epos {
targetA
=
get_nucleus_A
(
targetId
);
targetA
=
get_nucleus_A
(
targetId
);
targetZ
=
get_nucleus_Z
(
targetId
);
targetZ
=
get_nucleus_Z
(
targetId
);
}
}
initializeEventCoM
(
projectileId
,
beamA
,
beamZ
,
targetId
,
targetA
,
targetZ
,
sqrtS
);
initializeEventCoM
(
projectileId
,
beamA
,
beamZ
,
targetId
,
targetA
,
targetZ
,
sqrtS
NN
);
// create event
// create event
int
iarg
=
1
;
int
iarg
=
1
;
...
...
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