Skip to content

Commit c4c7026

Browse files
committed
o2sim: For consistency we take the eventcount from collcontext
1 parent 5b004eb commit c4c7026

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

0 commit comments

Comments
 (0)