From 3d02b5b8dcc71a1574706550560d2660c6452312 Mon Sep 17 00:00:00 2001 From: Joe Latessa Date: Wed, 18 Sep 2024 20:23:35 -0400 Subject: [PATCH] Fix bug when not decaying hadrons Hybrid Hadronization (Pythia) --- src/hadronization/HybridHadronization.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hadronization/HybridHadronization.cc b/src/hadronization/HybridHadronization.cc index 8463fac8..c46dab4e 100644 --- a/src/hadronization/HybridHadronization.cc +++ b/src/hadronization/HybridHadronization.cc @@ -709,6 +709,10 @@ void HybridHadronization::DoHadronization(vector>>& sh } //do this only if there are negative partons, otherwise the baryon recombination would be switched off after the first event without negative partons } if(HH_shower.num() == 0){ + th_recofactor = tmp_threco; + maxB_level = tmp_maxB_level; + reco_hadrons_pythia = tmp_reco_hadrons_pythia; + if(pythia_decays == "off"){pythia.readString("HadronLevel:Decay = off"); pythia.init();} continue; } //attempting to handle events/configurations with 0 partons will result in a crash