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.GeometryExtendedPhaseIPixel_cfi')
48 
49  elif score == "Phase1_R34F16":
50  process.load('Geometry.CMSCommonData.Phase1_R34F16_cmsSimIdealGeometryXML_cff')
51 
52  elif score == "Phase2Tk":
53  process.load('Geometry.CMSCommonData.cmsExtendedGeometryPhase2TkBEXML_cfi')
54 
55  elif score == "2023Muon":
56  process.load('Configuration.Geometry.GeometryExtended2023MuonReco_cff')
57 
58  elif score == "2023":
59  process.load('Configuration.Geometry.GeometryExtended2023Reco_cff')
60 
61  elif score == "SLHC":
62  process.load('SLHCUpgradeSimulations.Geometry.Phase1_R30F12_HCal_cmsSimIdealGeometryXML_cff')
63 
64  elif score == "DB":
65  process.load("Configuration.StandardSequences.GeometryDB_cff")
66  process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
67  from Configuration.AlCa.autoCond import autoCond
68  process.GlobalTag.globaltag = autoCond['mc']
69 
70  elif score == "SLHCDB":
71  process.load("Configuration.StandardSequences.GeometryDB_cff")
72  process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
73  process.GlobalTag.globaltag = 'DESIGN42_V17::All'
74  process.XMLFromDBSource.label=''
75 
76  process.GlobalTag.toGet = cms.VPSet(
77  cms.PSet(record = cms.string("GeometryFileRcd"),
78  tag = cms.string("XMLFILE_Geometry_428SLHCYV0_Phase1_R30F12_HCal_Ideal_mc"),
79  connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_42X_GEOMETRY")
80  )
81  )
82 
83  else:
84  help()
85 
86 

Variable Documentation

int dumpSimGeometry_cfg.defaultLevel = 14

Definition at line 90 of file dumpSimGeometry_cfg.py.

string dumpSimGeometry_cfg.defaultOutputFileName = "cmsSimGeom.root"

Definition at line 91 of file dumpSimGeometry_cfg.py.

tuple dumpSimGeometry_cfg.defaultTag = str(2015)

Definition at line 89 of file dumpSimGeometry_cfg.py.

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

Definition at line 120 of file dumpSimGeometry_cfg.py.

tuple dumpSimGeometry_cfg.options = VarParsing.VarParsing()

Definition at line 87 of file dumpSimGeometry_cfg.py.

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

Definition at line 125 of file dumpSimGeometry_cfg.py.

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

Definition at line 111 of file dumpSimGeometry_cfg.py.

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

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