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
33239ed9
Commit
33239ed9
authored
5 years ago
by
ralfulrich
Browse files
Options
Downloads
Patches
Plain Diff
maybe the enum was not setup correctly
parent
ee9ec049
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Processes/QGSJetII/Interaction.cc
+3
-3
3 additions, 3 deletions
Processes/QGSJetII/Interaction.cc
Processes/QGSJetII/ParticleConversion.h
+2
-2
2 additions, 2 deletions
Processes/QGSJetII/ParticleConversion.h
with
5 additions
and
5 deletions
Processes/QGSJetII/Interaction.cc
+
3
−
3
View file @
33239ed9
...
@@ -71,7 +71,7 @@ namespace corsika::process::qgsjetII {
...
@@ -71,7 +71,7 @@ namespace corsika::process::qgsjetII {
if
(
process
::
qgsjetII
::
CanInteract
(
beamId
))
{
if
(
process
::
qgsjetII
::
CanInteract
(
beamId
))
{
const
int
iBeam
=
process
::
qgsjetII
::
GetQgsjetIIXSCodeRaw
(
beamId
);
const
int
xsCode
=
process
::
qgsjetII
::
GetQgsjetIIXSCodeRaw
(
beamId
);
int
iTarget
=
1
;
int
iTarget
=
1
;
if
(
particles
::
IsNucleus
(
targetId
))
{
if
(
particles
::
IsNucleus
(
targetId
))
{
iTarget
=
targetA
;
iTarget
=
targetA
;
...
@@ -88,9 +88,9 @@ namespace corsika::process::qgsjetII {
...
@@ -88,9 +88,9 @@ namespace corsika::process::qgsjetII {
throw
std
::
runtime_error
(
"QgsjetII target outside range. "
);
throw
std
::
runtime_error
(
"QgsjetII target outside range. "
);
}
}
cout
<<
"QgsjetII::GetCrossSection Elab="
<<
Elab
<<
"
iBeam="
<<
iBeam
cout
<<
"QgsjetII::GetCrossSection Elab="
<<
Elab
<<
"
xs-code="
<<
xsCode
<<
" iProjectile="
<<
iProjectile
<<
" iTarget="
<<
iTarget
<<
endl
;
<<
" iProjectile="
<<
iProjectile
<<
" iTarget="
<<
iTarget
<<
endl
;
sigProd
=
qgsect_
(
Elab
/
1
_GeV
,
iBeam
,
iProjectile
,
iTarget
);
sigProd
=
qgsect_
(
Elab
/
1
_GeV
,
xsCode
,
iProjectile
,
iTarget
);
cout
<<
"QgsjetII::GetCrossSection sigProd="
<<
sigProd
<<
endl
;
cout
<<
"QgsjetII::GetCrossSection sigProd="
<<
sigProd
<<
endl
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Processes/QGSJetII/ParticleConversion.h
+
2
−
2
View file @
33239ed9
...
@@ -50,8 +50,8 @@ namespace corsika::process::qgsjetII {
...
@@ -50,8 +50,8 @@ namespace corsika::process::qgsjetII {
Kaon0LType
=
+
5
,
Kaon0LType
=
+
5
,
Kaon0SType
=
-
5
,
Kaon0SType
=
-
5
,
// special codes, not in QGSJetII
// special codes, not in QGSJetII
NucleusType
,
NucleusType
=
100
,
NeutralLightMesonType
NeutralLightMesonType
=
101
,
};
};
using
QgsjetIIHadronTypeIntType
=
std
::
underlying_type
<
QgsjetIIHadronType
>::
type
;
using
QgsjetIIHadronTypeIntType
=
std
::
underlying_type
<
QgsjetIIHadronType
>::
type
;
...
...
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