CMS 3D CMS Logo

Functions
gemGeometryCustoms Namespace Reference

Functions

def custom_GE11_10partitions_v1 (process)
 
def custom_GE11_6partitions_v1 (process)
 change the current default GEM geometry More...
 
def custom_GE11_8and8partitions_v1 (process)
 
def custom_GE11_8and8partitions_v2 (process)
 
def custom_GE11_8partitions_v1 (process)
 
def custom_GE11_9and10partitions_v1 (process)
 
def custom_GE21_v7 (process)
 GE2/2 in 2023 scenario. More...
 
def custom_GE21_v7_10deg (process)
 
def geomReplace (process, key, targetXML)
 

Function Documentation

def gemGeometryCustoms.custom_GE11_10partitions_v1 (   process)

Definition at line 22 of file gemGeometryCustoms.py.

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')
26  return process
27 
def custom_GE11_10partitions_v1(process)
def gemGeometryCustoms.custom_GE11_6partitions_v1 (   process)

change the current default GEM geometry

GE1/1 in 2019/2023 scenario

Definition at line 6 of file gemGeometryCustoms.py.

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')
10  return process
11 
def custom_GE11_6partitions_v1(process)
change the current default GEM geometry
def gemGeometryCustoms.custom_GE11_8and8partitions_v1 (   process)

Definition at line 28 of file gemGeometryCustoms.py.

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')
32  return process
33 
def custom_GE11_8and8partitions_v1(process)
def gemGeometryCustoms.custom_GE11_8and8partitions_v2 (   process)

Definition at line 34 of file gemGeometryCustoms.py.

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')
38  return process
39 
def custom_GE11_8and8partitions_v2(process)
def gemGeometryCustoms.custom_GE11_8partitions_v1 (   process)

Definition at line 12 of file gemGeometryCustoms.py.

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')
16  return process
17 
def custom_GE11_8partitions_v1(process)
def gemGeometryCustoms.custom_GE11_9and10partitions_v1 (   process)

Definition at line 18 of file gemGeometryCustoms.py.

19  ## This is the default version
20  return process
21 
def custom_GE11_9and10partitions_v1(process)
def gemGeometryCustoms.custom_GE21_v7 (   process)

GE2/2 in 2023 scenario.

Definition at line 41 of file gemGeometryCustoms.py.

References geomReplace().

41 def custom_GE21_v7(process) :
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')
45  return process
46 
def custom_GE21_v7(process)
GE2/2 in 2023 scenario.
def geomReplace(process, key, targetXML)
def gemGeometryCustoms.custom_GE21_v7_10deg (   process)

Definition at line 47 of file gemGeometryCustoms.py.

References geomReplace().

47 def custom_GE21_v7_10deg(process) :
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')
51  return process
52 
def geomReplace(process, key, targetXML)
def custom_GE21_v7_10deg(process)
def gemGeometryCustoms.geomReplace (   process,
  key,
  targetXML 
)

Definition at line 53 of file gemGeometryCustoms.py.

Referenced by custom_GE21_v7(), and custom_GE21_v7_10deg().

53 def geomReplace(process, key, targetXML) :
54  mynum=-1
55  originalXML=''
56  for i, xml in enumerate( process.XMLIdealGeometryESSource.geomXMLFiles) :
57  if ( xml.find(key) != -1 ) :
58  mynum, originalXML = i, xml
59  break ## For now, to change multiple keys is not supported.
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)
64  if ( mynum == -1) :
65  print "Alert! key is not found on XMLIdealGeometryESSource"
66  return process
67 
68 
def geomReplace(process, key, targetXML)