CMS 3D CMS Logo

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

Functions

def help
 
def simGeoLoad
 
def versionCheck
 

Variables

int defaultLevel = 14
 
string defaultOutputFileName = "cmsSimGeom-"
 
tuple defaultTag = str(2017)
 
tuple defaultVersion = str()
 
tuple level = cms.untracked.int32(defaultLevel)
 
tuple options = VarParsing.VarParsing()
 
tuple outputFileName = cms.untracked.string(options.out)
 
tuple process = cms.Process("SIMDUMP")
 
tuple tag = cms.untracked.string(options.tag)
 
tuple varType = Enumerate("Run1 2015 2015dev 2017 2017Muon 2019 2023")
 
tuple verbose = cms.untracked.bool(False)
 

Function Documentation

def dumpSimGeometry_cfg.help ( )

Definition at line 11 of file dumpSimGeometry_cfg.py.

Referenced by simGeoLoad(), and versionCheck().

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

Definition at line 31 of file dumpSimGeometry_cfg.py.

References help(), and versionCheck().

31 
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()
def dumpSimGeometry_cfg.versionCheck (   ver)

Definition at line 25 of file dumpSimGeometry_cfg.py.

References help().

Referenced by simGeoLoad().

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

Variable Documentation

int dumpSimGeometry_cfg.defaultLevel = 14

Definition at line 61 of file dumpSimGeometry_cfg.py.

string dumpSimGeometry_cfg.defaultOutputFileName = "cmsSimGeom-"

Definition at line 62 of file dumpSimGeometry_cfg.py.

tuple dumpSimGeometry_cfg.defaultTag = str(2017)

Definition at line 60 of file dumpSimGeometry_cfg.py.

tuple dumpSimGeometry_cfg.defaultVersion = str()

Definition at line 9 of file dumpSimGeometry_cfg.py.

tuple dumpSimGeometry_cfg.level = cms.untracked.int32(defaultLevel)

Definition at line 96 of file dumpSimGeometry_cfg.py.

tuple dumpSimGeometry_cfg.options = VarParsing.VarParsing()

Definition at line 58 of file dumpSimGeometry_cfg.py.

tuple dumpSimGeometry_cfg.outputFileName = cms.untracked.string(options.out)

Definition at line 101 of file dumpSimGeometry_cfg.py.

tuple dumpSimGeometry_cfg.process = cms.Process("SIMDUMP")

Definition at line 87 of file dumpSimGeometry_cfg.py.

tuple dumpSimGeometry_cfg.tag = cms.untracked.string(options.tag)

Definition at line 100 of file dumpSimGeometry_cfg.py.

tuple dumpSimGeometry_cfg.varType = Enumerate("Run1 2015 2015dev 2017 2017Muon 2019 2023")

Definition at line 8 of file dumpSimGeometry_cfg.py.

tuple dumpSimGeometry_cfg.verbose = cms.untracked.bool(False)

Definition at line 95 of file dumpSimGeometry_cfg.py.