File indexing completed on 2024-11-06 06:06:41
0001 import FWCore.ParameterSet.Config as cms
0002 import FWCore.ParameterSet.VarParsing as VarParsing
0003
0004 import Configuration.Geometry.defaultPhase2ConditionsEra_cff as _settings
0005
0006
0007
0008 options = VarParsing.VarParsing()
0009 options.register('Scenario',
0010 _settings.DEFAULT_VERSION,
0011 VarParsing.VarParsing.multiplicity.singleton,
0012 VarParsing.VarParsing.varType.string,
0013 "geometry version to use: Run4DXXX")
0014 options.parseArguments()
0015
0016
0017
0018
0019 GLOBAL_TAG, ERA = _settings.get_era_and_conditions(options.Scenario)
0020
0021 process = cms.Process("GeometryTest",ERA)
0022 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0023
0024
0025 if(options.Scenario == _settings.DEFAULT_VERSION):
0026 print("Loading default scenario: ", _settings.DEFAULT_VERSION)
0027 process.load('Configuration.Geometry.GeometryExtendedRun4DefaultReco_cff')
0028 else:
0029 process.load('Configuration.Geometry.GeometryExtended'+options.Scenario+'Reco_cff')
0030
0031 process.source = cms.Source("EmptySource")
0032
0033 process.maxEvents = cms.untracked.PSet(
0034 input = cms.untracked.int32(1)
0035 )
0036 process.prod = cms.EDAnalyzer("GeoHierarchy",
0037 fromDDD = cms.bool(True)
0038 )
0039
0040 process.load("Alignment.CommonAlignmentProducer.FakeAlignmentSource_cfi")
0041 process.preferFakeAlign = cms.ESPrefer("FakeAlignmentSource")
0042
0043 process.p1 = cms.Path(process.prod)