IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
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
Model registry
Operate
Environments
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
Air Shower Physics
corsika
Commits
0f567a23
Commit
0f567a23
authored
5 years ago
by
Maximilian Reininghaus
Browse files
Options
Downloads
Patches
Plain Diff
use UrQMD's pdgid function instead of ours
parent
654a40e8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!100
Resolve "Low energy hadronic interactions: UrQMD interface"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Processes/UrQMD/UrQMD.cc
+9
-53
9 additions, 53 deletions
Processes/UrQMD/UrQMD.cc
Processes/UrQMD/UrQMD.h
+1
-0
1 addition, 0 deletions
Processes/UrQMD/UrQMD.h
with
10 additions
and
53 deletions
Processes/UrQMD/UrQMD.cc
+
9
−
53
View file @
0f567a23
...
@@ -151,6 +151,7 @@ corsika::process::EProcessReturn UrQMD::DoInteraction(SetupProjectile& projectil
...
@@ -151,6 +151,7 @@ corsika::process::EProcessReturn UrQMD::DoInteraction(SetupProjectile& projectil
1
_GeV
);
1
_GeV
);
momentum
.
rebase
(
originalCS
);
// transform back into standard lab frame
momentum
.
rebase
(
originalCS
);
// transform back into standard lab frame
std
::
cout
<<
i
<<
" "
<<
code
<<
" "
<<
momentum
.
GetComponents
()
<<
std
::
endl
;
projectile
.
AddSecondary
(
projectile
.
AddSecondary
(
std
::
tuple
<
particles
::
Code
,
HEPEnergyType
,
stack
::
MomentumVector
,
geometry
::
Point
,
std
::
tuple
<
particles
::
Code
,
HEPEnergyType
,
stack
::
MomentumVector
,
geometry
::
Point
,
...
@@ -161,6 +162,8 @@ corsika::process::EProcessReturn UrQMD::DoInteraction(SetupProjectile& projectil
...
@@ -161,6 +162,8 @@ corsika::process::EProcessReturn UrQMD::DoInteraction(SetupProjectile& projectil
if
(
sys_
.
npart
>
0
)
// delete only in case of inelastic collision, otherwise keep
if
(
sys_
.
npart
>
0
)
// delete only in case of inelastic collision, otherwise keep
projectile
.
Delete
();
projectile
.
Delete
();
return
process
::
EProcessReturn
::
eOk
;
}
}
/**
/**
...
@@ -175,59 +178,12 @@ double corsika::process::UrQMD::ranf_(int&) {
...
@@ -175,59 +178,12 @@ double corsika::process::UrQMD::ranf_(int&) {
}
}
corsika
::
particles
::
Code
corsika
::
process
::
UrQMD
::
ConvertFromUrQMD
(
int
vItyp
,
int
vIso3
)
{
corsika
::
particles
::
Code
corsika
::
process
::
UrQMD
::
ConvertFromUrQMD
(
int
vItyp
,
int
vIso3
)
{
static
const
std
::
map
<
std
::
pair
<
int
,
int
>
,
int
>
mapUrQMDToPDG
{
int
const
pdgInt
=
// data from github.com/afedynitch/ParticleDataTool
pdgid_
(
vItyp
,
vIso3
);
// use the conversion function provided by UrQMD
{{
100
,
0
},
22
},
// gamma
if
(
pdgInt
==
0
)
{
// pdgid_ returns 0 on error
{{
101
,
0
},
111
},
// pi0
throw
std
::
runtime_error
(
"UrQMD pdgid() returned 0"
);
{{
101
,
2
},
211
},
// pi+
}
{{
101
,
-
2
},
-
211
},
// pi-
auto
const
pdg
=
static_cast
<
particles
::
PDGCode
>
(
pdgInt
);
{{
106
,
1
},
321
},
// K+
{{
106
,
-
1
},
-
321
},
// K-
{{
1
,
1
},
2212
},
// p
{{
1
,
-
1
},
2112
},
// n
{{
102
,
0
},
221
},
// eta
{{
104
,
2
},
213
},
// rho+
{{
104
,
-
2
},
-
213
},
// rho-
{{
104
,
0
},
113
},
// rho0
{{
108
,
2
},
323
},
// K*+
{{
108
,
-
2
},
-
323
},
// K*-
{{
108
,
0
},
313
},
// K*0
{{
-
108
,
0
},
-
313
},
// K*0-bar
{{
103
,
0
},
223
},
// omega
{{
109
,
0
},
333
},
// phi
{{
40
,
2
},
3222
},
// Sigma+
{{
40
,
0
},
3212
},
// Sigma0
{{
40
,
-
2
},
3112
},
// Sigma-
{{
49
,
0
},
3322
},
// Xi0
{{
49
,
-
1
},
3312
},
// Xi-
{{
27
,
0
},
3122
},
// Lambda0
{{
17
,
4
},
2224
},
// Delta++
{{
17
,
2
},
2214
},
// Delta+
{{
17
,
0
},
2114
},
// Delta0
{{
17
,
-
2
},
1114
},
// Delta-
{{
41
,
2
},
3224
},
// Sigma*+
{{
41
,
0
},
3214
},
// Sigma*0
{{
41
,
-
2
},
3114
},
// Sigma*-
{{
50
,
0
},
3324
},
// Xi*0
{{
50
,
-
1
},
3314
},
// Xi*-
{{
55
,
0
},
3334
},
// Omega-
{{
133
,
2
},
411
},
// D+
{{
133
,
-
2
},
-
411
},
// D-
{{
133
,
0
},
421
},
// D0
{{
-
133
,
0
},
-
421
},
// D0-bar
{{
107
,
0
},
441
},
// etaC
{{
138
,
1
},
431
},
// Ds+
{{
138
,
-
1
},
-
431
},
// Ds-
{{
139
,
1
},
433
},
// Ds*+
{{
139
,
-
1
},
-
433
},
// Ds*-
{{
134
,
1
},
413
},
// D*+
{{
134
,
-
1
},
-
413
},
// D*-
{{
134
,
0
},
10421
},
// D*0
{{
-
134
,
0
},
-
10421
},
// D*0-bar
{{
135
,
0
},
443
},
// jpsi
};
auto
const
pdg
=
static_cast
<
particles
::
PDGCode
>
(
mapUrQMDToPDG
.
at
({
vItyp
,
vIso3
}));
return
particles
::
ConvertFromPDG
(
pdg
);
return
particles
::
ConvertFromPDG
(
pdg
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Processes/UrQMD/UrQMD.h
+
1
−
0
View file @
0f567a23
...
@@ -54,6 +54,7 @@ namespace corsika::process::UrQMD {
...
@@ -54,6 +54,7 @@ namespace corsika::process::UrQMD {
void
cascinit_
(
int
const
&
,
int
const
&
,
int
const
&
);
void
cascinit_
(
int
const
&
,
int
const
&
,
int
const
&
);
double
nucrad_
(
int
const
&
);
double
nucrad_
(
int
const
&
);
void
urqmd_
(
int
&
);
void
urqmd_
(
int
&
);
int
pdgid_
(
int
&
,
int
&
);
// defined in coms.f
// defined in coms.f
extern
struct
{
extern
struct
{
...
...
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