From 1fc231e188ca5635024e8fd102cb26c2487f8db5 Mon Sep 17 00:00:00 2001 From: Maximilian Reininghaus <maximilian.reininghaus@kit.edu> Date: Tue, 7 Jul 2020 19:05:30 +0200 Subject: [PATCH] call conex init and link SIBYLL statically (still crashes at runtime) --- Processes/CONEXSourceCut/CONEXSourceCut.cc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Processes/CONEXSourceCut/CONEXSourceCut.cc b/Processes/CONEXSourceCut/CONEXSourceCut.cc index 1e8d701ca..bde3df5b1 100644 --- a/Processes/CONEXSourceCut/CONEXSourceCut.cc +++ b/Processes/CONEXSourceCut/CONEXSourceCut.cc @@ -135,7 +135,7 @@ CONEXSourceCut::CONEXSourceCut(geometry::Point center, environment::ShowerAxis s // units::si::GrammageType Xcut, units::si::HEPEnergyType primaryEnergy, particles::PDGCode primaryID) - : conex_(ConexDynamicInterface(eSibyll23)) + : conex_{ConexDynamicInterface(eSibyll23)} , center_{center} , showerAxis_{showerAxis} , groundDist_{groundDist} @@ -158,7 +158,14 @@ CONEXSourceCut::CONEXSourceCut(geometry::Point center, environment::ShowerAxis s })} , y_sf_{showerAxis_.GetDirection().cross(x_sf_)} { - // TODO: call initconex + std::string parameterPathName = ""; + + int randomSeeds[3] = {1234, 0, 0}; // will be overwritten later?? + + int nShower = 1; // large to avoid final stats. + int maxDetail = 0; + int particleListMode = 0; + conex_.Init(nShower, randomSeeds, maxDetail, particleListMode, parameterPathName); double eprima = primaryEnergy / 1_GeV; -- GitLab