diff --git a/DDG4/python/DDSim/DD4hepSimulation.py b/DDG4/python/DDSim/DD4hepSimulation.py index e736ea1140cc65eb1446e0a894d9d6eb8658b66b..bc2cd6fa36fd3fedb86715de5973e68213685355 100644 --- a/DDG4/python/DDSim/DD4hepSimulation.py +++ b/DDG4/python/DDSim/DD4hepSimulation.py @@ -6,7 +6,7 @@ Based on M. Frank and F. Gaede runSim.py @version 0.1 """ -from __future__ import absolute_import, unicode_literals +from __future__ import absolute_import, unicode_literals, division __RCSID__ = "$Id$" from g4units import * import logging @@ -482,7 +482,7 @@ class DD4hepSimulation(object): logger.info("DDSim INFO Total Time: %3.2f s (User), %3.2f s (System)"% (totalTimeUser, totalTimeSys)) if self.numberOfEvents != 0: eventTime = totalTimeUser - startUpTime - perEventTime = eventTime / float(self.numberOfEvents) + perEventTime = eventTime / self.numberOfEvents logger.info("DDSim INFO StartUp Time: %3.2f s, Event Processing: %3.2f s (%3.2f s/Event) " \ % (startUpTime, eventTime, perEventTime))