Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase the max number of particles allowed for hepevt input #1359

Merged
merged 2 commits into from
Nov 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading