Skip to content
Snippets Groups Projects
Commit 3cbea037 authored by Joschka Lingemann's avatar Joschka Lingemann Committed by MarkusFrankATcernch
Browse files

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
...@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment