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
3cbea037
Commit
3cbea037
authored
8 years ago
by
Joschka Lingemann
Committed by
MarkusFrankATcernch
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add R-Phi-Eta and Phi-Eta segmentation to lcdd.py
parent
6de77406
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
DDCore/python/lcdd.py
+15
-0
15 additions, 0 deletions
DDCore/python/lcdd.py
with
15 additions
and
0 deletions
DDCore/python/lcdd.py
+
15
−
0
View file @
3cbea037
...
@@ -36,6 +36,8 @@ GridXYZ = DD4hep.Geometry.GridXYZ
...
@@ -36,6 +36,8 @@ GridXYZ = DD4hep.Geometry.GridXYZ
GlobalGridXY
=
DD4hep
.
Geometry
.
GlobalGridXY
GlobalGridXY
=
DD4hep
.
Geometry
.
GlobalGridXY
CartesianGridXY
=
DD4hep
.
Geometry
.
CartesianGridXY
CartesianGridXY
=
DD4hep
.
Geometry
.
CartesianGridXY
NoSegmentation
=
DD4hep
.
Geometry
.
NoSegmentation
NoSegmentation
=
DD4hep
.
Geometry
.
NoSegmentation
GridPhiEta
=
DD4hep
.
Geometry
.
GridPhiEta
GridRPhiEta
=
DD4hep
.
Geometry
.
GridRPhiEta
ProjectiveCylinder
=
DD4hep
.
Geometry
.
ProjectiveCylinder
ProjectiveCylinder
=
DD4hep
.
Geometry
.
ProjectiveCylinder
NonProjectiveCylinder
=
DD4hep
.
Geometry
.
NonProjectiveCylinder
NonProjectiveCylinder
=
DD4hep
.
Geometry
.
NonProjectiveCylinder
ProjectiveZPlane
=
DD4hep
.
Geometry
.
ProjectiveZPlane
ProjectiveZPlane
=
DD4hep
.
Geometry
.
ProjectiveZPlane
...
@@ -388,4 +390,17 @@ def create_ProjectiveZPlane(lcdd, elem) :
...
@@ -388,4 +390,17 @@ def create_ProjectiveZPlane(lcdd, elem) :
if
'
thetaBins
'
in
elem
.
keys
()
:
obj
.
setThetaBins
(
elem
.
getI
(
'
thetaBins
'
))
if
'
thetaBins
'
in
elem
.
keys
()
:
obj
.
setThetaBins
(
elem
.
getI
(
'
thetaBins
'
))
return
obj
return
obj
def
create_GridPhiEta
(
lcdd
,
elem
)
:
obj
=
GridPhiEta
()
if
'
phiBins
'
in
elem
.
keys
()
:
obj
.
setPhiBins
(
elem
.
getI
(
'
phiBins
'
))
if
'
gridSizeEta
'
in
elem
.
keys
()
:
obj
.
setGridSizeEta
(
elem
.
getI
(
'
gridSizeEta
'
))
return
obj
def
create_GridRPhiEta
(
lcdd
,
elem
)
:
obj
=
GridRPhiEta
()
if
'
phiBins
'
in
elem
.
keys
()
:
obj
.
setPhiBins
(
elem
.
getI
(
'
gridSizeR
'
))
if
'
gridSizeEta
'
in
elem
.
keys
()
:
obj
.
setGridSizeEta
(
elem
.
getI
(
'
gridSizeEta
'
))
if
'
gridSizeR
'
in
elem
.
keys
()
:
obj
.
setGridSizeR
(
elem
.
getI
(
'
gridSizeR
'
))
return
obj
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