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

tuple level = cms.untracked.int32(14)
 
tuple options = VarParsing.VarParsing()
 
tuple process = cms.Process("SIMDUMP")
 
tuple varType = Enumerate("Run1 2015 PhaseIPixel Phase1_R34F16 Phase2Tk SLHCDB SLHC DB")
 
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 " load=filename"
16  print " a single load instruction, this option excludes 'tag' option"
17  print " e.g load=Geometry.CMSCommonData.Phase1_R34F16_cmsSimIdealGeometryXML_cff"
18  print
19  exit(1);
def dumpSimGeometry_cfg.simGeoLoad (   score)

Definition at line 20 of file dumpSimGeometry_cfg.py.

References help().

20 
21 def simGeoLoad(score):
22  print "Loading configuration for tag ", options.tag ,"...\n"
23  if score == "Run1":
24  process.load("Geometry.CMSCommonData.cmsIdealGeometryXML_cfi")
25 
26  elif score == "2015":
27  process.load("Geometry.CMSCommonData.cmsExtendedGeometry2015XML_cfi")
28 
29  elif score == "PhaseIPixel":
30  process.load('Geometry.CMSCommonData.GeometryExtendedPhaseIPixel_cfi')
31 
32  elif score == "Phase2Tk":
33  process.load('Geometry.CMSCommonData.cmsExtendedGeometryPhase2TkBEXML_cfi')
34 
35  elif score == "SLHCDB":
36  process.load("Configuration.StandardSequences.GeometryDB_cff")
37  process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
38  process.GlobalTag.globaltag = 'DESIGN42_V17::All'
39  process.XMLFromDBSource.label=''
40 
41  process.GlobalTag.toGet = cms.VPSet(
42  cms.PSet(record = cms.string("GeometryFileRcd"),
43  tag = cms.string("XMLFILE_Geometry_428SLHCYV0_Phase1_R30F12_HCal_Ideal_mc"),
44  connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_42X_GEOMETRY")
45  )
46  )
47 
48  elif score == "DB":
49  process.load("Configuration.StandardSequences.GeometryDB_cff")
50  process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
51  from Configuration.AlCa.autoCond import autoCond
52  process.GlobalTag.globaltag = autoCond['mc']
53 
54  elif score == "SLHC":
55  process.load('SLHCUpgradeSimulations.Geometry.Phase1_R30F12_HCal_cmsSimIdealGeometryXML_cff')
56 
57 
58  elif score == "Phase1_R34F16":
59  process.load('Geometry.CMSCommonData.Phase1_R34F16_cmsSimIdealGeometryXML_cff')
60 
61  else:
62  help()
63 
64 

Variable Documentation

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

Definition at line 96 of file dumpSimGeometry_cfg.py.

tuple dumpSimGeometry_cfg.options = VarParsing.VarParsing()

Definition at line 65 of file dumpSimGeometry_cfg.py.

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

Definition at line 83 of file dumpSimGeometry_cfg.py.

tuple dumpSimGeometry_cfg.varType = Enumerate("Run1 2015 PhaseIPixel Phase1_R34F16 Phase2Tk SLHCDB SLHC DB")

Definition at line 6 of file dumpSimGeometry_cfg.py.

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

Definition at line 95 of file dumpSimGeometry_cfg.py.