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
41d1439c
Commit
41d1439c
authored
4 years ago
by
Felix Riehn
Committed by
ralfulrich
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
HadronicElasticModel
parent
0e36b6b0
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/HadronicElasticModel.inl
+12
-10
12 additions, 10 deletions
corsika/detail/modules/HadronicElasticModel.inl
with
12 additions
and
10 deletions
corsika/detail/modules/HadronicElasticModel.inl
+
12
−
10
View file @
41d1439c
...
...
@@ -52,7 +52,7 @@ namespace corsika {
avgCrossSection
+=
getCrossSection
(
s
)
*
fractions
[
i
];
}
std
::
cout
<<
"avgCrossSection:
"
<<
avgCrossSection
/
1
_mb
<<
" mb"
<<
std
::
endl
;
CORSIKA_LOG_DEBUG
(
"avgCrossSection:
{} mb"
,
avgCrossSection
/
1
_mb
)
;
return
avgCrossSection
;
}();
...
...
@@ -116,7 +116,7 @@ namespace corsika {
auto
const
s
=
static_pow
<
2
>
(
sqrtS
);
auto
const
B
=
this
->
B
(
s
);
std
::
cout
<<
B
<<
std
::
endl
;
CORSIKA_LOG_DEBUG
(
B
)
;
ExponentialDistribution
tDist
(
1
/
B
);
auto
const
absT
=
[
&
]()
{
...
...
@@ -133,10 +133,12 @@ namespace corsika {
return
absT
;
}();
std
::
cout
<<
"HadronicElasticInteraction: s = "
<<
s
*
constants
::
invGeVsq
<<
" GeV²; absT = "
<<
absT
*
constants
::
invGeVsq
<<
" GeV² (max./GeV² = "
<<
4
*
constants
::
invGeVsq
*
projectileMomentumSquaredNorm
<<
')'
<<
std
::
endl
;
CORSIKA_LOG_DEBUG
(
"HadronicElasticInteraction: s = {}"
" GeV²; absT = {} "
" GeV² (max./GeV² = {})"
,
s
*
constants
::
invGeVsq
,
absT
*
constants
::
invGeVsq
,
4
*
constants
::
invGeVsq
*
projectileMomentumSquaredNorm
);
auto
const
theta
=
2
*
asin
(
sqrt
(
absT
/
(
4
*
pProjectileCoMSqNorm
)));
auto
const
phi
=
phiDist
(
RNG_
);
...
...
@@ -163,8 +165,8 @@ namespace corsika {
auto
const
result
=
(
2
*
b_p
+
2
*
b_p
+
4
*
pow
(
s
*
constants
::
invGeVsq
,
gfEpsilon
)
-
4.2
)
*
constants
::
invGeVsq
;
std
::
cout
<<
"B("
<<
s
<<
") = "
<<
result
/
constants
::
invGeVsq
<<
" GeV¯²"
<<
std
::
endl
;
CORSIKA_LOG_DEBUG
(
"B({}) = {} GeV¯²"
,
s
,
result
/
constants
::
invGeVsq
);
return
result
;
}
...
...
@@ -180,8 +182,8 @@ namespace corsika {
static_pow
<
2
>
(
sigmaTotal
)
/
(
16
*
constants
::
pi
*
convert_HEP_to_SI
<
CrossSectionType
::
dimension_type
>
(
B
(
s
)));
std
::
cout
<<
"HEM sigmaTot =
"
<<
sigmaTotal
/
1
_mb
<<
" mb"
<<
std
::
endl
;
std
::
cout
<<
"HEM sigmaElastic =
"
<<
sigmaElastic
/
1
_mb
<<
" mb"
<<
std
::
endl
;
CORSIKA_LOG_DEBUG
(
"HEM sigmaTot =
{} mb"
,
sigmaTotal
/
1
_mb
)
;
CORSIKA_LOG_DEBUG
(
"HEM sigmaElastic =
{} mb"
,
sigmaElastic
/
1
_mb
)
;
return
sigmaElastic
;
}
...
...
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