IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 708378e4 authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan:
Browse files

use ShowerAxis in vertical_EAS

parent 476872e6
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#include <corsika/environment/FlatExponential.h> #include <corsika/environment/FlatExponential.h>
#include <corsika/environment/LayeredSphericalAtmosphereBuilder.h> #include <corsika/environment/LayeredSphericalAtmosphereBuilder.h>
#include <corsika/environment/NuclearComposition.h> #include <corsika/environment/NuclearComposition.h>
#include <corsika/environment/ShowerAxis.h>
#include <corsika/geometry/Plane.h> #include <corsika/geometry/Plane.h>
#include <corsika/geometry/Sphere.h> #include <corsika/geometry/Sphere.h>
#include <corsika/process/ProcessSequence.h> #include <corsika/process/ProcessSequence.h>
...@@ -140,9 +141,8 @@ int main(int argc, char** argv) { ...@@ -140,9 +141,8 @@ int main(int argc, char** argv) {
particles::Code::Proton, E0, plab, injectionPos, 0_ns}); particles::Code::Proton, E0, plab, injectionPos, 0_ns});
} }
Line const line(injectionPos, plab.normalized() * 1_m * 1_Hz); environment::ShowerAxis const showerAxis{injectionPos, (injectionPos - showerCore) * 2,
auto const velocity = line.GetV0().norm(); env};
setup::Trajectory const showerAxis(line, (injectionPos - showerCore).norm() / velocity);
// setup processes, decays and interactions // setup processes, decays and interactions
......
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