Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:29:36

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("CaloTest")
0004 process.load("SimGeneral.HepPDTESSource.pdt_cfi")
0005 
0006 process.load("IOMC.EventVertexGenerators.VtxSmearedGauss_cfi")
0007 
0008 process.load("SimG4Core.CheckSecondary.PbTarget_cfi")
0009 
0010 process.load("SimG4Core.Application.g4SimHits_cfi")
0011 
0012 process.MessageLogger = cms.Service("MessageLogger",
0013     destinations = cms.untracked.vstring('cout'),
0014     categories = cms.untracked.vstring('SimG4CoreApplication', 'CheckSecondary'),
0015     cout = cms.untracked.PSet(
0016         threshold = cms.untracked.string('INFO'),
0017         default = cms.untracked.PSet(
0018             limit = cms.untracked.int32(-1)
0019         ),
0020         CheckSecondary = cms.untracked.PSet(
0021             limit = cms.untracked.int32(0)
0022         ),
0023         SimG4CoreApplication = cms.untracked.PSet(
0024             limit = cms.untracked.int32(0)
0025         )
0026     )
0027 )
0028 
0029 process.maxEvents = cms.untracked.PSet(
0030     input = cms.untracked.int32(1000)
0031 )
0032 process.source = cms.Source("EmptySource")
0033 
0034 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0035     PGunParameters = cms.PSet(
0036         MinEta = cms.double(0.0),
0037         MaxEta = cms.double(0.0),
0038         MinPhi = cms.double(1.57079632679),
0039         MaxPhi = cms.double(1.57079632679),
0040         PartID = cms.vint32(2212),
0041         MinE   = cms.double(2.209),
0042         MaxE   = cms.double(2.209)
0043     ),
0044     Verbosity = cms.untracked.int32(0),
0045     AddAntiParticle = cms.bool(False),
0046     firstRun        = cms.untracked.uint32(1)
0047 )
0048 
0049 process.Timing = cms.Service("Timing")
0050 
0051 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0052     moduleSeeds = cms.PSet(
0053         generator = cms.untracked.uint32(456789),
0054         g4SimHits = cms.untracked.uint32(9876),
0055         VtxSmeared = cms.untracked.uint32(123456789)
0056     ),
0057     sourceSeed = cms.untracked.uint32(135799753)
0058 )
0059 
0060 process.p1 = cms.Path(process.generator*process.VtxSmeared*process.g4SimHits)
0061 process.VtxSmeared.SigmaX = 0.00001
0062 process.VtxSmeared.SigmaY = 0.00001
0063 process.VtxSmeared.SigmaZ = 0.00001
0064 process.g4SimHits.UseMagneticField     = False
0065 process.g4SimHits.Physics.type         = 'SimG4Core/Physics/QGSP'
0066 process.g4SimHits.Physics.Model        = 'Bertini'
0067 process.g4SimHits.Physics.EMPhysics    = False
0068 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0069     CheckSecondary = cms.PSet(
0070         SaveInFile = cms.untracked.string('PbQGSP2.0GeV.root'),
0071         Verbosity = cms.untracked.int32(0),
0072         MinimumDeltaE = cms.untracked.double(0.0),
0073         KillAfter = cms.untracked.int32(1)
0074     ),
0075     type = cms.string('CheckSecondary')
0076 ), 
0077     cms.PSet(
0078         type = cms.string('KillSecondariesRunAction')
0079     ))
0080