CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
dumpSimGeometry_cfg Namespace Reference

Functions

def help ()
 
def simGeoLoad (score)
 
def versionCheck (ver)
 

Function Documentation

def dumpSimGeometry_cfg.help ( )

Definition at line 11 of file dumpSimGeometry_cfg.py.

Referenced by simGeoLoad(), and versionCheck().

11 def help():
12  print "Usage: cmsRun dumpSimGeometry_cfg.py tag=TAG version=VERSION "
13  print " tag=tagname"
14  print " indentify geometry scenario "
15  print " ", varType.keys()
16  print ""
17  print " version=versionNumber"
18  print " scenario version from 2023 dictionary:"
19  print ""
20  print " out=outputFileName"
21  print " default is cmsSimGeom<tag><version>.root"
22  print
23  os._exit(1);
24 
def dumpSimGeometry_cfg.simGeoLoad (   score)

Definition at line 31 of file dumpSimGeometry_cfg.py.

References help(), harvestTrackValidationPlots.str, and versionCheck().

31 def simGeoLoad(score):
32  print "Loading configuration for scenario", options.tag , options.version ,"...\n"
33  if score == "Run1":
34  process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
35 
36  elif score == "2015":
37  process.load("Geometry.CMSCommonData.cmsExtendedGeometry2015XML_cfi")
38 
39  elif score == "2015dev":
40  process.load("Geometry.CMSCommonData.cmsExtendedGeometry2015devXML_cfi")
41 
42  elif score == "2017":
43  process.load("Geometry.CMSCommonData.cmsExtendedGeometry2017XML_cfi")
44 
45  elif score == "2017Muon":
46  process.load("Geometry.CMSCommonData.cmsExtendedGeometry2017MuonXML_cfi")
47 
48  elif score == "2019":
49  process.load("Geometry.CMSCommonData.cmsExtendedGeometry2019XML_cfi")
50 
51  elif score == "2023":
52  versionCheck(options.version)
53  process.load("Geometry.CMSCommonData.cmsExtendedGeometry2023" + options.version + "XML_cfi")
54 
55  else:
56  help()
57 
def dumpSimGeometry_cfg.versionCheck (   ver)

Definition at line 25 of file dumpSimGeometry_cfg.py.

References help().

Referenced by simGeoLoad().

25 def versionCheck(ver):
26  if ver == "":
27  print "Please, specify 2023 scenario version\n"
28  pprint(sorted(detectorVersionDict.items(),key=operator.itemgetter(1)))
29  help()
30