Skip to content

Commit a5fcb1e

Browse files
sawenzelalcaliva
authored andcommitted
o2sim: For consistency we take the eventcount from collcontext
(cherry picked from commit c4c7026)
1 parent 974d1b7 commit a5fcb1e

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
@@ -372,8 +372,8 @@ void SimConfig::adjustFromCollContext(std::string const& collcontextfile, std::s
372372
// we take what is specified in the context
373373
mConfigData.mNEvents = collisionmap.size();
374374
} else {
375-
LOG(warning) << "The number of events on the command line " << mConfigData.mNEvents << " and in the collision context differ. Taking the min of the 2";
376-
mConfigData.mNEvents = std::min((size_t)mConfigData.mNEvents, collisionmap.size());
375+
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();
376+
mConfigData.mNEvents = collisionmap.size();
377377
}
378378
LOG(info) << "Setting number of events to simulate to " << mConfigData.mNEvents;
379379
}

0 commit comments

Comments
 (0)