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
fce3c77b
Commit
fce3c77b
authored
5 years ago
by
Felix Riehn
Browse files
Options
Downloads
Patches
Plain Diff
Resolve "pythia8 required to build"
parent
9cc574c0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Documentation/Examples/CMakeLists.txt
+1
-1
1 addition, 1 deletion
Documentation/Examples/CMakeLists.txt
Documentation/Examples/vertical_EAS.cc
+3
-10
3 additions, 10 deletions
Documentation/Examples/vertical_EAS.cc
README.md
+4
-0
4 additions, 0 deletions
README.md
with
8 additions
and
11 deletions
Documentation/Examples/CMakeLists.txt
+
1
−
1
View file @
fce3c77b
...
@@ -90,7 +90,7 @@ target_link_libraries (vertical_EAS
...
@@ -90,7 +90,7 @@ target_link_libraries (vertical_EAS
CORSIKAlogging
CORSIKAlogging
CORSIKArandom
CORSIKArandom
ProcessSibyll
ProcessSibyll
ProcessPythia
#
ProcessPythia
ProcessUrQMD
ProcessUrQMD
ProcessSwitch
ProcessSwitch
CORSIKAcascade
CORSIKAcascade
...
...
This diff is collapsed.
Click to expand it.
Documentation/Examples/vertical_EAS.cc
+
3
−
10
View file @
fce3c77b
...
@@ -28,12 +28,10 @@
...
@@ -28,12 +28,10 @@
#include
<corsika/geometry/Plane.h>
#include
<corsika/geometry/Plane.h>
#include
<corsika/geometry/Sphere.h>
#include
<corsika/geometry/Sphere.h>
//~
#include <corsika/process/sibyll/Decay.h>
#include
<corsika/process/sibyll/Decay.h>
#include
<corsika/process/sibyll/Interaction.h>
#include
<corsika/process/sibyll/Interaction.h>
#include
<corsika/process/sibyll/NuclearInteraction.h>
#include
<corsika/process/sibyll/NuclearInteraction.h>
#include
<corsika/process/pythia/Decay.h>
#include
<corsika/process/urqmd/UrQMD.h>
#include
<corsika/process/urqmd/UrQMD.h>
#include
<corsika/process/particle_cut/ParticleCut.h>
#include
<corsika/process/particle_cut/ParticleCut.h>
...
@@ -65,7 +63,7 @@ using namespace corsika::units::si;
...
@@ -65,7 +63,7 @@ using namespace corsika::units::si;
void
registerRandomStreams
()
{
void
registerRandomStreams
()
{
random
::
RNGManager
::
GetInstance
().
RegisterRandomStream
(
"cascade"
);
random
::
RNGManager
::
GetInstance
().
RegisterRandomStream
(
"cascade"
);
random
::
RNGManager
::
GetInstance
().
RegisterRandomStream
(
"s_rndm"
);
random
::
RNGManager
::
GetInstance
().
RegisterRandomStream
(
"s_rndm"
);
random
::
RNGManager
::
GetInstance
().
RegisterRandomStream
(
"pythia"
);
//
random::RNGManager::GetInstance().RegisterRandomStream("pythia");
random
::
RNGManager
::
GetInstance
().
RegisterRandomStream
(
"UrQMD"
);
random
::
RNGManager
::
GetInstance
().
RegisterRandomStream
(
"UrQMD"
);
random
::
RNGManager
::
GetInstance
().
SeedAll
();
random
::
RNGManager
::
GetInstance
().
SeedAll
();
...
@@ -139,15 +137,10 @@ int main() {
...
@@ -139,15 +137,10 @@ int main() {
// setup processes, decays and interactions
// setup processes, decays and interactions
const
std
::
vector
<
particles
::
Code
>
trackedHadrons
=
{
particles
::
Code
::
PiPlus
,
particles
::
Code
::
PiMinus
,
particles
::
Code
::
KPlus
,
particles
::
Code
::
KMinus
,
particles
::
Code
::
K0Long
,
particles
::
Code
::
K0Short
};
process
::
sibyll
::
Interaction
sibyll
;
process
::
sibyll
::
Interaction
sibyll
;
process
::
sibyll
::
NuclearInteraction
sibyllNuc
(
sibyll
,
env
);
process
::
sibyll
::
NuclearInteraction
sibyllNuc
(
sibyll
,
env
);
//~
process::sibyll::Decay decay
(trackedHadrons)
;
process
::
sibyll
::
Decay
decay
;
process
::
pythia
::
Decay
decay
(
trackedHadrons
);
process
::
particle_cut
::
ParticleCut
cut
(
5
_GeV
);
process
::
particle_cut
::
ParticleCut
cut
(
5
_GeV
);
process
::
track_writer
::
TrackWriter
trackWriter
(
"tracks.dat"
);
process
::
track_writer
::
TrackWriter
trackWriter
(
"tracks.dat"
);
...
...
This diff is collapsed.
Click to expand it.
README.md
+
4
−
0
View file @
fce3c77b
...
@@ -60,6 +60,10 @@ CORSIKA 8 is tested regularly at least on gcc7.3.0 and clang-6.0.0.
...
@@ -60,6 +60,10 @@ CORSIKA 8 is tested regularly at least on gcc7.3.0 and clang-6.0.0.
Additional software prerequisites: eigen3, boost, cmake, g++, git.
Additional software prerequisites: eigen3, boost, cmake, g++, git.
However, eigen3 is shipped in ThirdParty directory, so any installation
However, eigen3 is shipped in ThirdParty directory, so any installation
on the system is optional.
on the system is optional.
In case one wants to use Pythia 8 for particle decays or to simulate showers
in a proton environment, Pythia has to be installed on your system and
switched ON in CMakeLists.txt. We test with Pythia version 8.235.
On a bare Ubuntu 18.04, just add:
On a bare Ubuntu 18.04, just add:
```
```
sudo apt install cmake g++ git
sudo apt install cmake g++ git
...
...
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