CMS 3D CMS Logo

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

Functions

def help
 
def recoGeoLoad
 
def versionCheck
 

Variables

tuple Calo = cms.untracked.bool(options.calo)
 
string defaultOutputFileName = "cmsRecoGeom.root"
 
tuple defaultVersion = str()
 
tuple level = cms.untracked.int32(1)
 
tuple Muon = cms.untracked.bool(options.muon)
 
tuple options = VarParsing.VarParsing()
 
tuple outputFileName = cms.untracked.string(options.out)
 
tuple process = cms.Process("DUMP")
 
tuple tagInfo = cms.untracked.string(options.tag)
 
tuple Timing = cms.untracked.bool(options.timing)
 
tuple Tracker = cms.untracked.bool(options.tracker)
 
tuple varType = Enumerate("Run1 2015 2017 2021 2026 MaPSA")
 

Function Documentation

def dumpRecoGeometry_cfg.help ( )

Definition at line 11 of file dumpRecoGeometry_cfg.py.

References print().

Referenced by recoGeoLoad(), and versionCheck().

11 
12 def help():
13  print("Usage: cmsRun dumpFWRecoGeometry_cfg.py tag=TAG ")
14  print(" tag=tagname")
15  print(" identify geometry condition database tag")
16  print(" ", varType.keys())
17  print("")
18  print(" version=versionNumber")
19  print(" scenario version from 2026 dictionary")
20  print("")
21  print(" tgeo=bool")
22  print(" dump in TGeo format to browse in geometry viewer")
23  print(" import this in Fireworks with option --sim-geom-file")
24  print("")
25  print(" tracker=bool")
26  print(" include Tracker subdetectors")
27  print("")
28  print(" muon=bool")
29  print(" include Muon subdetectors")
30  print("")
31  print(" calo=bool")
32  print(" include Calo subdetectors")
33  print("")
34  print(" timing=bool")
35  print(" include Timing subdetectors")
36  print("")
37  print("")
38  os._exit(1);
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def dumpRecoGeometry_cfg.recoGeoLoad (   score)

Definition at line 46 of file dumpRecoGeometry_cfg.py.

References help(), print(), and versionCheck().

46 
47 def recoGeoLoad(score):
48  print("Loading configuration for tag ", options.tag ,"...\n")
49 
50  if score == "Run1":
51  process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
52  from Configuration.AlCa.autoCond import autoCond
53  process.GlobalTag.globaltag = autoCond['run1_mc']
54  process.load("Configuration.StandardSequences.GeometryDB_cff")
55 
56  elif score == "2015":
57  process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
58  from Configuration.AlCa.autoCond import autoCond
59  process.GlobalTag.globaltag = autoCond['run2_mc']
60  process.load("Configuration.StandardSequences.GeometryDB_cff")
61 
62  elif score == "2017":
63  process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
64  from Configuration.AlCa.autoCond import autoCond
65  process.GlobalTag.globaltag = autoCond['upgrade2017']
66  process.load('Configuration.Geometry.GeometryExtended2017Reco_cff')
67 
68  elif score == "2021":
69  process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
70  from Configuration.AlCa.autoCond import autoCond
71  process.GlobalTag.globaltag = autoCond['upgrade2021']
72  ## NOTE: There is no PTrackerParameters Rcd in this GT yet
73  process.load('Geometry.TrackerGeometryBuilder.trackerParameters_cfi')
74  process.load('Configuration.Geometry.GeometryExtended2021Reco_cff')
75  ## NOTE: There are no Muon alignement records in the GT yet
76  process.DTGeometryESModule.applyAlignment = cms.bool(False)
77  process.CSCGeometryESModule.applyAlignment = cms.bool(False)
78 
79  elif "2026" in score:
80  versionCheck(options.version)
81  process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
82  from Configuration.AlCa.autoCond import autoCond
83  process.GlobalTag.globaltag = autoCond['run2_mc']
84  process.load('Configuration.Geometry.GeometryExtended2026'+options.version+'Reco_cff')
85 
86  elif score == "MaPSA":
87  process.load('Geometry.TrackerGeometryBuilder.idealForDigiTrackerGeometry_cff')
88  process.load('Geometry.TrackerCommonData.mapsaGeometryXML_cfi')
89  process.load('Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi')
90  process.load('Geometry.TrackerNumberingBuilder.trackerTopology_cfi')
91  process.load('Geometry.TrackerGeometryBuilder.trackerParameters_cfi')
92  process.load('Geometry.TrackerGeometryBuilder.trackerGeometry_cfi')
93  process.trackerGeometry.applyAlignment = cms.bool(False)
94  process.load('RecoTracker.GeometryESProducer.TrackerRecoGeometryESProducer_cfi')
95 
96  process.load('Geometry.CommonTopologies.bareGlobalTrackingGeometry_cfi')
97 
98  elif score == "HGCTB160": ## hgcal testbeam
99  process.load("Configuration.StandardSequences.FrontierConditions_GlobalTag_cff")
100  from Configuration.AlCa.autoCond import autoCond
101  process.GlobalTag.globaltag = autoCond['mc']
102  process.load('Geometry.HGCalCommonData.hgcalV6ParametersInitialization_cfi')
103  process.load('Geometry.HGCalCommonData.hgcalV6NumberingInitialization_cfi')
104  process.load('Geometry.CaloEventSetup.HGCalV6Topology_cfi')
105  process.load('Geometry.HGCalGeometry.HGCalV6GeometryESProducer_cfi')
106  process.load('Geometry.CaloEventSetup.CaloTopology_cfi')
107  process.load('Geometry.CaloEventSetup.CaloGeometryBuilder_cfi')
108  process.CaloGeometryBuilder = cms.ESProducer(
109  "CaloGeometryBuilder",
110  SelectedCalos = cms.vstring("HGCalEESensitive")
111  )
112  process.load("SimG4CMS.HGCalTestBeam.HGCalTB160XML_cfi")
113 
114  else:
115  help()
116 
117 
118 
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47
def dumpRecoGeometry_cfg.versionCheck (   ver)

Definition at line 39 of file dumpRecoGeometry_cfg.py.

References help(), and print().

Referenced by recoGeoLoad().

39 
40 def versionCheck(ver):
41  if ver == "":
42  print("Please, specify 2026 scenario version\n")
43  print(sorted([x[1] for x in detectorVersionDict.items()]))
44  print("")
45  help()
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
Definition: Utilities.cc:47

Variable Documentation

tuple dumpRecoGeometry_cfg.Calo = cms.untracked.bool(options.calo)

Definition at line 191 of file dumpRecoGeometry_cfg.py.

Referenced by pat::Flags::Isolation.bitToString(), and l1tpf::ParametricResolution.operator()().

string dumpRecoGeometry_cfg.defaultOutputFileName = "cmsRecoGeom.root"

Definition at line 122 of file dumpRecoGeometry_cfg.py.

tuple dumpRecoGeometry_cfg.defaultVersion = str()

Definition at line 9 of file dumpRecoGeometry_cfg.py.

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

Definition at line 206 of file dumpRecoGeometry_cfg.py.

tuple dumpRecoGeometry_cfg.Muon = cms.untracked.bool(options.muon)

Definition at line 190 of file dumpRecoGeometry_cfg.py.

Referenced by L1TStage2EMTF.analyze(), L1TStage2uGMTMuon.analyze(), L1TStage2uGMT.analyze(), PatMuonAnalyzer.analyze(), BasicMuonAnalyzer.analyze(), L1TObjectsTiming.analyze(), L1Validator.analyze(), MuonHitHelper.chamber(), DeepTauId.createMuonBlockInputs(), pat::PATObjectUserDataEmbedder< T >.fillDescriptions(), main(), MuonIdProducer.makeMuon(), l1t::TriggerMenuParser.parseCorrelation(), l1t::TriggerMenuParser.parseCorrelationThreeBody(), l1t::TriggerMenuParser.parseCorrelationWithOverlapRemoval(), l1t::TriggerMenuParser.parseScales(), helper::MuonCollectionStoreManager.processMuon(), and L1Analysis::L1AnalysisRecoMuon2.SetMuon().

tuple dumpRecoGeometry_cfg.options = VarParsing.VarParsing()

Definition at line 119 of file dumpRecoGeometry_cfg.py.

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

Definition at line 195 of file dumpRecoGeometry_cfg.py.

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

Definition at line 177 of file dumpRecoGeometry_cfg.py.

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

Definition at line 194 of file dumpRecoGeometry_cfg.py.

Referenced by cms::HTTTopJetProducer.addHTTTopJetTagInfoCollection(), SoftLeptonTagPlotter.analyzeTag(), TrackCountingTagPlotter.analyzeTag(), IPTagPlotter< Container, Base >.analyzeTag(), TrackProbabilityTagPlotter.analyzeTag(), cond::payloadInspector::RunHistoryPlot< PayloadType, std::pair< double, double > >.fill(), cond::payloadInspector::TimeHistoryPlot< PayloadType, std::pair< double, double > >.fill(), popcon::RpcDataFebmap.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::L1RPCHwConfigSourceHandler.getNewObjects(), popcon::RPCEMapSourceHandler.getNewObjects(), popcon::EcalSRPHandler.getNewObjects(), popcon::EcalLaser_weekly_Linearization.getNewObjects(), popcon::EcalTPGFineGrainEBIdMapHandler.getNewObjects(), popcon::EcalTPGWeightIdMapHandler.getNewObjects(), popcon::EcalTPGLinConstHandler.getNewObjects(), popcon::EcalTPGLutIdMapHandler.getNewObjects(), popcon::EcalTPGBadStripHandler.getNewObjects(), popcon::EcalTPGOddWeightIdMapHandler.getNewObjects(), popcon::EcalTPGPhysicsConstHandler.getNewObjects(), popcon::EcalTPGBadTTHandler.getNewObjects(), popcon::EcalTPGTPModeHandler.getNewObjects(), popcon::EcalDAQHandler.getNewObjects(), popcon::EcalTPGLinPed.getNewObjects(), popcon::EcalTPGPedfromFile.getNewObjects(), popcon::EcalTPGBadXTHandler.getNewObjects(), popcon::EcalTPGFineGrainEBGroupHandler.getNewObjects(), popcon::EcalTPGFineGrainTowerEEHandler.getNewObjects(), popcon::EcalTPGWeightGroupHandler.getNewObjects(), popcon::EcalLaserHandler.getNewObjects(), popcon::EcalTPGOddWeightGroupHandler.getNewObjects(), popcon::EcalADCToGeVHandler.getNewObjects(), popcon::EcalLaser_weekly_Handler.getNewObjects(), popcon::EcalTPGSlidingWindowHandler.getNewObjects(), popcon::EcalTPGFineGrainStripEEHandler.getNewObjects(), popcon::EcalTPGPedestalsHandler.getNewObjects(), popcon::EcalTPGSpikeThresholdHandler.getNewObjects(), popcon::EcalTPGLutGroupHandler.getNewObjects(), popcon::EcalDCSHandler.getNewObjects(), popcon::EcalChannelStatusHandler.getNewObjects(), popcon::EcalPedestalsHandler.getNewObjectsH2(), popcon::EcalPedestalsHandler.getNewObjectsP5(), BTVHLTOfflineSource.getOfflineBTagTracks(), JetTagProducer.JetTagProducer(), l1t::DataWriter.lastPayloadToken(), l1t::DataWriterExt.lastPayloadToken(), SoftPFElectronTagInfoProducer.produce(), JetTagProducer.produce(), SoftPFMuonTagInfoProducer.produce(), CATopJetTagger.produce(), PixelClusterTagInfoProducer.produce(), l1t::DataWriter.updateIOV(), and l1t::DataWriterExt.updateIOV().

tuple dumpRecoGeometry_cfg.Timing = cms.untracked.bool(options.timing)

Definition at line 192 of file dumpRecoGeometry_cfg.py.

tuple dumpRecoGeometry_cfg.Tracker = cms.untracked.bool(options.tracker)

Definition at line 189 of file dumpRecoGeometry_cfg.py.

tuple dumpRecoGeometry_cfg.varType = Enumerate("Run1 2015 2017 2021 2026 MaPSA")

Definition at line 8 of file dumpRecoGeometry_cfg.py.

Referenced by PrimaryVertexValidation.bookResidualsHistogram().