Skip to content

Commit

Permalink
Merge pull request #36 from JETSCAPE/fix_HH_bug_decays
Browse files Browse the repository at this point in the history
Fix bug when not decaying hadrons Hybrid Hadronization (Pythia)
  • Loading branch information
latessa authored Sep 19, 2024
2 parents 8637288 + 3d02b5b commit 369570b
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 369570b

Please sign in to comment.