File indexing completed on 2024-11-07 06:13:05
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 import FWCore.ParameterSet.Config as cms
0011 import os, sys, importlib, re
0012 import FWCore.ParameterSet.VarParsing as VarParsing
0013
0014
0015
0016 options = VarParsing.VarParsing('standard')
0017 options.register('geometry',
0018 "D110",
0019 VarParsing.VarParsing.multiplicity.singleton,
0020 VarParsing.VarParsing.varType.string,
0021 "geometry of operations: D95, D96, D98, D99, D100, D101, D102, D103, D104, D105, D106, D107, D108, D109, D110, D111, D112, D113, D114, D115, D116")
0022
0023
0024 options.parseArguments()
0025
0026 print(options)
0027
0028
0029
0030
0031 if (options.geometry == "D115"):
0032 from Configuration.Eras.Era_Phase2C20I13M9_cff import Phase2C20I13M9
0033 process = cms.Process('G4PrintGeometry',Phase2C20I13M9)
0034 elif (options.geometry == "D104"):
0035 from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9
0036 process = cms.Process('G4PrintGeometry',Phase2C22I13M9)
0037 elif (options.geometry == "D106"):
0038 from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9
0039 process = cms.Process('G4PrintGeometry',Phase2C22I13M9)
0040 elif (options.geometry == "D109"):
0041 from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9
0042 process = cms.Process('G4PrintGeometry',Phase2C22I13M9)
0043 elif (options.geometry == "D111"):
0044 from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9
0045 process = cms.Process('G4PrintGeometry',Phase2C22I13M9)
0046 elif (options.geometry == "D112"):
0047 from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9
0048 process = cms.Process('G4PrintGeometry',Phase2C22I13M9)
0049 elif (options.geometry == "D113"):
0050 from Configuration.Eras.Era_Phase2C22I13M9_cff import Phase2C22I13M9
0051 process = cms.Process('G4PrintGeometry',Phase2C22I13M9)
0052 else:
0053 from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
0054 process = cms.Process('G4PrintGeometry',Phase2C17I13M9)
0055
0056 geomFile = "Configuration.Geometry.GeometryExtendedRun4" + options.geometry + "Reco_cff"
0057
0058 print("Geometry file Name: ", geomFile)
0059
0060 process.load(geomFile)
0061 process.load('FWCore.MessageService.MessageLogger_cfi')
0062
0063 if hasattr(process,'MessageLogger'):
0064 process.MessageLogger.G4cout=dict()
0065 process.MessageLogger.G4cerr=dict()
0066
0067 from SimG4Core.PrintGeomInfo.g4PrintGeomSummary_cfi import *
0068
0069 process = printGeomSummary(process)