diff --git a/Documentation/Examples/CMakeLists.txt b/Documentation/Examples/CMakeLists.txt index 30073cfdc3928921ad74ea735b23b0d2b65bb27c..d1bb8d1d9e1f7e9ef755f4dbe30c5c0566c284f7 100644 --- a/Documentation/Examples/CMakeLists.txt +++ b/Documentation/Examples/CMakeLists.txt @@ -25,7 +25,7 @@ add_executable (cascade_example cascade_example.cc) target_compile_options(cascade_example PRIVATE -g) # do not skip asserts target_link_libraries (cascade_example SuperStupidStack CORSIKAunits CORSIKAlogging CORSIKArandom - #~ ProcessSibyll + ProcessSibyll CORSIKAcascade ProcessStackInspector ProcessTrackWriter diff --git a/Documentation/Examples/cascade_example.cc b/Documentation/Examples/cascade_example.cc index bb1dfd37ba64703faa004151b2115a8c64459d4c..28ee47f056ce224af1246362c1bf9bb020e3cbd5 100644 --- a/Documentation/Examples/cascade_example.cc +++ b/Documentation/Examples/cascade_example.cc @@ -10,9 +10,9 @@ #include <corsika/cascade/Cascade.h> #include <corsika/process/ProcessSequence.h> +#include <corsika/process/hadronic_elastic_model/HadronicElasticModel.h> #include <corsika/process/stack_inspector/StackInspector.h> #include <corsika/process/tracking_line/TrackingLine.h> -#include <corsika/process/hadronic_elastic_model/HadronicElasticModel.h> #include <corsika/setup/SetupStack.h> #include <corsika/setup/SetupTrajectory.h> @@ -236,15 +236,14 @@ int main() { corsika::process::sibyll::Interaction sibyll(env); corsika::process::sibyll::Decay decay; ProcessCut cut(8_GeV); - + corsika::random::RNGManager::GetInstance().RegisterRandomStream("HadronicElasticModel"); corsika::process::HadronicElasticModel::HadronicElasticInteraction hadronicElastic(env); - + corsika::process::TrackWriter::TrackWriter trackWriter("tracks.dat"); // assemble all processes into an ordered process list - //~ auto sequence = p0 << sibyll << decay << cut << trackWriter; - auto sequence = hadronicElastic << trackWriter; + auto sequence = p0 << sibyll << decay << hadronicElastic << cut << trackWriter; // cout << "decltype(sequence)=" << type_id_with_cvr<decltype(sequence)>().pretty_name() // << "\n";