CMS 3D CMS Logo

Functions
commons_cff Namespace Reference

Functions

def cloneGeometry (mod_path)
 

Function Documentation

◆ cloneGeometry()

def commons_cff.cloneGeometry (   mod_path)

Definition at line 5 of file commons_cff.py.

References filterCSVwithJSON.copy.

5 def cloneGeometry(mod_path):
6  # start by importing the actual module to be cloned
7  _geom = import_module(mod_path)
8  # clone all geometry DDL files
9  totemGeomXMLFiles = copy(_geom.totemGeomXMLFiles)
10  ctppsDiamondGeomXMLFiles = copy(_geom.ctppsDiamondGeomXMLFiles)
11  ctppsUFSDGeomXMLFiles = copy(_geom.ctppsUFSDGeomXMLFiles)
12  ctppsPixelGeomXMLFiles = copy(_geom.ctppsPixelGeomXMLFiles)
13  # clone the ESSource and ESModule to be returned
14  XMLIdealGeometryESSource_CTPPS = _geom.XMLIdealGeometryESSource_CTPPS.clone()
15  ctppsGeometryESModule = _geom.ctppsGeometryESModule.clone()
16 
17  return (XMLIdealGeometryESSource_CTPPS, ctppsGeometryESModule)
18 
def cloneGeometry(mod_path)
Definition: commons_cff.py:5