Skip to content

Commit

Permalink
Fix bug when not decaying hadrons Hybrid Hadronization (Pythia)
Browse files Browse the repository at this point in the history
  • Loading branch information
latessa committed Sep 19, 2024
1 parent f600753 commit 3d02b5b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hadronization/HybridHadronization.cc
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,10 @@ void HybridHadronization::DoHadronization(vector<vector<shared_ptr<Parton>>>& 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

Expand Down

0 comments on commit 3d02b5b

Please sign in to comment.