9 for i, xml
in enumerate( process.XMLIdealGeometryESSource.geomXMLFiles) :
10 if ( xml.find(key) != -1 ) :
11 mynum, originalXML = i, xml
13 if ( mynum != -1
and originalXML != targetXML ) :
14 print(
"Changing Geometry from %s to %s"%(originalXML, targetXML))
15 process.XMLIdealGeometryESSource.geomXMLFiles.remove(originalXML)
16 process.XMLIdealGeometryESSource.geomXMLFiles.insert(mynum,targetXML)
18 print(
"Alert! key is not found on XMLIdealGeometryESSource")
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
def geomReplace
change the current default GEM geometry