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 = cust_2017(process)
44 
45  elif score == "2019":
46  from Configuration.AlCa.GlobalTag import GlobalTag
47  process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:upgrade2019', '')
48  process.load('Configuration.Geometry.GeometryExtended2019Reco_cff')
49 
50  elif score == "PhaseIPixel":
51  from Configuration.AlCa.GlobalTag import GlobalTag
52  process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:mc', '')
53  process.load('Configuration.Geometry.GeometryExtendedPhaseIPixelReco_cff')
54 
55  elif score == "2023Muon":
56  from Configuration.AlCa.GlobalTag import GlobalTag
57  process.GlobalTag = GlobalTag(process.GlobalTag, 'auto:upgradePLS3', '')
58  process.load('Configuration.Geometry.GeometryExtended2023MuonReco_cff')
59  # Automatic addition of the customisation function from SLHCUpgradeSimulations.Configuration.combinedCustoms
60  from SLHCUpgradeSimulations.Configuration.combinedCustoms import cust_2023Muon
61  #call to customisation function cust_2023Muon imported from SLHCUpgradeSimulations.Configuration.combinedCustoms
62  # process = cust_2023Muon(process)
63 
64  elif score == "SLHCDB": # orig dumpFWRecoSLHCGeometry_cfg.py
65  process.GlobalTag.globaltag = 'DESIGN42_V17::All'
66  process.load("Configuration.StandardSequences.GeometryDB_cff")
67  process.load("Configuration.StandardSequences.Reconstruction_cff")
68 
69  process.GlobalTag.toGet = cms.VPSet(
70  cms.PSet(record = cms.string("GeometryFileRcd"),
71  tag = cms.string("XMLFILE_Geometry_428SLHCYV0_Phase1_R30F12_HCal_Ideal_mc"),
72  connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_42X_GEOMETRY")
73  ),
74  cms.PSet(record = cms.string('IdealGeometryRecord'),
75  tag = cms.string('TKRECO_Geometry_428SLHCYV0'),
76  connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_42X_GEOMETRY")),
77  cms.PSet(record = cms.string('PGeometricDetExtraRcd'),
78  tag = cms.string('TKExtra_Geometry_428SLHCYV0'),
79  connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_42X_GEOMETRY")),
80  )
81 
82  elif score == varType.valueForKey("SLHC"): # orig dumpFWRecoGeometrySLHC_cfg.py
83  from Configuration.AlCa.autoCond import autoCond
84  process.GlobalTag.globaltag = autoCond['mc']
85  process.load("Configuration.Geometry.GeometrySLHCSimIdeal_cff")
86  process.load("Configuration.Geometry.GeometrySLHCReco_cff")
87  process.load("Configuration.StandardSequences.Reconstruction_cff")
88  process.trackerSLHCGeometry.applyAlignment = False
89 
90  else:
91  help()
92 
93 
94 

Variable Documentation

string dumpRecoGeometry_cfg.defaultOutputFileName = "cmsRecoGeom.root"

Definition at line 98 of file dumpRecoGeometry_cfg.py.

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

Definition at line 146 of file dumpRecoGeometry_cfg.py.

tuple dumpRecoGeometry_cfg.options = VarParsing.VarParsing()

Definition at line 95 of file dumpRecoGeometry_cfg.py.

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

Definition at line 139 of file dumpRecoGeometry_cfg.py.

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

Definition at line 125 of file dumpRecoGeometry_cfg.py.

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

Definition at line 138 of file dumpRecoGeometry_cfg.py.

Referenced by 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::RpcDataUXC.getNewObjects(), popcon::RpcDataV.getNewObjects(), popcon::RpcDataFebmap.getNewObjects(), popcon::L1RPCHwConfigSourceHandler.getNewObjects(), popcon::EcalSRPHandler.getNewObjects(), popcon::RPCEMapSourceHandler.getNewObjects(), popcon::EcalLaser_weekly_Linearization.getNewObjects(), popcon::EcalDAQHandler.getNewObjects(), popcon::EcalTPGFineGrainEBIdMapHandler.getNewObjects(), popcon::EcalTPGLinConstHandler.getNewObjects(), popcon::EcalTPGLutIdMapHandler.getNewObjects(), popcon::EcalTPGPhysicsConstHandler.getNewObjects(), popcon::EcalTPGBadStripHandler.getNewObjects(), popcon::EcalTPGWeightIdMapHandler.getNewObjects(), popcon::EcalTPGBadTTHandler.getNewObjects(), popcon::EcalTPGBadXTHandler.getNewObjects(), popcon::EcalTPGFineGrainEBGroupHandler.getNewObjects(), popcon::EcalTPGFineGrainTowerEEHandler.getNewObjects(), popcon::EcalLaser_weekly_Handler.getNewObjects(), popcon::EcalLaserHandler.getNewObjects(), popcon::EcalTPGWeightGroupHandler.getNewObjects(), popcon::EcalTPGFineGrainStripEEHandler.getNewObjects(), popcon::EcalTPGPedestalsHandler.getNewObjects(), popcon::EcalTPGSlidingWindowHandler.getNewObjects(), popcon::EcalTPGLutGroupHandler.getNewObjects(), popcon::EcalTPGSpikeThresholdHandler.getNewObjects(), popcon::EcalADCToGeVHandler.getNewObjects(), popcon::EcalIntercalibHandler.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.