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
5c48eb5d
Commit
5c48eb5d
authored
7 years ago
by
Markus Frank
Committed by
MarkusFrankATcernch
7 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix dd4hep units as discussed in the meeting.
parent
ef92f523
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
DDG4/python/checkGeometry.py
+3
-3
3 additions, 3 deletions
DDG4/python/checkGeometry.py
DDG4/python/checkOverlaps.py
+3
-3
3 additions, 3 deletions
DDG4/python/checkOverlaps.py
with
6 additions
and
6 deletions
DDG4/python/checkGeometry.py
+
3
−
3
View file @
5c48eb5d
...
...
@@ -64,14 +64,14 @@ except ImportError,X:
sys
.
exit
(
errno
.
ENOENT
)
try
:
import
DD
4hep
import
dd
4hep
except
ImportError
,
X
:
logging
.
error
(
'
dd4hep python interface not accessible: %s
'
,
str
(
X
))
sys
.
exit
(
errno
.
ENOENT
)
DD
4hep
.
setPrintLevel
(
DD
4hep
.
OutputLevel
.
ERROR
)
dd
4hep
.
setPrintLevel
(
dd
4hep
.
OutputLevel
.
ERROR
)
logging
.
info
(
'
+++%s
\n
+++ Loading compact geometry:%s
\n
+++%s
'
,
120
*
'
=
'
,
opts
.
compact
,
120
*
'
=
'
)
description
=
DD
4hep
.
Detector
.
getInstance
()
description
=
dd
4hep
.
Detector
.
getInstance
()
description
.
fromXML
(
opts
.
compact
)
opts
.
num_tracks
=
int
(
opts
.
num_tracks
)
opts
.
vx
=
float
(
opts
.
vx
)
...
...
This diff is collapsed.
Click to expand it.
DDG4/python/checkOverlaps.py
+
3
−
3
View file @
5c48eb5d
...
...
@@ -49,7 +49,7 @@ except ImportError,X:
sys
.
exit
(
errno
.
ENOENT
)
try
:
import
DD
4hep
import
dd
4hep
except
ImportError
,
X
:
logging
.
error
(
'
dd4hep python interface not accessible: %s
'
,
str
(
X
))
logging
.
error
(
"
%s
"
,
parser
.
format_help
())
...
...
@@ -57,9 +57,9 @@ except ImportError,X:
#
#
opts
.
tolerance
=
float
(
opts
.
tolerance
)
DD
4hep
.
setPrintLevel
(
DD
4hep
.
OutputLevel
.
ERROR
)
dd
4hep
.
setPrintLevel
(
dd
4hep
.
OutputLevel
.
ERROR
)
logging
.
info
(
'
+++%s
\n
+++ Loading compact geometry:%s
\n
+++%s
'
,
120
*
'
=
'
,
opts
.
compact
,
120
*
'
=
'
)
description
=
DD
4hep
.
Detector
.
getInstance
()
description
=
dd
4hep
.
Detector
.
getInstance
()
description
.
fromXML
(
opts
.
compact
)
logging
.
info
(
'
+++%s
\n
+++ Checking overlaps of geometry:%s tolerance:%f option:%s
\n
+++%s
'
,
120
*
'
=
'
,
opts
.
compact
,
opts
.
tolerance
,
opts
.
option
,
120
*
'
=
'
)
description
.
manager
().
CheckOverlaps
(
opts
.
tolerance
,
opts
.
option
)
...
...
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