CMS 3D CMS Logo

Functions
dumpRecoGeometry_cfg Namespace Reference

Functions

def help ()
 
def recoGeoLoad (score)
 

Function Documentation

def dumpRecoGeometry_cfg.help ( )

Definition at line 8 of file dumpRecoGeometry_cfg.py.

References cmsRelvalreport.exit.

Referenced by recoGeoLoad().

8 def help():
9  print "Usage: cmsRun dumpFWRecoGeometry_cfg.py tag=TAG "
10  print " tag=tagname"
11  print " indentify geometry condition database tag"
12  print " ", varType.keys()
13  print ""
14  print " tgeo=bool"
15  print " dump in TGeo format to borwse it geomtery viewer"
16  print " import this will in Fireworks with option --sim-geom-file"
17  print ""
18  print " tracker=bool"
19  print " include Tracker subdetectors"
20  print ""
21  print " muon=bool"
22  print " include Muon subdetectors"
23  print ""
24  print " calo=bool"
25  print " include Calo subdetectors"
26  print ""
27  print " timing=bool"
28  print " include Timing subdetectors"
29  print ""
30  print ""
31  exit(1);
32 
def dumpRecoGeometry_cfg.recoGeoLoad (   score)

Definition at line 33 of file dumpRecoGeometry_cfg.py.

References help(), and harvestTrackValidationPlots.str.

33 def recoGeoLoad(score):
34  print "Loading configuration for tag ", options.tag ,"...\n"
35 
36  if score == "Run1":
37  process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
38  from Configuration.AlCa.autoCond import autoCond
39  process.GlobalTag.globaltag = autoCond['run1_mc']
40  process.load("Configuration.StandardSequences.GeometryDB_cff")
41 
42  elif score == "2015":
43  process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
44  from Configuration.AlCa.autoCond import autoCond
45  process.GlobalTag.globaltag = autoCond['run2_mc']
46  process.load("Configuration.StandardSequences.GeometryDB_cff")
47 
48  elif score == "2017":
49  process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
50  from Configuration.AlCa.autoCond import autoCond
51  process.GlobalTag.globaltag = autoCond['upgrade2017']
52  process.load('Configuration.Geometry.GeometryExtended2017Reco_cff')
53 
54  elif score == "2019":
55  process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
56  from Configuration.AlCa.autoCond import autoCond
57  process.GlobalTag.globaltag = autoCond['upgrade2019']
58  ## NOTE: There is no PTrackerParameters Rcd in this GT yet
59  process.load('Geometry.TrackerGeometryBuilder.trackerParameters_cfi')
60  process.load('Configuration.Geometry.GeometryExtended2019Reco_cff')
61  ## NOTE: There are no Muon alignement records in the GT yet
62  process.DTGeometryESModule.applyAlignment = cms.bool(False)
63  process.CSCGeometryESModule.applyAlignment = cms.bool(False)
64 
65  elif "2023" in score:
66  process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
67  from Configuration.AlCa.autoCond import autoCond
68  process.GlobalTag.globaltag = autoCond['run2_mc']
69  process.load('Configuration.Geometry.GeometryExtended'+score+'Reco_cff')
70 
71  elif score == "MaPSA":
72  process.load('Geometry.TrackerGeometryBuilder.idealForDigiTrackerGeometry_cff')
73  process.load('Geometry.TrackerCommonData.mapsaGeometryXML_cfi')
74  process.load('Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi')
75  process.load('Geometry.TrackerNumberingBuilder.trackerTopology_cfi')
76  process.load('Geometry.TrackerGeometryBuilder.trackerParameters_cfi')
77  process.load('Geometry.TrackerGeometryBuilder.trackerGeometry_cfi')
78  process.trackerGeometry.applyAlignment = cms.bool(False)
79  process.load('RecoTracker.GeometryESProducer.TrackerRecoGeometryESProducer_cfi')
80 
81  process.load('Geometry.CommonDetUnit.bareGlobalTrackingGeometry_cfi')
82 
83  elif score == "HGCTB160": ## hgcal testbeam
84  process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
85  from Configuration.AlCa.autoCond import autoCond
86  process.GlobalTag.globaltag = autoCond['mc']
87  process.load('Geometry.HGCalCommonData.hgcalV6ParametersInitialization_cfi')
88  process.load('Geometry.HGCalCommonData.hgcalV6NumberingInitialization_cfi')
89  process.load('Geometry.CaloEventSetup.HGCalV6Topology_cfi')
90  process.load('Geometry.HGCalGeometry.HGCalV6GeometryESProducer_cfi')
91  process.load('Geometry.CaloEventSetup.CaloTopology_cfi')
92  process.load('Geometry.CaloEventSetup.CaloGeometryBuilder_cfi')
93  process.CaloGeometryBuilder = cms.ESProducer(
94  "CaloGeometryBuilder",
95  SelectedCalos = cms.vstring("HGCalEESensitive")
96  )
97  process.load("SimG4CMS.HGCalTestBeam.HGCalTB160XML_cfi")
98 
99  else:
100  help()
101 
102 
103 
104