diff --git a/DDCore/python/lcdd.py b/DDCore/python/lcdd.py index 8f09277bd36ad334e055402cbcea051ccd5b658b..3dca749e8c5bd3504650b7ace7de99777ea0ac65 100644 --- a/DDCore/python/lcdd.py +++ b/DDCore/python/lcdd.py @@ -36,6 +36,8 @@ GridXYZ = DD4hep.Geometry.GridXYZ GlobalGridXY = DD4hep.Geometry.GlobalGridXY CartesianGridXY = DD4hep.Geometry.CartesianGridXY NoSegmentation = DD4hep.Geometry.NoSegmentation +GridPhiEta = DD4hep.Geometry.GridPhiEta +GridRPhiEta = DD4hep.Geometry.GridRPhiEta ProjectiveCylinder = DD4hep.Geometry.ProjectiveCylinder NonProjectiveCylinder = DD4hep.Geometry.NonProjectiveCylinder ProjectiveZPlane = DD4hep.Geometry.ProjectiveZPlane @@ -388,4 +390,17 @@ def create_ProjectiveZPlane(lcdd, elem) : if 'thetaBins' in elem.keys() : obj.setThetaBins(elem.getI('thetaBins')) 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 +