File indexing completed on 2024-11-06 06:06:40
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 print(options)
0025
0026 from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
0027 process = cms.Process("HGCalGeometryMouseBite",Phase2C17I13M9)
0028
0029
0030
0031 geomFile = "Configuration.Geometry.GeometryExtendedRun4" + options.geometry + "Reco_cff"
0032 print("Geometry file: ", geomFile)
0033
0034 process.load(geomFile)
0035 process.load("SimGeneral.HepPDTESSource.pdt_cfi")
0036 process.load('FWCore.MessageService.MessageLogger_cfi')
0037
0038 if hasattr(process,'MessageLogger'):
0039 process.MessageLogger.HGCalGeom=dict()
0040 process.MessageLogger.HGCalGeomX=dict()
0041
0042 process.load("IOMC.RandomEngine.IOMC_cff")
0043 process.RandomNumberGeneratorService.generator.initialSeed = 456789
0044
0045 process.source = cms.Source("EmptySource")
0046
0047 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0048 PGunParameters = cms.PSet(
0049 PartID = cms.vint32(14),
0050 MinEta = cms.double(-3.5),
0051 MaxEta = cms.double(3.5),
0052 MinPhi = cms.double(-3.14159265359),
0053 MaxPhi = cms.double(3.14159265359),
0054 MinE = cms.double(9.99),
0055 MaxE = cms.double(10.01)
0056 ),
0057 AddAntiParticle = cms.bool(False),
0058 Verbosity = cms.untracked.int32(0),
0059 firstRun = cms.untracked.uint32(1)
0060 )
0061
0062 process.maxEvents = cms.untracked.PSet(
0063 input = cms.untracked.int32(1)
0064 )
0065
0066 process.prodEE = cms.EDAnalyzer("HGCalGeometryMouseBiteTester",
0067 NameSense = cms.string("HGCalEESensitive"),
0068 NameDevice = cms.string("HGCal EE"),
0069 )
0070
0071 process.prodHEF = process.prodEE.clone(
0072 NameSense = "HGCalHESiliconSensitive",
0073 NameDevice = "HGCal HE Front"
0074 )
0075
0076 process.prodHFN = process.prodEE.clone(
0077 NameSense = "HGCalHFNoseSensitive",
0078 NameDevice = "HGCal HF Nose"
0079 )
0080
0081 if (options.geometry == "D94"):
0082 process.p1 = cms.Path(process.generator*process.prodEE*process.prodHEF*process.prodHFN)
0083 else:
0084 process.p1 = cms.Path(process.generator*process.prodEE*process.prodHEF)