Skip to content

Commit

Permalink
create fatal error when particle does not have sufficient mass for it…
Browse files Browse the repository at this point in the history
…s final state.....may cause problems for some reactions ???
  • Loading branch information
dglazier committed Mar 3, 2022
1 parent daa93be commit 0760b1e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/Particle.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ namespace elSpectro{
if(minRange>maxRange){//unphysical
std::cout<<"Warning Particle::DetermineDynamicMass min "<<minRange<<" greater than max "<<maxRange<<" for "<<_pdg<<std::endl;
_dynamicMass=minRange;
Fatal("Particle DetermineDynamicMass","note kinematically possible");
break;
}
_dynamicMass= _massDist->SampleSingle(minRange,maxRange);
Expand Down

0 comments on commit 0760b1e

Please sign in to comment.