CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions | Variables
dumpRecoGeometry_cfg Namespace Reference

Functions

def help
 
def recoGeoLoad
 

Variables

string defaultOutputFileName = "cmsRecoGeom.root"
 
tuple level = cms.untracked.int32(1)
 
tuple options = VarParsing.VarParsing()
 
tuple outputFileName = cms.untracked.string(options.out)
 
tuple process = cms.Process("DUMP")
 
tuple tagInfo = cms.untracked.string(options.tag)
 
tuple varType = Enumerate("Run1 2015 2017 2019 PhaseIPixel 2023Muon SLHC SLHCDB")
 

Function Documentation

def dumpRecoGeometry_cfg.help ( )

Definition at line 8 of file dumpRecoGeometry_cfg.py.

References cmsRelvalreport.exit.

Referenced by recoGeoLoad().

8 
9 def help():
10  print "Usage: cmsRun dumpFWRecoGeometry_cfg.py tag=TAG "
11  print " tag=tagname"
12  print " indentify geometry condition database tag"
13  print " ", varType.keys()
14  print ""
15  print " tgeo=bool"
16  print " dump in TGeo format to borwse it geomtery viewer"
17  print " import this will in Fireworks with option --sim-geom-file"
18  print ""
19  print ""
20  exit(1);
def dumpRecoGeometry_cfg.recoGeoLoad (   score)

Definition at line 21 of file dumpRecoGeometry_cfg.py.

References help().

21 
22 def recoGeoLoad(score):
23  print "Loading configuration for tag ", options.tag ,"...\n"
24  process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
25 
26  if score == "Run1":
27  from Configuration.AlCa.autoCond import autoCond
28  process.GlobalTag.globaltag = autoCond['mc']
29  process.load("Configuration.StandardSequences.GeometryDB_cff")
30  process.load("Configuration.StandardSequences.Reconstruction_cff")
31 
32  elif score == "2015":
33  from Configuration.AlCa.autoCond import autoCond
34  process.GlobalTag.globaltag = autoCond['mc']
35  process.load("Configuration.Geometry.GeometryExtended2015Reco_cff");
36 
37  elif score == "2017":
38  from Configuration.AlCa.GlobalTag import GlobalTag
39  process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:upgrade2017', '')
40  process.load('Configuration.Geometry.GeometryExtended2017Reco_cff')
41  # Automatic addition of the customisation function from SLHCUpgradeSimulations.Configuration.combinedCustoms
42  #from SLHCUpgradeSimulations.Configuration.combinedCustoms import cust_2017
43  #process.load("SLHCUpgradeSimulations.Configuration.combinedCustoms.cust_2017")
44  # process = cust_2017(process)
45 
46  elif score == "2019":
47  from Configuration.AlCa.GlobalTag import GlobalTag
48  process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:upgrade2019', '')
49  process.load('Configuration.Geometry.GeometryExtended2019Reco_cff')
50  #from SLHCUpgradeSimulations.Configuration.combinedCustoms import cust_2019
51 
52  elif score == "PhaseIPixel":
53  from Configuration.AlCa.GlobalTag import GlobalTag
54  process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:mc', '')
55  process.load('Configuration.Geometry.GeometryExtendedPhaseIPixelReco_cff')
56 
57  elif score == "2023":
58  from Configuration.AlCa.autoCond import autoCond
59  process.GlobalTag.globaltag = autoCond['mc']
60  #from Configuration.AlCa.GlobalTag import GlobalTag
61  #process.GlobalTag = GlobalTag(process.GlobalTag, 'PH2_1K_FB_V6::All', '')
62  process.load('Configuration.Geometry.GeometryExtended2023Reco_cff')
63  #from SLHCUpgradeSimulations.Configuration.combinedCustoms import cust_2019
64  #process = cust_2019(process)
65 
66  elif score == "2023Dev":
67  from Configuration.AlCa.autoCond import autoCond
68  process.GlobalTag.globaltag = autoCond['mc']
69  #from Configuration.AlCa.GlobalTag import GlobalTag
70  #process.GlobalTag = GlobalTag(process.GlobalTag, 'PH2_1K_FB_V6::All', '')
71  process.load('Configuration.Geometry.GeometryExtended2023DevReco_cff')
72  #from SLHCUpgradeSimulations.Configuration.combinedCustoms import cust_2019
73  #process = cust_2019(process)
74 
75  elif score == "2023Muon":
76  from Configuration.AlCa.autoCond import autoCond
77  process.GlobalTag.globaltag = autoCond['mc']
78  #from Configuration.AlCa.GlobalTag import GlobalTag
79  #process.GlobalTag = GlobalTag(process.GlobalTag, 'PH2_1K_FB_V6::All', '')
80  process.load('Configuration.Geometry.GeometryExtended2023MuonReco_cff')
81  # Automatic addition of the customisation function from SLHCUpgradeSimulations.Configuration.combinedCustoms
82  #from SLHCUpgradeSimulations.Configuration.combinedCustoms import cust_2023Muon
83  #call to customisation function cust_2023Muon imported from SLHCUpgradeSimulations.Configuration.combinedCustoms
84  #process = cust_2023Muon(process)
85 
86  elif score == "GEMDev":
87  from Configuration.AlCa.autoCond import autoCond
88  process.GlobalTag.globaltag = autoCond['mc']
89  process.load('Configuration.Geometry.GeometryExtended2015MuonGEMDevReco_cff')
90 
91  elif score == "SLHCDB": # orig dumpFWRecoSLHCGeometry_cfg.py
92  process.GlobalTag.globaltag = 'DESIGN42_V17::All'
93  process.load("Configuration.StandardSequences.GeometryDB_cff")
94  process.load("Configuration.StandardSequences.Reconstruction_cff")
95 
96  process.GlobalTag.toGet = cms.VPSet(
97  cms.PSet(record = cms.string("GeometryFileRcd"),
98  tag = cms.string("XMLFILE_Geometry_428SLHCYV0_Phase1_R30F12_HCal_Ideal_mc"),
99  connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_42X_GEOMETRY")
100  ),
101  cms.PSet(record = cms.string('IdealGeometryRecord'),
102  tag = cms.string('TKRECO_Geometry_428SLHCYV0'),
103  connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_42X_GEOMETRY")),
104  cms.PSet(record = cms.string('PGeometricDetExtraRcd'),
105  tag = cms.string('TKExtra_Geometry_428SLHCYV0'),
106  connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_42X_GEOMETRY")),
107  )
108 
109  elif score == varType.valueForKey("SLHC"): # orig dumpFWRecoGeometrySLHC_cfg.py
110  from Configuration.AlCa.autoCond import autoCond
111  process.GlobalTag.globaltag = autoCond['mc']
112  process.load("Configuration.Geometry.GeometrySLHCSimIdeal_cff")
113  process.load("Configuration.Geometry.GeometrySLHCReco_cff")
114  process.load("Configuration.StandardSequences.Reconstruction_cff")
115  process.trackerSLHCGeometry.applyAlignment = False
116 
117  else:
118  help()
119 
120 
121 

Variable Documentation

string dumpRecoGeometry_cfg.defaultOutputFileName = "cmsRecoGeom.root"

Definition at line 125 of file dumpRecoGeometry_cfg.py.

tuple dumpRecoGeometry_cfg.level = cms.untracked.int32(1)

Definition at line 173 of file dumpRecoGeometry_cfg.py.

tuple dumpRecoGeometry_cfg.options = VarParsing.VarParsing()

Definition at line 122 of file dumpRecoGeometry_cfg.py.

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

Definition at line 166 of file dumpRecoGeometry_cfg.py.

tuple dumpRecoGeometry_cfg.process = cms.Process("DUMP")

Definition at line 152 of file dumpRecoGeometry_cfg.py.

tuple dumpRecoGeometry_cfg.tagInfo = cms.untracked.string(options.tag)

Definition at line 165 of file dumpRecoGeometry_cfg.py.

Referenced by JetAnalyzer.analyze(), SoftLeptonTagPlotter.analyzeTag(), IPTagPlotter< Container, Base >.analyzeTag(), TrackCountingTagPlotter.analyzeTag(), TrackProbabilityTagPlotter.analyzeTag(), popcon::SiStripDetVOffHandler.getNewObjects(), popcon::RpcDataGasMix.getNewObjects(), popcon::RpcObGasData.getNewObjects(), popcon::RPCObPVSSmapData.getNewObjects(), popcon::RpcDataI.getNewObjects(), popcon::RpcDataS.getNewObjects(), popcon::RpcDataT.getNewObjects(), popcon::RpcDataFebmap.getNewObjects(), popcon::RpcDataUXC.getNewObjects(), popcon::RpcDataV.getNewObjects(), popcon::L1RPCHwConfigSourceHandler.getNewObjects(), popcon::EcalSRPHandler.getNewObjects(), popcon::RPCEMapSourceHandler.getNewObjects(), popcon::EcalLaser_weekly_Linearization.getNewObjects(), popcon::EcalDAQHandler.getNewObjects(), popcon::EcalTPGPedfromFile.getNewObjects(), popcon::EcalTPGFineGrainEBIdMapHandler.getNewObjects(), popcon::EcalTPGLutIdMapHandler.getNewObjects(), popcon::EcalTPGLinConstHandler.getNewObjects(), popcon::EcalTPGBadStripHandler.getNewObjects(), popcon::EcalTPGPhysicsConstHandler.getNewObjects(), popcon::EcalTPGBadTTHandler.getNewObjects(), popcon::EcalTPGWeightIdMapHandler.getNewObjects(), popcon::EcalTPGBadXTHandler.getNewObjects(), popcon::EcalTPGFineGrainTowerEEHandler.getNewObjects(), popcon::EcalTPGFineGrainEBGroupHandler.getNewObjects(), popcon::EcalLaserHandler.getNewObjects(), popcon::EcalLaser_weekly_Handler.getNewObjects(), popcon::EcalTPGWeightGroupHandler.getNewObjects(), popcon::EcalTPGFineGrainStripEEHandler.getNewObjects(), popcon::EcalTPGPedestalsHandler.getNewObjects(), popcon::EcalTPGSlidingWindowHandler.getNewObjects(), popcon::EcalTPGLutGroupHandler.getNewObjects(), popcon::EcalTPGSpikeThresholdHandler.getNewObjects(), popcon::EcalDCSHandler.getNewObjects(), popcon::EcalChannelStatusHandler.getNewObjects(), popcon::EcalPedestalsHandler.getNewObjectsH2(), popcon::EcalPedestalsHandler.getNewObjectsP5(), l1t::DataWriter.lastPayloadToken(), SoftPFMuonTagInfoProducer.produce(), SoftPFElectronTagInfoProducer.produce(), CATopJetTagger.produce(), popcon::SiStripDetVOffHandler.setForTransfer(), and l1t::DataWriter.updateIOV().

tuple dumpRecoGeometry_cfg.varType = Enumerate("Run1 2015 2017 2019 PhaseIPixel 2023Muon SLHC SLHCDB")

Definition at line 6 of file dumpRecoGeometry_cfg.py.