1 import FWCore.ParameterSet.Config
as cms
7 for i, xml
in enumerate( process.XMLIdealGeometryESSource.geomXMLFiles) :
8 if ( xml.find(key) != -1 ) :
9 mynum, originalXML = i, xml
11 if ( mynum != -1
and originalXML != targetXML ) :
12 print "Changing Geometry from %s to %s"%(originalXML, targetXML)
13 process.XMLIdealGeometryESSource.geomXMLFiles.remove(originalXML)
14 process.XMLIdealGeometryESSource.geomXMLFiles.insert(mynum,targetXML)
16 print "Alert! key is not found on XMLIdealGeometryESSource" def geomReplace(process, key, targetXML)
change the current default GEM geometry