IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 91e47b3f authored by ralfulrich's avatar ralfulrich Committed by Maximilian Sackel
Browse files

renamed proposal_example to em_shower and remove comment

parent e14b9192
No related branches found
No related tags found
No related merge requests found
...@@ -131,8 +131,8 @@ target_link_libraries (staticsequence_example ...@@ -131,8 +131,8 @@ target_link_libraries (staticsequence_example
CORSIKAlogging) CORSIKAlogging)
CORSIKA_ADD_EXAMPLE (proposal_example RUN_OPTIONS 100.) CORSIKA_ADD_EXAMPLE (em_shower RUN_OPTIONS 100.)
target_link_libraries (proposal_example target_link_libraries (em_shower
SuperStupidStack SuperStupidStack
CORSIKAunits CORSIKAunits
CORSIKAlogging CORSIKAlogging
......
...@@ -50,13 +50,12 @@ using namespace corsika::units::si; ...@@ -50,13 +50,12 @@ using namespace corsika::units::si;
void registerRandomStreams() { void registerRandomStreams() {
random::RNGManager::GetInstance().RegisterRandomStream("cascade"); random::RNGManager::GetInstance().RegisterRandomStream("cascade");
random::RNGManager::GetInstance().RegisterRandomStream("proposal"); random::RNGManager::GetInstance().RegisterRandomStream("proposal");
// add PROPOSAL here (?)
random::RNGManager::GetInstance().SeedAll(); random::RNGManager::GetInstance().SeedAll();
} }
int main(int argc, char** argv) { int main(int argc, char** argv) {
if (argc != 2) { if (argc != 2) {
std::cerr << "usage: proposal_example <energy/GeV>" << std::endl; std::cerr << "usage: em_shower <energy/GeV>" << std::endl;
return 1; return 1;
} }
feenableexcept(FE_INVALID); feenableexcept(FE_INVALID);
...@@ -138,6 +137,7 @@ int main(int argc, char** argv) { ...@@ -138,6 +137,7 @@ int main(int argc, char** argv) {
process::proposal::Interaction proposal(env, cut); process::proposal::Interaction proposal(env, cut);
process::proposal::ContinuousProcess em_continuous(env, cut); process::proposal::ContinuousProcess em_continuous(env, cut);
process::interaction_counter::InteractionCounter proposalCounted(proposal); process::interaction_counter::InteractionCounter proposalCounted(proposal);
process::track_writer::TrackWriter trackWriter("tracks.dat"); process::track_writer::TrackWriter trackWriter("tracks.dat");
// long. profile; columns for gamma, e+, e- still need to be added // long. profile; columns for gamma, e+, e- still need to be added
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment