Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-11-30 10:17:34

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Configuration.Eras.Era_Run3_DDD_cff import Run3_DDD
0004 process = cms.Process("PrintMaterialBudget",Run3_DDD)
0005 process.load('Configuration.Geometry.GeometryExtended2021Reco_cff')
0006 
0007 #from Configuration.Eras.Era_Run3_dd4hep_cff import Run3_dd4hep
0008 #process = cms.Process('PrintMaterialBudget',Run3_dd4hep)
0009 #process.load('Configuration.Geometry.GeometryDD4hepExtended2021Reco_cff')
0010 
0011 #from Configuration.Eras.Era_Phase2C11_cff import Phase2C11
0012 #process = cms.Process('PrintMaterialBudget',Phase2C11)
0013 #process.load('Configuration.Geometry.GeometryExtended2026D83Reco_cff')
0014 
0015 process.load('FWCore.MessageService.MessageLogger_cfi')
0016 
0017 process.MessageLogger.cerr.enable = False
0018 process.MessageLogger.files.MatBudget = dict(extension = "txt")
0019 process.MessageLogger.G4cout=dict()
0020 
0021 process.maxEvents = cms.untracked.PSet(
0022     input = cms.untracked.int32(1)
0023 )
0024 
0025 process.load('SimGeneral.HepPDTESSource.pdt_cfi')
0026 process.load('IOMC.EventVertexGenerators.VtxSmearedFlat_cfi')
0027 process.load('GeneratorInterface.Core.generatorSmeared_cfi')
0028 
0029 process.source = cms.Source("EmptySource")
0030 
0031 process.generator = cms.EDProducer("FlatRandomPtGunProducer",
0032     PGunParameters = cms.PSet(
0033         PartID = cms.vint32(13),
0034         MinEta = cms.double(-2.5),
0035         MaxEta = cms.double(2.5),
0036         MinPhi = cms.double(-3.14159265359),
0037         MaxPhi = cms.double(3.14159265359),
0038         MinPt  = cms.double(9.99),
0039         MaxPt  = cms.double(10.01)
0040     ),
0041     AddAntiParticle = cms.bool(False),
0042     Verbosity       = cms.untracked.int32(0),
0043     firstRun        = cms.untracked.uint32(1)
0044 )
0045 
0046 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0047     generator = cms.PSet(
0048          initialSeed = cms.untracked.uint32(123456789),
0049          engineName = cms.untracked.string('HepJamesRandom')
0050     ),
0051     VtxSmeared = cms.PSet(
0052         engineName = cms.untracked.string('HepJamesRandom'),
0053         initialSeed = cms.untracked.uint32(98765432)
0054     ),
0055     g4SimHits = cms.PSet(
0056          initialSeed = cms.untracked.uint32(11),
0057          engineName = cms.untracked.string('HepJamesRandom')
0058     )
0059 )
0060 
0061 process.load('SimG4Core.Application.g4SimHits_cfi')
0062 
0063 process.p1 = cms.Path(process.generator*process.VtxSmeared*process.generatorSmeared*process.g4SimHits)
0064 
0065 process.g4SimHits.Physics.type            = 'SimG4Core/Physics/DummyPhysics'
0066 process.g4SimHits.UseMagneticField        = False
0067 process.g4SimHits.Physics.DummyEMPhysics  = True
0068 process.g4SimHits.Physics.DefaultCutValue = 10. 
0069 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0070     Name           = cms.untracked.string('TIDF'),
0071     type           = cms.string('PrintMaterialBudgetInfo')
0072 ))