From fce3c77b6f19a153dac82bc3da0ab51d05944efb Mon Sep 17 00:00:00 2001 From: Felix Riehn <friehn@lip.pt> Date: Fri, 6 Mar 2020 12:42:08 +0100 Subject: [PATCH] Resolve "pythia8 required to build" --- Documentation/Examples/CMakeLists.txt | 2 +- Documentation/Examples/vertical_EAS.cc | 13 +++---------- README.md | 4 ++++ 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/Documentation/Examples/CMakeLists.txt b/Documentation/Examples/CMakeLists.txt index 81c6fc535..815985387 100644 --- a/Documentation/Examples/CMakeLists.txt +++ b/Documentation/Examples/CMakeLists.txt @@ -90,7 +90,7 @@ target_link_libraries (vertical_EAS CORSIKAlogging CORSIKArandom ProcessSibyll - ProcessPythia + # ProcessPythia ProcessUrQMD ProcessSwitch CORSIKAcascade diff --git a/Documentation/Examples/vertical_EAS.cc b/Documentation/Examples/vertical_EAS.cc index ca27eac3d..455939072 100644 --- a/Documentation/Examples/vertical_EAS.cc +++ b/Documentation/Examples/vertical_EAS.cc @@ -28,12 +28,10 @@ #include <corsika/geometry/Plane.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/NuclearInteraction.h> -#include <corsika/process/pythia/Decay.h> - #include <corsika/process/urqmd/UrQMD.h> #include <corsika/process/particle_cut/ParticleCut.h> @@ -65,7 +63,7 @@ using namespace corsika::units::si; void registerRandomStreams() { random::RNGManager::GetInstance().RegisterRandomStream("cascade"); random::RNGManager::GetInstance().RegisterRandomStream("s_rndm"); - random::RNGManager::GetInstance().RegisterRandomStream("pythia"); + //random::RNGManager::GetInstance().RegisterRandomStream("pythia"); random::RNGManager::GetInstance().RegisterRandomStream("UrQMD"); random::RNGManager::GetInstance().SeedAll(); @@ -139,15 +137,10 @@ int main() { // 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::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::track_writer::TrackWriter trackWriter("tracks.dat"); diff --git a/README.md b/README.md index b42c3a04b..e81e2d92e 100644 --- a/README.md +++ b/README.md @@ -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. However, eigen3 is shipped in ThirdParty directory, so any installation 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: ``` sudo apt install cmake g++ git -- GitLab