File indexing completed on 2024-08-29 02:16:54
0001
0002
0003
0004
0005
0006
0007
0008
0009 import FWCore.ParameterSet.Config as cms
0010 import os, sys, imp, re
0011 import FWCore.ParameterSet.VarParsing as VarParsing
0012
0013
0014
0015 options = VarParsing.VarParsing('standard')
0016 options.register('geometry',
0017 "D110",
0018 VarParsing.VarParsing.multiplicity.singleton,
0019 VarParsing.VarParsing.varType.string,
0020 "geometry of operations: D95, D96, D98, D99, D100, D101, D102, D103, D104, D105, D106, D107, D108, D109, D110, D111, D112, D113, D114")
0021
0022
0023 options.parseArguments()
0024
0025 print(options)
0026
0027
0028
0029 from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
0030 process = cms.Process('TestHGCalGeometry',Phase2C17I13M9)
0031
0032 geomFile = "Geometry.CMSCommonData.cmsExtendedGeometry2026" + options.geometry + "XML_cfi"
0033
0034 print("Geometry file: ", geomFile)
0035
0036 process.load("SimGeneral.HepPDTESSource.pdt_cfi")
0037 process.load(geomFile)
0038 process.load("Geometry.TrackerNumberingBuilder.trackerNumberingGeometry_cfi")
0039 process.load("Geometry.MuonNumbering.muonNumberingInitialization_cfi")
0040 process.load("Geometry.EcalCommonData.ecalSimulationParameters_cff")
0041 process.load("Geometry.HcalCommonData.hcalDDDSimConstants_cff")
0042 process.load("Geometry.HGCalCommonData.hgcalParametersInitialization_cfi")
0043 process.load("Geometry.HGCalCommonData.hgcalNumberingInitialization_cfi")
0044 process.load('FWCore.MessageService.MessageLogger_cfi')
0045 process.load("Geometry.HGCalCommonData.hgcGeometryTester_cfi")
0046
0047 if hasattr(process,'MessageLogger'):
0048 process.MessageLogger.HGCalGeom=dict()
0049 process.MessageLogger.HGCalGeomX=dict()
0050
0051 process.load("IOMC.RandomEngine.IOMC_cff")
0052 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0053
0054 process.source = cms.Source("EmptySource")
0055
0056 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0057 PGunParameters = cms.PSet(
0058 PartID = cms.vint32(14),
0059 MinEta = cms.double(-3.5),
0060 MaxEta = cms.double(3.5),
0061 MinPhi = cms.double(-3.14159265359),
0062 MaxPhi = cms.double(3.14159265359),
0063 MinE = cms.double(9.99),
0064 MaxE = cms.double(10.01)
0065 ),
0066 AddAntiParticle = cms.bool(False),
0067 Verbosity = cms.untracked.int32(0),
0068 firstRun = cms.untracked.uint32(1)
0069 )
0070
0071 process.maxEvents = cms.untracked.PSet(
0072 input = cms.untracked.int32(1)
0073 )
0074
0075 process.p1 = cms.Path(process.generator*process.hgcGeometryTester)