IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 6f2cbd14 authored by Remy Prechelt's avatar Remy Prechelt Committed by Ralf Ulrich
Browse files

Moved eprima closer to use in CONEX.

parent 9244476a
No related branches found
No related tags found
No related merge requests found
...@@ -101,8 +101,6 @@ namespace corsika { ...@@ -101,8 +101,6 @@ namespace corsika {
inline void CONEXhybrid::initCascadeEquations() { inline void CONEXhybrid::initCascadeEquations() {
double eprima = primaryEnergy_ / 1_GeV;
// set phi, theta // set phi, theta
Vector<length_d> ez{conexObservationCS_, {0._m, 0._m, -1_m}}; Vector<length_d> ez{conexObservationCS_, {0._m, 0._m, -1_m}};
auto const c = showerAxis_.getDirection().dot(ez) / 1_m; auto const c = showerAxis_.getDirection().dot(ez) / 1_m;
...@@ -128,6 +126,7 @@ namespace corsika { ...@@ -128,6 +126,7 @@ namespace corsika {
// the CORSIKA 8 stream "conex" and "epos"! // the CORSIKA 8 stream "conex" and "epos"!
std::array<int, 3> ioseed{1, 1, 1}; std::array<int, 3> ioseed{1, 1, 1};
double eprima = primaryEnergy_ / 1_GeV;
double xminp = injectionHeight_ / 1_m; double xminp = injectionHeight_ / 1_m;
::conex::conexrun_(ipart, eprima, theta, phi, xminp, dimpact, ioseed.data()); ::conex::conexrun_(ipart, eprima, theta, phi, xminp, dimpact, ioseed.data());
......
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