1 import FWCore.ParameterSet.Config
as cms
7 mynum = process.XMLIdealGeometryESSource.geomXMLFiles.index(
'Geometry/MuonCommonData/data/v4/gem11.xml')
8 process.XMLIdealGeometryESSource.geomXMLFiles.remove(
'Geometry/MuonCommonData/data/v4/gem11.xml')
9 process.XMLIdealGeometryESSource.geomXMLFiles.insert(mynum,
'Geometry/MuonCommonData/data/v2/gem11.xml')
13 mynum = process.XMLIdealGeometryESSource.geomXMLFiles.index(
'Geometry/MuonCommonData/data/v4/gem11.xml')
14 process.XMLIdealGeometryESSource.geomXMLFiles.remove(
'Geometry/MuonCommonData/data/v4/gem11.xml')
15 process.XMLIdealGeometryESSource.geomXMLFiles.insert(mynum,
'Geometry/MuonCommonData/data/v5/gem11.xml')
23 mynum = process.XMLIdealGeometryESSource.geomXMLFiles.index(
'Geometry/MuonCommonData/data/v4/gem11.xml')
24 process.XMLIdealGeometryESSource.geomXMLFiles.remove(
'Geometry/MuonCommonData/data/v4/gem11.xml')
25 process.XMLIdealGeometryESSource.geomXMLFiles.insert(mynum,
'Geometry/MuonCommonData/data/v3/gem11.xml')
29 mynum = process.XMLIdealGeometryESSource.geomXMLFiles.index(
'Geometry/MuonCommonData/data/v4/gem11.xml')
30 process.XMLIdealGeometryESSource.geomXMLFiles.remove(
'Geometry/MuonCommonData/data/v4/gem11.xml')
31 process.XMLIdealGeometryESSource.geomXMLFiles.insert(mynum,
'Geometry/MuonCommonData/data/v6/gem11.xml')
35 mynum = process.XMLIdealGeometryESSource.geomXMLFiles.index(
'Geometry/MuonCommonData/data/v4/gem11.xml')
36 process.XMLIdealGeometryESSource.geomXMLFiles.remove(
'Geometry/MuonCommonData/data/v4/gem11.xml')
37 process.XMLIdealGeometryESSource.geomXMLFiles.insert(mynum,
'Geometry/MuonCommonData/data/v7/gem11.xml')
42 geomReplace( process,
'gem11.xml',
'Geometry/MuonCommonData/data/v7/gem11.xml')
43 geomReplace( process,
'gem21.xml',
'Geometry/MuonCommonData/data/v7/gem21.xml')
44 geomReplace( process,
'GEMSpecs.xml',
'Geometry/GEMGeometryBuilder/data/v7/GEMSpecs.xml')
48 geomReplace( process,
'gem11.xml',
'Geometry/MuonCommonData/data/v7/gem11.xml')
49 geomReplace( process,
'gem21.xml',
'Geometry/MuonCommonData/data/v7_10deg/gem21.xml')
50 geomReplace( process,
'GEMSpecs.xml',
'Geometry/GEMGeometryBuilder/data/v7_10deg/GEMSpecs.xml')
56 for i, xml
in enumerate( process.XMLIdealGeometryESSource.geomXMLFiles) :
57 if ( xml.find(key) != -1 ) :
58 mynum, originalXML = i, xml
60 if ( mynum != -1
and originalXML != targetXML ) :
61 print "Changing Geometry from %s to %s"%(originalXML, targetXML)
62 process.XMLIdealGeometryESSource.geomXMLFiles.remove(originalXML)
63 process.XMLIdealGeometryESSource.geomXMLFiles.insert(mynum,targetXML)
65 print "Alert! key is not found on XMLIdealGeometryESSource" def custom_GE11_8and8partitions_v2(process)
def custom_GE11_8and8partitions_v1(process)
def custom_GE11_8partitions_v1(process)
def custom_GE11_9and10partitions_v1(process)
def custom_GE21_v7(process)
GE2/2 in 2023 scenario.
def geomReplace(process, key, targetXML)
def custom_GE11_6partitions_v1(process)
change the current default GEM geometry
def custom_GE21_v7_10deg(process)
def custom_GE11_10partitions_v1(process)