File indexing completed on 2024-06-18 02:20:44
0001 import FWCore.ParameterSet.Config as cms
0002
0003 from Configuration.Eras.Era_Phase2C17I13M9_cff import Phase2C17I13M9
0004 from Configuration.ProcessModifiers.dd4hep_cff import dd4hep
0005 process = cms.Process('G4PrintGeometry',Phase2C17I13M9,dd4hep)
0006
0007 process.load('Configuration.Geometry.GeometryDD4hepExtended2026D110Reco_cff')
0008 process.load('FWCore.MessageService.MessageLogger_cfi')
0009
0010 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0011 process.MessageLogger.cerr.threshold = cms.untracked.string('INFO')
0012 process.MessageLogger.cerr.INFO = cms.untracked.PSet(
0013 limit = cms.untracked.int32(0)
0014 )
0015 process.MessageLogger.cerr.G4cout = cms.untracked.PSet(
0016 limit = cms.untracked.int32(-1)
0017 )
0018 process.MessageLogger.files.mtdG4sensDD4hep = cms.untracked.PSet(
0019 DEBUG = cms.untracked.PSet(
0020 limit = cms.untracked.int32(0)
0021 ),
0022 ERROR = cms.untracked.PSet(
0023 limit = cms.untracked.int32(0)
0024 ),
0025 FWKINFO = cms.untracked.PSet(
0026 limit = cms.untracked.int32(0)
0027 ),
0028 INFO = cms.untracked.PSet(
0029 limit = cms.untracked.int32(0)
0030 ),
0031 MTDG4sensUnitTest = cms.untracked.PSet(
0032 limit = cms.untracked.int32(-1)
0033 ),
0034 WARNING = cms.untracked.PSet(
0035 limit = cms.untracked.int32(0)
0036 ),
0037 noLineBreaks = cms.untracked.bool(True),
0038 threshold = cms.untracked.string('INFO')
0039 )
0040
0041 process.maxEvents = cms.untracked.PSet(
0042 input = cms.untracked.int32(1)
0043 )
0044
0045 process.load('SimGeneral.HepPDTESSource.pdt_cfi')
0046 process.load('IOMC.EventVertexGenerators.VtxSmearedFlat_cfi')
0047 process.load('GeneratorInterface.Core.generatorSmeared_cfi')
0048
0049 process.source = cms.Source("EmptySource")
0050
0051 process.generator = cms.EDProducer("FlatRandomPtGunProducer",
0052 PGunParameters = cms.PSet(
0053 PartID = cms.vint32(13),
0054 MinEta = cms.double(-2.5),
0055 MaxEta = cms.double(2.5),
0056 MinPhi = cms.double(-3.14159265359),
0057 MaxPhi = cms.double(3.14159265359),
0058 MinPt = cms.double(9.99),
0059 MaxPt = cms.double(10.01)
0060 ),
0061 AddAntiParticle = cms.bool(False),
0062 Verbosity = cms.untracked.int32(0),
0063 firstRun = cms.untracked.uint32(1)
0064 )
0065
0066 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0067 generator = cms.PSet(
0068 initialSeed = cms.untracked.uint32(123456789),
0069 engineName = cms.untracked.string('HepJamesRandom')
0070 ),
0071 VtxSmeared = cms.PSet(
0072 engineName = cms.untracked.string('HepJamesRandom'),
0073 initialSeed = cms.untracked.uint32(98765432)
0074 ),
0075 g4SimHits = cms.PSet(
0076 initialSeed = cms.untracked.uint32(11),
0077 engineName = cms.untracked.string('HepJamesRandom')
0078 )
0079 )
0080
0081 process.load('SimG4Core.Application.g4SimHits_cfi')
0082
0083 process.p1 = cms.Path(process.generator*process.VtxSmeared*process.generatorSmeared*process.g4SimHits)
0084
0085 process.g4SimHits.UseMagneticField = False
0086 process.g4SimHits.Physics.DefaultCutValue = 10.
0087 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0088 Name = cms.untracked.vstring('BTLCrystal','LGAD_active'),
0089 type = cms.string('PrintMTDSens')
0090 ))