CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
commons_cff Namespace Reference

Functions

def cloneGeometry
 

Function Documentation

def commons_cff.cloneGeometry (   mod_path)

Definition at line 5 of file commons_cff.py.

References filterCSVwithJSON.copy.

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