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
c1e3e05d
Commit
c1e3e05d
authored
6 years ago
by
felix@home
Committed by
Felix Riehn
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
first pieces of interactions in nuclib
parent
f18e43c2
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Processes/Sibyll/NuclearInteraction.h
+10
-9
10 additions, 9 deletions
Processes/Sibyll/NuclearInteraction.h
Processes/Sibyll/sibyll2.3c.h
+0
-2
0 additions, 2 deletions
Processes/Sibyll/sibyll2.3c.h
Processes/Sibyll/testSibyll.cc
+1
-1
1 addition, 1 deletion
Processes/Sibyll/testSibyll.cc
with
11 additions
and
12 deletions
Processes/Sibyll/NuclearInteraction.h
+
10
−
9
View file @
c1e3e05d
...
@@ -58,16 +58,17 @@ namespace corsika::process::sibyll {
...
@@ -58,16 +58,17 @@ namespace corsika::process::sibyll {
using
namespace
corsika
::
units
::
si
;
using
namespace
corsika
::
units
::
si
;
double
sigProd
,
dummy
,
dum1
,
dum2
,
dum3
,
dum4
;
double
sigProd
,
dummy
,
dum1
,
dum2
,
dum3
,
dum4
;
double
dumdif
[
3
];
double
dumdif
[
3
];
if
(
!
corsika
::
particles
::
IsNucleus
(
BeamId
)){
sigProd
=
std
::
numeric_limits
<
double
>::
infinity
();
return
std
::
make_tuple
(
sigProd
*
1
_mbarn
,
1
);
}
// TODO: use nuclib to calc. nuclear cross sections
corsika
::
particles
::
Code
BeamIdToUse
;
// FOR NOW: use proton cross section for nuclei
if
(
corsika
::
particles
::
IsNucleus
(
BeamId
)){
auto
const
BeamIdToUse
=
corsika
::
particles
::
Proton
::
GetCode
();
std
::
cout
<<
"WARNING: replacing beam nucleus with proton!"
<<
std
::
endl
;
// TODO: use nuclib to calc. nuclear cross sections
// FOR NOW: use proton cross section for nuclei
BeamIdToUse
=
corsika
::
particles
::
Proton
::
GetCode
();
std
::
cout
<<
"WARNING: replacing beam nucleus with proton!"
<<
std
::
endl
;
}
else
{
BeamIdToUse
=
BeamId
;
}
const
int
iBeam
=
process
::
sibyll
::
GetSibyllXSCode
(
BeamIdToUse
);
const
int
iBeam
=
process
::
sibyll
::
GetSibyllXSCode
(
BeamIdToUse
);
const
double
dEcm
=
CoMenergy
/
1
_GeV
;
const
double
dEcm
=
CoMenergy
/
1
_GeV
;
...
...
This diff is collapsed.
Click to expand it.
Processes/Sibyll/sibyll2.3c.h
+
0
−
2
View file @
c1e3e05d
...
@@ -102,8 +102,6 @@ void sibyll_(const int&, const int&, const double&);
...
@@ -102,8 +102,6 @@ void sibyll_(const int&, const int&, const double&);
// subroutine to initiate sibyll
// subroutine to initiate sibyll
void
sibyll_ini_
();
void
sibyll_ini_
();
// subroutine to initiate nuclib
void
nuc_nuc_ini_
();
// subroutine to SET DECAYS
// subroutine to SET DECAYS
void
dec_ini_
();
void
dec_ini_
();
...
...
This diff is collapsed.
Click to expand it.
Processes/Sibyll/testSibyll.cc
+
1
−
1
View file @
c1e3e05d
...
@@ -144,7 +144,7 @@ TEST_CASE("SibyllInterface", "[processes]") {
...
@@ -144,7 +144,7 @@ TEST_CASE("SibyllInterface", "[processes]") {
auto
particle
=
stack
.
AddParticle
(
particles
::
Code
::
Proton
,
E0
,
plab
,
pos
,
0
_ns
);
auto
particle
=
stack
.
AddParticle
(
particles
::
Code
::
Proton
,
E0
,
plab
,
pos
,
0
_ns
);
Interaction
model
(
env
);
Nuclear
Interaction
model
(
env
);
model
.
Init
();
model
.
Init
();
[[
maybe_unused
]]
const
process
::
EProcessReturn
ret
=
[[
maybe_unused
]]
const
process
::
EProcessReturn
ret
=
...
...
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