Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-26 03:36:52

0001 import FWCore.ParameterSet.Config as cms
0002 from importlib import import_module
0003 from copy import copy
0004 
0005 def cloneGeometry(mod_path):
0006     # start by importing the actual module to be cloned
0007     _geom = import_module(mod_path)
0008     # clone all geometry DDL files
0009     totemGeomXMLFiles = copy(_geom.totemGeomXMLFiles)
0010     ctppsDiamondGeomXMLFiles = copy(_geom.ctppsDiamondGeomXMLFiles)
0011     ctppsUFSDGeomXMLFiles = copy(_geom.ctppsUFSDGeomXMLFiles)
0012     ctppsPixelGeomXMLFiles = copy(_geom.ctppsPixelGeomXMLFiles)
0013     # clone the ESSource and ESModule to be returned
0014     XMLIdealGeometryESSource_CTPPS = _geom.XMLIdealGeometryESSource_CTPPS.clone()
0015     ctppsGeometryESModule = _geom.ctppsGeometryESModule.clone()
0016 
0017     return (XMLIdealGeometryESSource_CTPPS, ctppsGeometryESModule)