diff --git a/Documentation/Examples/CMakeLists.txt b/Documentation/Examples/CMakeLists.txt index 81c6fc535538d6789ee6170fbe44e6b2fb7fedd5..8159853875f1155931be45057b15dbd90b6cf153 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 ca27eac3d43e6f37cac296af3e7523de6ac7fa6b..455939072950e977698863c52b7c15f3ef6748a7 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 b42c3a04bc829434964aeb0c52faaac411e9647a..e81e2d92e7c2813bd9459beeaa81b3d92fb38a39 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