IAP GITLAB

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

use ShowerAxis in cascade_example

parent 7ca2ee5d
No related branches found
No related tags found
No related merge requests found
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
#include <corsika/environment/Environment.h> #include <corsika/environment/Environment.h>
#include <corsika/environment/HomogeneousMedium.h> #include <corsika/environment/HomogeneousMedium.h>
#include <corsika/environment/NuclearComposition.h> #include <corsika/environment/NuclearComposition.h>
#include <corsika/environment/ShowerAxis.h>
#include <corsika/geometry/Sphere.h> #include <corsika/geometry/Sphere.h>
...@@ -107,6 +108,8 @@ int main() { ...@@ -107,6 +108,8 @@ int main() {
rootCS, 0_m, 0_m, rootCS, 0_m, 0_m,
height_atmosphere); // this is the CORSIKA 7 start of atmosphere/universe height_atmosphere); // this is the CORSIKA 7 start of atmosphere/universe
ShowerAxis const showerAxis{injectionPos, Vector{rootCS, 0_m, 0_m, 120_km}, env};
{ {
auto elab2plab = [](HEPEnergyType Elab, HEPMassType m) { auto elab2plab = [](HEPEnergyType Elab, HEPMassType m) {
return sqrt((Elab - m) * (Elab + m)); return sqrt((Elab - m) * (Elab + m));
...@@ -141,8 +144,7 @@ int main() { ...@@ -141,8 +144,7 @@ int main() {
process::particle_cut::ParticleCut cut(80_GeV); process::particle_cut::ParticleCut cut(80_GeV);
process::track_writer::TrackWriter trackWriter("tracks.dat"); process::track_writer::TrackWriter trackWriter("tracks.dat");
process::energy_loss::EnergyLoss eLoss( process::energy_loss::EnergyLoss eLoss{showerAxis};
injectionPos, geometry::Vector<dimensionless_d>(rootCS, {0, 0, -1}));
// assemble all processes into an ordered process list // assemble all processes into an ordered process list
auto sequence = stackInspect << sibyll << sibyllNuc << decay << eLoss << cut auto sequence = stackInspect << sibyll << sibyllNuc << decay << eLoss << cut
......
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