CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 2021 2026")
 
tuple verbose = cms.untracked.bool(False)
 

Function Documentation

def dumpSimGeometry_cfg.help ( )

Definition at line 11 of file dumpSimGeometry_cfg.py.

References print().

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(" identify geometry scenario ")
16  print(" ", varType.keys())
17  print("")
18  print(" version=versionNumber")
19  print(" scenario version from 2026 dictionary")
20  print("")
21  print(" out=outputFileName")
22  print(" default is cmsSimGeom<tag><version>.root")
23  print()
24  os._exit(1);
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def dumpSimGeometry_cfg.simGeoLoad (   score)

Definition at line 32 of file dumpSimGeometry_cfg.py.

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

32 
33 def simGeoLoad(score):
34  print("Loading configuration for scenario", options.tag , options.version ,"...\n")
35  if score == "Run1":
36  process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
37 
38  elif score == "2015":
39  process.load("Geometry.CMSCommonData.cmsExtendedGeometry2015XML_cfi")
40 
41  elif score == "2015dev":
42  process.load("Geometry.CMSCommonData.cmsExtendedGeometry2015devXML_cfi")
43 
44  elif score == "2017":
45  process.load("Geometry.CMSCommonData.cmsExtendedGeometry2017XML_cfi")
46 
47  elif score == "2017Muon":
48  process.load("Geometry.CMSCommonData.cmsExtendedGeometry2017MuonXML_cfi")
49 
50  elif score == "2021":
51  process.load("Geometry.CMSCommonData.cmsExtendedGeometry2021XML_cfi")
52 
53  elif score == "2026":
54  versionCheck(options.version)
55  process.load("Geometry.CMSCommonData.cmsExtendedGeometry2026" + options.version + "XML_cfi")
56 
57  else:
58  help()
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def dumpSimGeometry_cfg.versionCheck (   ver)

Definition at line 25 of file dumpSimGeometry_cfg.py.

References help(), and print().

Referenced by simGeoLoad().

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

Variable Documentation

int dumpSimGeometry_cfg.defaultLevel = 14

Definition at line 62 of file dumpSimGeometry_cfg.py.

string dumpSimGeometry_cfg.defaultOutputFileName = "cmsSimGeom-"

Definition at line 63 of file dumpSimGeometry_cfg.py.

tuple dumpSimGeometry_cfg.defaultTag = str(2017)

Definition at line 61 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 97 of file dumpSimGeometry_cfg.py.

tuple dumpSimGeometry_cfg.options = VarParsing.VarParsing()

Definition at line 59 of file dumpSimGeometry_cfg.py.

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

Definition at line 102 of file dumpSimGeometry_cfg.py.

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

Definition at line 88 of file dumpSimGeometry_cfg.py.

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

Definition at line 101 of file dumpSimGeometry_cfg.py.

tuple dumpSimGeometry_cfg.varType = Enumerate("Run1 2015 2015dev 2017 2017Muon 2021 2026")

Definition at line 8 of file dumpSimGeometry_cfg.py.

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

Definition at line 96 of file dumpSimGeometry_cfg.py.