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 == "2023Muon":
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.GeometryExtended2023MuonReco_cff')
72  # Automatic addition of the customisation function from SLHCUpgradeSimulations.Configuration.combinedCustoms
73  #from SLHCUpgradeSimulations.Configuration.combinedCustoms import cust_2023Muon
74  #call to customisation function cust_2023Muon imported from SLHCUpgradeSimulations.Configuration.combinedCustoms
75  #process = cust_2023Muon(process)
76 
77  elif score == "GEMDev":
78  from Configuration.AlCa.autoCond import autoCond
79  process.GlobalTag.globaltag = autoCond['mc']
80  process.load('Configuration.Geometry.GeometryExtended2015MuonGEMDevReco_cff')
81 
82  elif score == "SLHCDB": # orig dumpFWRecoSLHCGeometry_cfg.py
83  process.GlobalTag.globaltag = 'DESIGN42_V17::All'
84  process.load("Configuration.StandardSequences.GeometryDB_cff")
85  process.load("Configuration.StandardSequences.Reconstruction_cff")
86 
87  process.GlobalTag.toGet = cms.VPSet(
88  cms.PSet(record = cms.string("GeometryFileRcd"),
89  tag = cms.string("XMLFILE_Geometry_428SLHCYV0_Phase1_R30F12_HCal_Ideal_mc"),
90  connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_42X_GEOMETRY")
91  ),
92  cms.PSet(record = cms.string('IdealGeometryRecord'),
93  tag = cms.string('TKRECO_Geometry_428SLHCYV0'),
94  connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_42X_GEOMETRY")),
95  cms.PSet(record = cms.string('PGeometricDetExtraRcd'),
96  tag = cms.string('TKExtra_Geometry_428SLHCYV0'),
97  connect = cms.untracked.string("frontier://FrontierProd/CMS_COND_42X_GEOMETRY")),
98  )
99 
100  elif score == varType.valueForKey("SLHC"): # orig dumpFWRecoGeometrySLHC_cfg.py
101  from Configuration.AlCa.autoCond import autoCond
102  process.GlobalTag.globaltag = autoCond['mc']
103  process.load("Configuration.Geometry.GeometrySLHCSimIdeal_cff")
104  process.load("Configuration.Geometry.GeometrySLHCReco_cff")
105  process.load("Configuration.StandardSequences.Reconstruction_cff")
106  process.trackerSLHCGeometry.applyAlignment = False
107 
108  else:
109  help()
110 
111 
112 

Variable Documentation

string dumpRecoGeometry_cfg.defaultOutputFileName = "cmsRecoGeom.root"

Definition at line 116 of file dumpRecoGeometry_cfg.py.

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

Definition at line 164 of file dumpRecoGeometry_cfg.py.

tuple dumpRecoGeometry_cfg.options = VarParsing.VarParsing()

Definition at line 113 of file dumpRecoGeometry_cfg.py.

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

Definition at line 157 of file dumpRecoGeometry_cfg.py.

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

Definition at line 143 of file dumpRecoGeometry_cfg.py.

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

Definition at line 156 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.