diff --git a/Documentation/Examples/CMakeLists.txt b/Documentation/Examples/CMakeLists.txt index 50c937f1415e3c4115c6299970664a795a42092c..3e933ea6f97282fb6a5f0f08a55f6967b8d1a996 100644 --- a/Documentation/Examples/CMakeLists.txt +++ b/Documentation/Examples/CMakeLists.txt @@ -131,8 +131,8 @@ target_link_libraries (staticsequence_example CORSIKAlogging) -CORSIKA_ADD_EXAMPLE (proposal_example RUN_OPTIONS 100.) -target_link_libraries (proposal_example +CORSIKA_ADD_EXAMPLE (em_shower RUN_OPTIONS 100.) +target_link_libraries (em_shower SuperStupidStack CORSIKAunits CORSIKAlogging diff --git a/Documentation/Examples/proposal_example.cc b/Documentation/Examples/em_shower.cc similarity index 98% rename from Documentation/Examples/proposal_example.cc rename to Documentation/Examples/em_shower.cc index 0494ce8a54d86027b999a69ee70818837944c2fb..d83cdacf51cf28cf70a0f97dae8f6a63ae672c91 100644 --- a/Documentation/Examples/proposal_example.cc +++ b/Documentation/Examples/em_shower.cc @@ -50,13 +50,12 @@ using namespace corsika::units::si; void registerRandomStreams() { random::RNGManager::GetInstance().RegisterRandomStream("cascade"); random::RNGManager::GetInstance().RegisterRandomStream("proposal"); - // add PROPOSAL here (?) random::RNGManager::GetInstance().SeedAll(); } int main(int argc, char** argv) { if (argc != 2) { - std::cerr << "usage: proposal_example <energy/GeV>" << std::endl; + std::cerr << "usage: em_shower <energy/GeV>" << std::endl; return 1; } feenableexcept(FE_INVALID); @@ -138,6 +137,7 @@ int main(int argc, char** argv) { process::proposal::Interaction proposal(env, cut); process::proposal::ContinuousProcess em_continuous(env, cut); process::interaction_counter::InteractionCounter proposalCounted(proposal); + process::track_writer::TrackWriter trackWriter("tracks.dat"); // long. profile; columns for gamma, e+, e- still need to be added