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 2015 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 == "Ideal2015":
29  process.load("Geometry.CMSCommonData.cmsIdealGeometry2015XML_cfi")
30 
31  elif score == "2019":
32  process.load('Configuration.Geometry.GeometryExtended2019Reco_cff')
33 
34  elif score == "PhaseIPixel":
35  process.load('Geometry.CMSCommonData.GeometryExtendedPhaseIPixel_cfi')
36 
37  elif score == "Phase1_R34F16":
38  process.load('Geometry.CMSCommonData.Phase1_R34F16_cmsSimIdealGeometryXML_cff')
39 
40  elif score == "Phase2Tk":
41  process.load('Geometry.CMSCommonData.cmsExtendedGeometryPhase2TkBEXML_cfi')
42 
43  elif score == "2023Muon":
44  process.load('Configuration.Geometry.GeometryExtended2023MuonReco_cff')
45 
46 
47  elif score == "SLHC":
48  process.load('SLHCUpgradeSimulations.Geometry.Phase1_R30F12_HCal_cmsSimIdealGeometryXML_cff')
49 
50  elif score == "DB":
51  process.load("Configuration.StandardSequences.GeometryDB_cff")
52  process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
53  from Configuration.AlCa.autoCond import autoCond
54  process.GlobalTag.globaltag = autoCond['mc']
55 
56  elif score == "SLHCDB":
57  process.load("Configuration.StandardSequences.GeometryDB_cff")
58  process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
59  process.GlobalTag.globaltag = 'DESIGN42_V17::All'
60  process.XMLFromDBSource.label=''
61 
62  process.GlobalTag.toGet = cms.VPSet(
63  cms.PSet(record = cms.string("GeometryFileRcd"),
64  tag = cms.string("XMLFILE_Geometry_428SLHCYV0_Phase1_R30F12_HCal_Ideal_mc"),
65  connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_42X_GEOMETRY")
66  )
67  )
68 
69  else:
70  help()
71 
72 

Variable Documentation

int dumpSimGeometry_cfg.defaultLevel = 14

Definition at line 76 of file dumpSimGeometry_cfg.py.

string dumpSimGeometry_cfg.defaultOutputFileName = "cmsSimGeom.root"

Definition at line 77 of file dumpSimGeometry_cfg.py.

tuple dumpSimGeometry_cfg.defaultTag = str(2015)

Definition at line 75 of file dumpSimGeometry_cfg.py.

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

Definition at line 106 of file dumpSimGeometry_cfg.py.

tuple dumpSimGeometry_cfg.options = VarParsing.VarParsing()

Definition at line 73 of file dumpSimGeometry_cfg.py.

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

Definition at line 111 of file dumpSimGeometry_cfg.py.

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

Definition at line 97 of file dumpSimGeometry_cfg.py.

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

Definition at line 110 of file dumpSimGeometry_cfg.py.

tuple dumpSimGeometry_cfg.varType = Enumerate("Run1 Ideal2015 2015 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 105 of file dumpSimGeometry_cfg.py.