IAP GITLAB

Skip to content
Snippets Groups Projects
Commit 1fc231e1 authored by Maximilian Reininghaus's avatar Maximilian Reininghaus :vulcan: Committed by ralfulrich
Browse files

call conex init and link SIBYLL statically (still crashes at runtime)

parent 58f84165
No related branches found
No related tags found
2 merge requests!234WIP: Initial example of python as script language from C++,!232Conex EM
...@@ -135,7 +135,7 @@ CONEXSourceCut::CONEXSourceCut(geometry::Point center, environment::ShowerAxis s ...@@ -135,7 +135,7 @@ CONEXSourceCut::CONEXSourceCut(geometry::Point center, environment::ShowerAxis s
// units::si::GrammageType Xcut, // units::si::GrammageType Xcut,
units::si::HEPEnergyType primaryEnergy, units::si::HEPEnergyType primaryEnergy,
particles::PDGCode primaryID) particles::PDGCode primaryID)
: conex_(ConexDynamicInterface(eSibyll23)) : conex_{ConexDynamicInterface(eSibyll23)}
, center_{center} , center_{center}
, showerAxis_{showerAxis} , showerAxis_{showerAxis}
, groundDist_{groundDist} , groundDist_{groundDist}
...@@ -158,7 +158,14 @@ CONEXSourceCut::CONEXSourceCut(geometry::Point center, environment::ShowerAxis s ...@@ -158,7 +158,14 @@ CONEXSourceCut::CONEXSourceCut(geometry::Point center, environment::ShowerAxis s
})} })}
, y_sf_{showerAxis_.GetDirection().cross(x_sf_)} { , 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; double eprima = primaryEnergy / 1_GeV;
......
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