1 from __future__
import print_function
2 import FWCore.ParameterSet.Config
as cms
8 for i, xml
in enumerate( process.XMLIdealGeometryESSource.geomXMLFiles) :
9 if ( xml.find(key) != -1 ) :
10 mynum, originalXML = i, xml
12 if ( mynum != -1
and originalXML != targetXML ) :
13 print(
"Changing Geometry from %s to %s"%(originalXML, targetXML))
14 process.XMLIdealGeometryESSource.geomXMLFiles.remove(originalXML)
15 process.XMLIdealGeometryESSource.geomXMLFiles.insert(mynum,targetXML)
17 print(
"Alert! key is not found on XMLIdealGeometryESSource")