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
 

Variables

int defaultLevel = 14
 
string defaultOutputFileName = "cmsSimGeom.root"
 
tuple defaultTag = str(2015)
 
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 Ideal2015 Ideal2015dev 2015 2015dev 2019 PhaseIPixel Phase1_R34F16 Phase2Tk 2023Muon SLHC DB SLHCDB")
 
tuple verbose = cms.untracked.bool(False)
 

Function Documentation

def dumpSimGeometry_cfg.help ( )

Definition at line 8 of file dumpSimGeometry_cfg.py.

References cmsRelvalreport.exit.

Referenced by simGeoLoad().

8 
9 def help():
10  print "Usage: cmsRun dumpSimGeometry_cfg.py tag=TAG "
11  print " tag=tagname"
12  print " indentify geometry condition database tag"
13  print " ", varType.keys()
14  print ""
15  print " out=outputFileName"
16  print " default is cmsSimGeom<tag>.root"
17  print
18  exit(1);
def dumpSimGeometry_cfg.simGeoLoad (   score)

Definition at line 19 of file dumpSimGeometry_cfg.py.

References help().

19 
20 def simGeoLoad(score):
21  print "Loading configuration for tag ", options.tag ,"...\n"
22  if score == "Run1":
23  process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
24 
25  elif score == "2015":
26  process.load("Geometry.CMSCommonData.cmsExtendedGeometry2015XML_cfi")
27 
28  elif score == "2015dev":
29  process.load("Geometry.CMSCommonData.cmsExtendedGeometry2015devXML_cfi")
30 
31  elif score == "Ideal2015":
32  process.load("Geometry.CMSCommonData.cmsIdealGeometry2015XML_cfi")
33 
34  elif score == "Ideal2015dev":
35  process.load("Geometry.CMSCommonData.cmsIdealGeometry2015devXML_cfi")
36 
37  elif score == "RPC4RE11":
38  process.load("Geometry.CMSCommonData.cmsExtendedGeometry2015XML_RPC4RE11_cfi")
39 
40  elif score == "2017":
41  process.load('Configuration.Geometry.GeometryExtended2017Reco_cff')
42 
43  elif score == "2019":
44  process.load('Configuration.Geometry.GeometryExtended2019Reco_cff')
45 
46  elif score == "PhaseIPixel":
47  process.load('Geometry.CMSCommonData.cmsExtendedGeometry2017XML_cfi')
48 
49 
50  elif score == "2023Muon":
51  process.load('Configuration.Geometry.GeometryExtended2023MuonReco_cff')
52 
53  elif score == "2023":
54  process.load('Configuration.Geometry.GeometryExtended2023Reco_cff')
55 
56  elif score == "DB":
57  process.load("Configuration.StandardSequences.GeometryDB_cff")
58  process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
59  from Configuration.AlCa.autoCond import autoCond
60  process.GlobalTag.globaltag = autoCond['mc']
61 
62  elif score == "SLHCDB":
63  process.load("Configuration.StandardSequences.GeometryDB_cff")
64  process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
65  process.GlobalTag.globaltag = 'DESIGN42_V17::All'
66  process.XMLFromDBSource.label=''
67 
68  process.GlobalTag.toGet = cms.VPSet(
69  cms.PSet(record = cms.string("GeometryFileRcd"),
70  tag = cms.string("XMLFILE_Geometry_428SLHCYV0_Phase1_R30F12_HCal_Ideal_mc"),
71  connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_42X_GEOMETRY")
72  )
73  )
74 
75  else:
76  help()
77 
78 

Variable Documentation

int dumpSimGeometry_cfg.defaultLevel = 14

Definition at line 82 of file dumpSimGeometry_cfg.py.

string dumpSimGeometry_cfg.defaultOutputFileName = "cmsSimGeom.root"

Definition at line 83 of file dumpSimGeometry_cfg.py.

tuple dumpSimGeometry_cfg.defaultTag = str(2015)

Definition at line 81 of file dumpSimGeometry_cfg.py.

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

Definition at line 112 of file dumpSimGeometry_cfg.py.

tuple dumpSimGeometry_cfg.options = VarParsing.VarParsing()

Definition at line 79 of file dumpSimGeometry_cfg.py.

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

Definition at line 117 of file dumpSimGeometry_cfg.py.

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

Definition at line 103 of file dumpSimGeometry_cfg.py.

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

Definition at line 116 of file dumpSimGeometry_cfg.py.

tuple dumpSimGeometry_cfg.varType = Enumerate("Run1 Ideal2015 Ideal2015dev 2015 2015dev 2019 PhaseIPixel Phase1_R34F16 Phase2Tk 2023Muon SLHC DB SLHCDB")

Definition at line 6 of file dumpSimGeometry_cfg.py.

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

Definition at line 111 of file dumpSimGeometry_cfg.py.