File indexing completed on 2024-11-14 04:15:36
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 import FWCore.ParameterSet.Config as cms
0011 import os, sys, imp, 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 print(options)
0026
0027
0028
0029 from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
0030 process = cms.Process('GeomCheck',Phase2C17I13M9)
0031
0032 geomFile = "Configuration.Geometry.GeometryExtendedRun4" + options.geometry + "Reco_cff"
0033 inFile = "miss" + options.geometry + ".txt"
0034
0035 print("Geometry file: ", geomFile)
0036 print("Input file: ", inFile)
0037
0038 process.load(geomFile)
0039 process.load("SimGeneral.HepPDTESSource.pdt_cfi")
0040 process.load('FWCore.MessageService.MessageLogger_cfi')
0041
0042 if hasattr(process,'MessageLogger'):
0043
0044
0045 process.MessageLogger.HGCalMiss=dict()
0046
0047 process.load("IOMC.RandomEngine.IOMC_cff")
0048 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0049
0050 process.source = cms.Source("EmptySource")
0051
0052 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0053 PGunParameters = cms.PSet(
0054 PartID = cms.vint32(14),
0055 MinEta = cms.double(-3.5),
0056 MaxEta = cms.double(3.5),
0057 MinPhi = cms.double(-3.14159265359),
0058 MaxPhi = cms.double(3.14159265359),
0059 MinE = cms.double(9.99),
0060 MaxE = cms.double(10.01)
0061 ),
0062 AddAntiParticle = cms.bool(False),
0063 Verbosity = cms.untracked.int32(0),
0064 firstRun = cms.untracked.uint32(1)
0065 )
0066
0067 process.maxEvents = cms.untracked.PSet(
0068 input = cms.untracked.int32(1)
0069 )
0070
0071 process.load("Geometry.HGCalCommonData.hgcalValidityTester_cfi")
0072 process.hgcalValidityTester.fileName = inFile
0073
0074 process.p1 = cms.Path(process.generator*process.hgcalValidityTester)