CMS 3D CMS Logo

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.

References edm.print().

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(" identify 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 
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:65
def dumpSimGeometry_cfg.simGeoLoad (   score)

Definition at line 32 of file dumpSimGeometry_cfg.py.

References help(), edm.print(), str, and versionCheck().

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

Definition at line 25 of file dumpSimGeometry_cfg.py.

References help(), and edm.print().

Referenced by simGeoLoad().

25 def versionCheck(ver):
26  if ver == "":
27  print("Please, specify 2023 scenario version\n")
28  print(sorted([x[1] for x in detectorVersionDict.items()]))
29  print("")
30  help()
31 
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:65