Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:13:59

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 
0005 process.load("FWCore.Framework.test.cmsExceptionsFatal_cff")
0006 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0007 
0008 process.source = cms.Source("EmptySource")
0009 
0010 process.generator = cms.EDFilter("Pythia8EGun",
0011 
0012     maxEventsToPrint = cms.untracked.int32(1),
0013     pythiaPylistVerbosity = cms.untracked.int32(1),
0014     pythiaHepMCVerbosity = cms.untracked.bool(True),
0015     useEvtGenPlugin = cms.PSet(),
0016     #evtgenDecFile = cms.string("mydecfile"),
0017     #evtgenPdlFile = cms.string("mypdlfile"),
0018     evtgenUserFile = cms.vstring('GeneratorInterface/Pythia8Interface/test/evtgen_userfile.dec'),
0019     PGunParameters = cms.PSet(
0020        ParticleID = cms.vint32(521),
0021        AddAntiParticle = cms.bool(False),
0022        MinPhi = cms.double(-3.14159265359),
0023        MaxPhi = cms.double(3.14159265359),
0024        MinE = cms.double(100.0),
0025        MaxE = cms.double(200.0),
0026        MinEta = cms.double(0.0),
0027        MaxEta = cms.double(2.4)
0028     ),
0029 
0030     PythiaParameters = cms.PSet(
0031         py8Settings = cms.vstring(''),
0032         parameterSets = cms.vstring('py8Settings')
0033     )
0034         
0035 )
0036 
0037 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0038 process.MessageLogger = cms.Service("MessageLogger",
0039     cerr = cms.untracked.PSet(
0040         enable = cms.untracked.bool(False)
0041     ),
0042     cout = cms.untracked.PSet(
0043         default = cms.untracked.PSet(
0044             limit = cms.untracked.int32(2)
0045         ),
0046         enable = cms.untracked.bool(True)
0047     )
0048 )
0049 
0050 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0051     generator = cms.PSet(
0052         initialSeed = cms.untracked.uint32(123456789),
0053         engineName = cms.untracked.string('HepJamesRandom')
0054     )
0055 )
0056 
0057 process.maxEvents = cms.untracked.PSet(
0058     input = cms.untracked.int32(10)
0059 )
0060 
0061 process.GEN = cms.OutputModule("PoolOutputModule",
0062     fileName = cms.untracked.string('Py8EGun_EvtGen.root')
0063 )
0064 
0065 
0066 process.p = cms.Path(process.generator)
0067 process.outpath = cms.EndPath(process.GEN)
0068 
0069 process.schedule = cms.Schedule(process.p, process.outpath)
0070