Skip to content

Commit

Permalink
o2sim: For consistency we take the eventcount from collcontext
Browse files Browse the repository at this point in the history
  • Loading branch information
sawenzel committed Dec 20, 2024
1 parent 4ebf849 commit d9fa467
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Common/SimConfig/src/SimConfig.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -487,8 +487,8 @@ void SimConfig::adjustFromCollContext(std::string const& collcontextfile, std::s
// we take what is specified in the context
mConfigData.mNEvents = collisionmap.size();
} else {
LOG(warning) << "The number of events on the command line " << mConfigData.mNEvents << " and in the collision context differ. Taking the min of the 2";
mConfigData.mNEvents = std::min((size_t)mConfigData.mNEvents, collisionmap.size());
LOG(warning) << "The number of events on the command line " << mConfigData.mNEvents << " and in the collision context differ. We take the one from collision context " << collisionmap.size();
mConfigData.mNEvents = collisionmap.size();
}
LOG(info) << "Setting number of events to simulate to " << mConfigData.mNEvents;
}
Expand Down

0 comments on commit d9fa467

Please sign in to comment.