Skip to content

Commit e874028

Browse files
sawenzelalcaliva
authored andcommitted
o2sim: For consistency we take the eventcount from collcontext
(cherry picked from commit c4c7026)
1 parent 43099a2 commit e874028

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Common/SimConfig/src/SimConfig.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,8 +486,8 @@ void SimConfig::adjustFromCollContext(std::string const& collcontextfile, std::s
486486
// we take what is specified in the context
487487
mConfigData.mNEvents = collisionmap.size();
488488
} else {
489-
LOG(warning) << "The number of events on the command line " << mConfigData.mNEvents << " and in the collision context differ. Taking the min of the 2";
490-
mConfigData.mNEvents = std::min((size_t)mConfigData.mNEvents, collisionmap.size());
489+
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();
490+
mConfigData.mNEvents = collisionmap.size();
491491
}
492492
LOG(info) << "Setting number of events to simulate to " << mConfigData.mNEvents;
493493
}

0 commit comments

Comments
 (0)