Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DD4hep
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cepc
externals
mirroring
DD4hep
Commits
e2355945
Commit
e2355945
authored
5 years ago
by
Marko Petric
Committed by
Andre Sailer
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
use future division in ddsim
parent
85f5f518
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
DDG4/python/DDSim/DD4hepSimulation.py
+2
-2
2 additions, 2 deletions
DDG4/python/DDSim/DD4hepSimulation.py
with
2 additions
and
2 deletions
DDG4/python/DDSim/DD4hepSimulation.py
+
2
−
2
View file @
e2355945
...
...
@@ -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
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment