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
1dc8f44e
Commit
1dc8f44e
authored
4 years ago
by
Maximilian Reininghaus
Committed by
ralfulrich
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
HadronicElasticModel produces secondary
parent
cae982f9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Processes/HadronicElasticModel/HadronicElasticModel.cc
+5
-8
5 additions, 8 deletions
Processes/HadronicElasticModel/HadronicElasticModel.cc
with
5 additions
and
8 deletions
Processes/HadronicElasticModel/HadronicElasticModel.cc
+
5
−
8
View file @
1dc8f44e
...
...
@@ -131,8 +131,7 @@ process::EProcessReturn HadronicElasticInteraction::DoInteraction(SetupView& vie
do
{
// |t| cannot become arbitrarily large, max. given by GER eq. (4.16), so we just
// throw again until we have an acceptable value. Note that the formula holds in
// any frame despite of what is stated in the book.
// throw again until we have an acceptable value.
absT
=
tDist
(
fRNG
);
}
while
(
absT
>=
maxT
);
...
...
@@ -155,12 +154,10 @@ process::EProcessReturn HadronicElasticInteraction::DoInteraction(SetupView& vie
pProjectileCoMNorm
*
sin
(
theta
)
*
sin
(
phi
),
pProjectileCoMNorm
*
cos
(
theta
)})));
p
.
SetMomentum
(
projectileScatteredLab
.
GetSpaceLikeComponents
());
p
.
SetEnergy
(
sqrt
(
projectileScatteredLab
.
GetSpaceLikeComponents
().
squaredNorm
()
+
units
::
static_pow
<
2
>
(
particles
::
GetMass
(
p
.
GetPID
()))));
// Don't use energy from boost. It can be smaller than
// the momentum due to limited numerical accuracy.
view
.
AddSecondary
(
std
::
tuple
<
particles
::
Code
,
units
::
si
::
HEPEnergyType
,
corsika
::
stack
::
MomentumVector
,
geometry
::
Point
,
units
::
si
::
TimeType
>
{
p
.
GetPID
(),
sqrt
(
projectileScatteredLab
.
GetSpaceLikeComponents
().
squaredNorm
()
+
units
::
static_pow
<
2
>
(
particles
::
GetMass
(
p
.
GetPID
()))),
projectileScatteredLab
.
GetSpaceLikeComponents
(),
p
.
GetPosition
(),
p
.
GetTime
()});
return
process
::
EProcessReturn
::
eOk
;
}
...
...
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