Skip to content

Commit

Permalink
Increase max number of particles allowed for hepevt input
Browse files Browse the repository at this point in the history
  • Loading branch information
BrieucF committed Nov 28, 2024
1 parent c9023f1 commit 793d13b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DDG4/plugins/Geant4EventReaderHepEvt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ Geant4EventReaderHepEvt::readParticles(int /* event_number */,
//check loop variable read from input file and chack that is reasonable
// should fix coverity issue: "Using tainted variable NHEP as a loop boundary."

if( NHEP > 1e6 ){
printout(ERROR,"EventReaderHepEvt::readParticles","Cannot read in more than million particles, but %d requested", NHEP );
if( NHEP > 5e7 ){
printout(ERROR,"EventReaderHepEvt::readParticles","Cannot read in too many particles, %d requested but an (arbitrary) limit has been set to 50 M", NHEP );
return EVENT_READER_EOF;
}

Expand Down

0 comments on commit 793d13b

Please sign in to comment.