File indexing completed on 2024-04-30 04:10:44
0001
0002
0003
0004
0005
0006
0007
0008 import FWCore.ParameterSet.Config as cms
0009 import os, sys, importlib, re
0010 import FWCore.ParameterSet.VarParsing as VarParsing
0011
0012
0013
0014 options = VarParsing.VarParsing('standard')
0015 options.register('geometry',
0016 "2024",
0017 VarParsing.VarParsing.multiplicity.singleton,
0018 VarParsing.VarParsing.varType.string,
0019 "geometry of operations: 2021, 2023, 2024")
0020
0021
0022 options.parseArguments()
0023
0024 print(options)
0025
0026
0027
0028
0029 from Configuration.Eras.Era_Run3_DDD_cff import Run3_DDD
0030 process = cms.Process('PrintGeometry',Run3_DDD)
0031 geomFile = "Configuration.Geometry.GeometryExtended" + options.geometry + "Reco_cff"
0032
0033 print("Geometry file: ", geomFile)
0034
0035 process.load(geomFile)
0036 process.load('FWCore.MessageService.MessageLogger_cfi')
0037
0038 if hasattr(process,'MessageLogger'):
0039 process.MessageLogger.G4cout=dict()
0040 process.MessageLogger.G4cerr=dict()
0041
0042 from SimG4Core.PrintGeomInfo.g4PrintGeomSummary_cfi import *
0043
0044 process = printGeomSummary(process)