IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 1f94c2b1 authored by ralfulrich's avatar ralfulrich
Browse files

examples

parent 63e17644
No related branches found
No related tags found
No related merge requests found
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
#include <corsika/media/MediumPropertyModel.hpp> #include <corsika/media/MediumPropertyModel.hpp>
#include <corsika/media/UniformMagneticField.hpp> #include <corsika/media/UniformMagneticField.hpp>
#include <corsika/media/ShowerAxis.hpp> #include <corsika/media/ShowerAxis.hpp>
#include <corsika/media/SlidingPlanarExponential.hpp> #include <corsika/media/CORSIKA7Atmospheres.hpp>
#include <corsika/modules/BetheBlochPDG.hpp> #include <corsika/modules/BetheBlochPDG.hpp>
#include <corsika/modules/LongitudinalProfile.hpp> #include <corsika/modules/LongitudinalProfile.hpp>
...@@ -212,7 +212,7 @@ int main(int argc, char** argv) { ...@@ -212,7 +212,7 @@ int main(int argc, char** argv) {
ofstream atmout("earth.dat"); ofstream atmout("earth.dat");
for (LengthType h = 0_m; h < 110_km; h += 100_m) { for (LengthType h = 0_m; h < 110_km; h += 100_m) {
Point const ptest{rootCS, 0_m, 0_m, builder.getPlanetRadius() + h}; Point const ptest{rootCS, 0_m, 0_m, constants::EarthRadius::Mean + h};
auto rho = auto rho =
env.getUniverse()->getContainingNode(ptest)->getModelProperties().getMassDensity( env.getUniverse()->getContainingNode(ptest)->getModelProperties().getMassDensity(
ptest); ptest);
...@@ -257,8 +257,8 @@ int main(int argc, char** argv) { ...@@ -257,8 +257,8 @@ int main(int argc, char** argv) {
/* === END: CONSTRUCT PRIMARY PARTICLE === */ /* === END: CONSTRUCT PRIMARY PARTICLE === */
/* === START: CONSTRUCT GEOMETRY === */ /* === START: CONSTRUCT GEOMETRY === */
auto const observationHeight = 0_km + builder.getPlanetRadius(); auto const observationHeight = 0_km + constants::EarthRadius::Mean;
auto const injectionHeight = 111.75_km + builder.getPlanetRadius(); auto const injectionHeight = 111.75_km + constants::EarthRadius::Mean;
auto const t = -observationHeight * cos(thetaRad) + auto const t = -observationHeight * cos(thetaRad) +
sqrt(-static_pow<2>(sin(thetaRad) * observationHeight) + sqrt(-static_pow<2>(sin(thetaRad) * observationHeight) +
static_pow<2>(injectionHeight)); static_pow<2>(injectionHeight));
......
...@@ -118,8 +118,8 @@ int main(int argc, char** argv) { ...@@ -118,8 +118,8 @@ int main(int argc, char** argv) {
cout << "input momentum: " << plab.getComponents() / 1_GeV cout << "input momentum: " << plab.getComponents() / 1_GeV
<< ", norm = " << plab.getNorm() << endl; << ", norm = " << plab.getNorm() << endl;
auto const observationHeight = 1.4_km + builder.getPlanetRadius(); auto const observationHeight = 1.4_km + constants::EarthRadius::Mean;
auto const injectionHeight = 112.75_km + builder.getPlanetRadius(); auto const injectionHeight = 112.75_km + constants::EarthRadius::Mean;
auto const t = -observationHeight * cos(thetaRad) + auto const t = -observationHeight * cos(thetaRad) +
sqrt(-static_pow<2>(sin(thetaRad) * observationHeight) + sqrt(-static_pow<2>(sin(thetaRad) * observationHeight) +
static_pow<2>(injectionHeight)); static_pow<2>(injectionHeight));
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
#include <corsika/media/MediumPropertyModel.hpp> #include <corsika/media/MediumPropertyModel.hpp>
#include <corsika/media/UniformMagneticField.hpp> #include <corsika/media/UniformMagneticField.hpp>
#include <corsika/media/ShowerAxis.hpp> #include <corsika/media/ShowerAxis.hpp>
#include <corsika/media/SlidingPlanarExponential.hpp> #include <corsika/media/CORSIKA7Atmospheres.hpp>
#include <corsika/modules/BetheBlochPDG.hpp> #include <corsika/modules/BetheBlochPDG.hpp>
#include <corsika/modules/LongitudinalProfile.hpp> #include <corsika/modules/LongitudinalProfile.hpp>
......
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