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.testGeom_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('SimG4CoreGeometry', 'CheckSecondary'),
0015     debugModules = cms.untracked.vstring('*'),
0016     cout = cms.untracked.PSet(
0017         threshold = cms.untracked.string('DEBUG'),
0018         default = cms.untracked.PSet(
0019             limit = cms.untracked.int32(0)
0020         ),
0021         CheckSecondary = cms.untracked.PSet(
0022             limit = cms.untracked.int32(-1)
0023         ),
0024         SimG4CoreGeometry = cms.untracked.PSet(
0025             limit = cms.untracked.int32(-1)
0026         )
0027     )
0028 )
0029 
0030 process.maxEvents = cms.untracked.PSet(
0031     input = cms.untracked.int32(1000)
0032 )
0033 
0034 process.source = cms.Source("EmptySource")
0035 
0036 process.generator = cms.EDProducer("FlatRandomEGunProducer",
0037     PGunParameters = cms.PSet(
0038         MinEta = cms.double(0.0),
0039         MaxEta = cms.double(0.0),
0040         MinPhi = cms.double(1.57079632679),
0041         MaxPhi = cms.double(1.57079632679),
0042         PartID = cms.vint32(-211),
0043         MinE   = cms.double(50.0),
0044         MaxE   = cms.double(50.0)
0045     ),
0046     Verbosity = cms.untracked.int32(0),
0047     AddAntiParticle = cms.bool(False),
0048     firstRun        = cms.untracked.uint32(1)
0049 )
0050 
0051 process.Timing = cms.Service("Timing")
0052 
0053 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0054     moduleSeeds = cms.PSet(
0055         generator = cms.untracked.uint32(456789),
0056         g4SimHits = cms.untracked.uint32(9876),
0057         VtxSmeared = cms.untracked.uint32(123456789)
0058     ),
0059     sourceSeed = cms.untracked.uint32(135799753)
0060 )
0061 
0062 process.p1 = cms.Path(process.generator*process.VtxSmeared*process.g4SimHits)
0063 process.VtxSmeared.SigmaX = 0.00001
0064 process.VtxSmeared.SigmaY = 0.00001
0065 process.VtxSmeared.SigmaZ = 0.00001
0066 process.g4SimHits.UseMagneticField     = False
0067 process.g4SimHits.Physics.type         = 'SimG4Core/Physics/QGSP'
0068 process.g4SimHits.Physics.Model        = 'LEP'
0069 process.g4SimHits.Physics.EMPhysics    = False
0070 process.g4SimHits.Watchers = cms.VPSet(cms.PSet(
0071     CheckSecondary = cms.PSet(
0072         SaveInFile = cms.untracked.string('PbWO4QGSP50.0GeV.root'),
0073         Verbosity = cms.untracked.int32(0),
0074         MinimumDeltaE = cms.untracked.double(0.0),
0075         KillAfter = cms.untracked.int32(1)
0076     ),
0077     type = cms.string('CheckSecondary')
0078 ), 
0079     cms.PSet(
0080         type = cms.string('KillSecondariesRunAction')
0081     ))
0082