From c07f973c01016887409ceadb3d160737f8d3858b Mon Sep 17 00:00:00 2001 From: Maximilian Reininghaus <maximilian.reininghaus@tu-dortmund.de> Date: Wed, 8 Nov 2023 03:33:43 +0100 Subject: [PATCH] removed Random.hpp from examples --- examples/boundary_example.cpp | 10 ---------- examples/cascade_example.cpp | 10 ---------- examples/cascade_proton_example.cpp | 10 ---------- examples/clover_leaf.cpp | 13 +------------ examples/corsika.cpp | 10 ---------- examples/em_shower.cpp | 10 ---------- examples/hybrid_MC.cpp | 10 ---------- examples/mars.cpp | 10 ---------- examples/particle_list_example.cpp | 10 ---------- examples/radio_em_shower.cpp | 12 +----------- examples/synchrotron_test_C8tracking.cpp | 13 +------------ examples/synchrotron_test_manual_tracking.cpp | 13 +------------ examples/vertical_EAS.cpp | 10 ---------- examples/water.cpp | 1 - 14 files changed, 4 insertions(+), 138 deletions(-) diff --git a/examples/boundary_example.cpp b/examples/boundary_example.cpp index b9037bf01..895b5214e 100644 --- a/examples/boundary_example.cpp +++ b/examples/boundary_example.cpp @@ -29,16 +29,6 @@ #include <corsika/modules/TrackWriter.hpp> #include <corsika/modules/ParticleCut.hpp> -/* - NOTE, WARNING, ATTENTION - - The file Random.hpp implements the hooks of external modules to the C8 random - number generator. It has to occur excatly ONCE per linked - executable. If you include the header below multiple times and - link this togehter, it will fail. - */ -#include <corsika/modules/Random.hpp> - #include <iostream> #include <limits> #include <typeinfo> diff --git a/examples/cascade_example.cpp b/examples/cascade_example.cpp index e373a9d97..351809bf7 100644 --- a/examples/cascade_example.cpp +++ b/examples/cascade_example.cpp @@ -36,16 +36,6 @@ #include <corsika/modules/ParticleCut.hpp> #include <corsika/modules/TrackWriter.hpp> -/* - NOTE, WARNING, ATTENTION - - The .../Random.hpp implement the hooks of external modules to the C8 random - number generator. It has to occur excatly ONCE per linked - executable. If you include the header below multiple times and - link this togehter, it will fail. - */ -#include <corsika/modules/Random.hpp> - #include <iostream> #include <limits> diff --git a/examples/cascade_proton_example.cpp b/examples/cascade_proton_example.cpp index 558893f31..68c7c72cd 100644 --- a/examples/cascade_proton_example.cpp +++ b/examples/cascade_proton_example.cpp @@ -39,16 +39,6 @@ #include <corsika/modules/Pythia8.hpp> #include <corsika/modules/Sibyll.hpp> -/* - NOTE, WARNING, ATTENTION - - The file Random.hpp implements the hooks of external modules to the C8 random - number generator. It has to occur excatly ONCE per linked - executable. If you include the header below multiple times and - link this togehter, it will fail. - */ -#include <corsika/modules/Random.hpp> - #include <iostream> #include <limits> #include <typeinfo> diff --git a/examples/clover_leaf.cpp b/examples/clover_leaf.cpp index 50eb897c2..f1044b9b3 100644 --- a/examples/clover_leaf.cpp +++ b/examples/clover_leaf.cpp @@ -44,17 +44,6 @@ #include <corsika/modules/TimeCut.hpp> // #include <corsika/modules/TrackWriter.hpp> -/* - NOTE, WARNING, ATTENTION - - The .../Random.hpppp implement the hooks of external modules to the C8 random - number generator. It has to occur excatly ONCE per linked - executable. If you include the header below multiple times and - link this together, it will fail. -*/ -#include <corsika/modules/sibyll/Random.hpp> -#include <corsika/modules/urqmd/Random.hpp> - #include <iomanip> #include <iostream> #include <limits> @@ -224,4 +213,4 @@ int main() { CORSIKA_LOG_INFO("gamma: {}", gammaP); output.endOfLibrary(); -} \ No newline at end of file +} diff --git a/examples/corsika.cpp b/examples/corsika.cpp index 1a0aee5d0..dd780bc50 100644 --- a/examples/corsika.cpp +++ b/examples/corsika.cpp @@ -86,16 +86,6 @@ #include <limits> #include <string> -/* - NOTE, WARNING, ATTENTION - - The .../Random.hpppp implement the hooks of external modules to the C8 random - number generator. It has to occur excatly ONCE per linked - executable. If you include the header below multiple times and - link this togehter, it will fail. - */ -#include <corsika/modules/Random.hpp> - using namespace corsika; using namespace std; diff --git a/examples/em_shower.cpp b/examples/em_shower.cpp index 0d7daaf24..cd06faa12 100644 --- a/examples/em_shower.cpp +++ b/examples/em_shower.cpp @@ -51,16 +51,6 @@ #include <string> #include <typeinfo> -/* - NOTE, WARNING, ATTENTION - - The .../Random.hpppp implement the hooks of external modules to the C8 random - number generator. It has to occur exactly ONCE per linked - executable. If you include the header below multiple times and - link this together, it will fail. -*/ -#include <corsika/modules/Random.hpp> - using namespace corsika; using namespace std; diff --git a/examples/hybrid_MC.cpp b/examples/hybrid_MC.cpp index bd5fa6dd7..cd819bdf1 100644 --- a/examples/hybrid_MC.cpp +++ b/examples/hybrid_MC.cpp @@ -60,16 +60,6 @@ #include <limits> #include <string> -/* - NOTE, WARNING, ATTENTION - - The file Random.hpp implements the hooks of external modules to the C8 random - number generator. It has to occur excatly ONCE per linked - executable. If you include the header below multiple times and - link this togehter, it will fail. - */ -#include <corsika/modules/Random.hpp> - using namespace corsika; using namespace std; diff --git a/examples/mars.cpp b/examples/mars.cpp index 1a2b3a839..6a57b6ec3 100644 --- a/examples/mars.cpp +++ b/examples/mars.cpp @@ -69,16 +69,6 @@ #include <limits> #include <string> -/* - NOTE, WARNING, ATTENTION - - The .../Random.hpp implement the hooks of external modules to the C8 random - number generator. It has to occur excatly ONCE per linked - executable. If you include the header below multiple times and - link this togehter, it will fail. - */ -#include <corsika/modules/Random.hpp> - using namespace corsika; using namespace std; diff --git a/examples/particle_list_example.cpp b/examples/particle_list_example.cpp index 36020bc1d..2c9016f52 100644 --- a/examples/particle_list_example.cpp +++ b/examples/particle_list_example.cpp @@ -11,16 +11,6 @@ #include <corsika/modules/Sibyll.hpp> #include <corsika/framework/core/PhysicalUnits.hpp> -/* - NOTE, WARNING, ATTENTION - - The file Random.hpp implements the hooks of external modules to the C8 random - number generator. It has to occur excatly ONCE per linked - executable. If you include the header below multiple times and - link this togehter, it will fail. - */ -#include <corsika/modules/Random.hpp> - #include <iomanip> #include <string> diff --git a/examples/radio_em_shower.cpp b/examples/radio_em_shower.cpp index 084b7fd70..c574755f7 100644 --- a/examples/radio_em_shower.cpp +++ b/examples/radio_em_shower.cpp @@ -61,16 +61,6 @@ #include <string> #include <typeinfo> -/* - NOTE, WARNING, ATTENTION - - The .../Random.hpppp implement the hooks of external modules to the C8 random - number generator. It has to occur exactly ONCE per linked - executable. If you include the header below multiple times and - link this together, it will fail. -*/ -#include <corsika/modules/Random.hpp> - using namespace corsika; using namespace std; @@ -305,4 +295,4 @@ int main(int argc, char** argv) { Efinal / 1_GeV, (Efinal / E0 - 1) * 100); output.endOfLibrary(); -} \ No newline at end of file +} diff --git a/examples/synchrotron_test_C8tracking.cpp b/examples/synchrotron_test_C8tracking.cpp index 30128e568..81d2e56e5 100644 --- a/examples/synchrotron_test_C8tracking.cpp +++ b/examples/synchrotron_test_C8tracking.cpp @@ -37,17 +37,6 @@ #include <corsika/modules/TimeCut.hpp> -/* - NOTE, WARNING, ATTENTION - - The .../Random.hpppp implement the hooks of external modules to the C8 random - number generator. It has to occur excatly ONCE per linked - executable. If you include the header below multiple times and - link this together, it will fail. - */ -#include <corsika/modules/sibyll/Random.hpp> -#include <corsika/modules/urqmd/Random.hpp> - #include <iomanip> #include <iostream> #include <limits> @@ -169,4 +158,4 @@ int main() { CORSIKA_LOG_INFO("gamma: {}", gamma); output.endOfLibrary(); -} \ No newline at end of file +} diff --git a/examples/synchrotron_test_manual_tracking.cpp b/examples/synchrotron_test_manual_tracking.cpp index 32f46ea97..d3b62ac25 100644 --- a/examples/synchrotron_test_manual_tracking.cpp +++ b/examples/synchrotron_test_manual_tracking.cpp @@ -31,17 +31,6 @@ #include <corsika/modules/radio/detectors/AntennaCollection.hpp> #include <corsika/modules/radio/propagators/DummyTestPropagator.hpp> -/* - NOTE, WARNING, ATTENTION - - The .../Random.hpppp implement the hooks of external modules to the C8 random - number generator. It has to occur excatly ONCE per linked - executable. If you include the header below multiple times and - link this together, it will fail. - */ -#include <corsika/modules/sibyll/Random.hpp> -#include <corsika/modules/urqmd/Random.hpp> - #include <iomanip> #include <iostream> #include <limits> @@ -175,4 +164,4 @@ int main() { // trigger the manager to write the data to disk outputs.endOfShower(); outputs.endOfLibrary(); -} \ No newline at end of file +} diff --git a/examples/vertical_EAS.cpp b/examples/vertical_EAS.cpp index 856ed3750..4a64fc19b 100644 --- a/examples/vertical_EAS.cpp +++ b/examples/vertical_EAS.cpp @@ -65,16 +65,6 @@ #include <limits> #include <string> -/* - NOTE, WARNING, ATTENTION - - The .../Random.hpppp implement the hooks of external modules to the C8 random - number generator. It has to occur exactly ONCE per linked - executable. If you include the header below multiple times and - link this together, it will fail. -*/ -#include <corsika/modules/Random.hpp> - using namespace corsika; using namespace std; diff --git a/examples/water.cpp b/examples/water.cpp index 182124d10..577ce4ad8 100644 --- a/examples/water.cpp +++ b/examples/water.cpp @@ -30,7 +30,6 @@ #include <corsika/modules/PROPOSAL.hpp> #include <corsika/modules/ParticleCut.hpp> #include <corsika/modules/Pythia8.hpp> -#include <corsika/modules/Random.hpp> #include <corsika/modules/Sibyll.hpp> #include <corsika/modules/Sophia.hpp> #include <corsika/modules/UrQMD.hpp> -- GitLab