From 2f9a4cff724d77a34a93a2a25b1005350bf3aa8c Mon Sep 17 00:00:00 2001 From: Jean-Marco Alameddine <jean-marco.alameddine@tu-dortmund.de> Date: Thu, 26 Jan 2023 17:28:54 +0100 Subject: [PATCH] fix wrong combination of BetheBloch and PROPOSAL in examples --- examples/corsika.cpp | 3 +-- examples/mars.cpp | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/examples/corsika.cpp b/examples/corsika.cpp index ca65c0c52..4673b8326 100644 --- a/examples/corsika.cpp +++ b/examples/corsika.cpp @@ -324,8 +324,7 @@ int main(int argc, char** argv) { heHadronModelThreshold); // NOT available for PROPOSAL due to interface trouble: // InteractionCounter emCascadeCounted(emCascade); - // corsika::proposal::ContinuousProcess<SubWriter<decltype(dEdX)>> emContinuous(env); - BetheBlochPDG<SubWriter<decltype(dEdX)>> emContinuous{dEdX}; + corsika::proposal::ContinuousProcess<SubWriter<decltype(dEdX)>> emContinuous(env, dEdX); LongitudinalWriter profile{showerAxis, 200, 10_g / square(1_cm)}; output.add("profile", profile); diff --git a/examples/mars.cpp b/examples/mars.cpp index 599e9c8da..b6e67568c 100644 --- a/examples/mars.cpp +++ b/examples/mars.cpp @@ -359,8 +359,8 @@ int main(int argc, char** argv) { // NOT possible right now, due to interface difference for PROPOSAL: // InteractionCounter emCascadeCounted(emCascade); // corsika::proposal::ContinuousProcess<SubWriter<decltype(dEdX)>> - // emContinuous(env,dEdX); - BetheBlochPDG<SubWriter<decltype(dEdX)>> emContinuous{dEdX}; + corsika::proposal::ContinuousProcess<SubWriter<decltype(dEdX)>> emContinuous(env, dEdX); + //BetheBlochPDG<SubWriter<decltype(dEdX)>> emContinuous{dEdX}; LongitudinalWriter longprof{showerAxis}; output.add("profile", longprof); -- GitLab