CMS 3D CMS Logo

Functions | Variables
dumpSimGeometry_cfg Namespace Reference

Functions

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

Variables

 defaultLevel
 
 defaultOutputFileName
 
 defaultTag
 
 defaultVersion
 
 dump
 
 input
 
 level
 
 maxEvents
 
 options
 
 out
 
 outputFileName
 
 p
 
 process
 
 source
 
 tag
 
 varType
 
 verbose
 

Function Documentation

◆ help()

def dumpSimGeometry_cfg.help ( )

Definition at line 11 of file dumpSimGeometry_cfg.py.

References 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 2026 dictionary")
19  print("")
20  print(" out=outputFileName")
21  print(" default is cmsSimGeom<tag><version>.root")
22  print()
23  os._exit(1);
24 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

◆ simGeoLoad()

def dumpSimGeometry_cfg.simGeoLoad (   score)

Definition at line 32 of file dumpSimGeometry_cfg.py.

References help(), print(), 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 == "2021":
50  process.load("Geometry.CMSCommonData.cmsExtendedGeometry2021XML_cfi")
51 
52  elif score == "2026":
53  versionCheck(options.version)
54  process.load("Geometry.CMSCommonData.cmsExtendedGeometry2026" + options.version + "XML_cfi")
55 
56  else:
57  help()
58 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

◆ versionCheck()

def dumpSimGeometry_cfg.versionCheck (   ver)

Definition at line 25 of file dumpSimGeometry_cfg.py.

References help(), and print().

Referenced by simGeoLoad().

25 def versionCheck(ver):
26  if ver == "":
27  print("Please, specify 2026 scenario version\n")
28  print(sorted([x[1] for x in detectorVersionDict.items()]))
29  print("")
30  help()
31 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

Variable Documentation

◆ defaultLevel

dumpSimGeometry_cfg.defaultLevel

Definition at line 62 of file dumpSimGeometry_cfg.py.

◆ defaultOutputFileName

dumpSimGeometry_cfg.defaultOutputFileName

Definition at line 63 of file dumpSimGeometry_cfg.py.

◆ defaultTag

dumpSimGeometry_cfg.defaultTag

Definition at line 61 of file dumpSimGeometry_cfg.py.

◆ defaultVersion

dumpSimGeometry_cfg.defaultVersion

Definition at line 9 of file dumpSimGeometry_cfg.py.

◆ dump

dumpSimGeometry_cfg.dump

Definition at line 100 of file dumpSimGeometry_cfg.py.

◆ input

dumpSimGeometry_cfg.input

Definition at line 93 of file dumpSimGeometry_cfg.py.

◆ level

dumpSimGeometry_cfg.level

Definition at line 97 of file dumpSimGeometry_cfg.py.

◆ maxEvents

dumpSimGeometry_cfg.maxEvents

Definition at line 93 of file dumpSimGeometry_cfg.py.

◆ options

dumpSimGeometry_cfg.options

Definition at line 59 of file dumpSimGeometry_cfg.py.

◆ out

dumpSimGeometry_cfg.out

Definition at line 86 of file dumpSimGeometry_cfg.py.

◆ outputFileName

dumpSimGeometry_cfg.outputFileName

Definition at line 102 of file dumpSimGeometry_cfg.py.

◆ p

dumpSimGeometry_cfg.p

Definition at line 104 of file dumpSimGeometry_cfg.py.

◆ process

dumpSimGeometry_cfg.process

Definition at line 88 of file dumpSimGeometry_cfg.py.

◆ source

dumpSimGeometry_cfg.source

Definition at line 91 of file dumpSimGeometry_cfg.py.

◆ tag

dumpSimGeometry_cfg.tag

Definition at line 101 of file dumpSimGeometry_cfg.py.

◆ varType

dumpSimGeometry_cfg.varType

Definition at line 8 of file dumpSimGeometry_cfg.py.

◆ verbose

dumpSimGeometry_cfg.verbose

Definition at line 96 of file dumpSimGeometry_cfg.py.