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
042221fc
Commit
042221fc
authored
2 years ago
by
Maximilian Reininghaus
Committed by
Maximilian Reininghaus
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fixed boost (4mom per nucleon)
parent
c1d3de62
No related branches found
Branches containing commit
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/qgsjetII/InteractionModel.inl
+5
-6
5 additions, 6 deletions
corsika/detail/modules/qgsjetII/InteractionModel.inl
with
5 additions
and
6 deletions
corsika/detail/modules/qgsjetII/InteractionModel.inl
+
5
−
6
View file @
042221fc
...
...
@@ -141,10 +141,8 @@ namespace corsika::qgsjetII {
CORSIKA_LOG_DEBUG
(
"target: {}, qgsjetII code/A: {}"
,
targetId
,
targetMassNumber
);
// select QGSJetII internal projectile type
int
projectileMassNumber
=
1
;
// "1" means "hadron"
QgsjetIIHadronType
qgsjet_hadron_type
=
qgsjetII
::
getQgsjetIIHadronType
(
projectileId
);
if
(
qgsjet_hadron_type
==
QgsjetIIHadronType
::
NucleusType
)
{
projectileMassNumber
=
get_nucleus_A
(
projectileId
);
qgsjet_hadron_type
=
bernoulli_
(
rng_
)
?
QgsjetIIHadronType
::
ProtonType
:
QgsjetIIHadronType
::
NeutronType
;
}
else
if
(
qgsjet_hadron_type
==
QgsjetIIHadronType
::
NeutralLightMesonType
)
{
...
...
@@ -160,8 +158,8 @@ namespace corsika::qgsjetII {
static_cast
<
QgsjetIICodeIntType
>
(
qgsjet_hadron_type
);
CORSIKA_LOG_DEBUG
(
"qgsjet_hadron_type_int={} projectileMassNumber={} targetMassNumber={}"
,
qgsjet_hadron_type_int
,
p
rojectile
MassNumber
,
targetMassNumber
);
qgini_
(
ElabN
/
1
_GeV
,
qgsjet_hadron_type_int
,
p
rojectile
MassNumber
,
targetMassNumber
);
qgsjet_hadron_type_int
,
AfactorP
rojectile
,
AfactorTarget
);
qgini_
(
ElabN
/
1
_GeV
,
qgsjet_hadron_type_int
,
AfactorP
rojectile
,
AfactorTarget
);
qgconf_
();
CoordinateSystemPtr
const
&
rootCS
=
get_root_CoordinateSystem
();
...
...
@@ -178,7 +176,7 @@ namespace corsika::qgsjetII {
// rest.
// system of initial-state
COMBoost
boost
{
projectileP4
,
targetP4
}
;
COMBoost
boost
(
projectileP4
/
AfactorProjectile
,
targetP4
/
AfactorTarget
)
;
auto
const
&
originalCS
=
boost
.
getOriginalCS
();
auto
const
&
csPrime
=
...
...
@@ -188,7 +186,8 @@ namespace corsika::qgsjetII {
MomentumVector
const
pLab
{
csPrime
,
{
0
_eV
,
0
_eV
,
pLabMag
}};
// internal QGSJetII system: hadron-nucleon lab. frame!
COMBoost
const
boostInternal
({
Elab
,
pLab
},
targetMass
);
COMBoost
const
boostInternal
({
Elab
/
AfactorProjectile
,
pLab
/
AfactorProjectile
},
targetMass
/
AfactorTarget
);
// felix
// fragments
QGSJetIIFragmentsStack
qfs
;
...
...
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