Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:07:27

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("Pythia8JetGun",
0011 
0012     maxEventsToPrint = cms.untracked.int32(1),
0013     pythiaPylistVerbosity = cms.untracked.int32(1),
0014     pythiaHepMCVerbosity = cms.untracked.bool(True),
0015 
0016     PGunParameters = cms.PSet(
0017        ParticleID = cms.vint32(211,-211,111,111,130),
0018         # this defines "absolute" energy spead of particles in the jet
0019     MinE   = cms.double(0.5),
0020     MaxE   = cms.double(2.0),
0021     # the following params define the boost
0022         MinP   = cms.double(20.0),
0023         MaxP   = cms.double(20.0),
0024         MinPhi = cms.double(-3.14159265359),
0025         MaxPhi = cms.double(3.14159265359),
0026     MinEta = cms.double(-2.4),
0027         MaxEta = cms.double(2.4)
0028     ),
0029 
0030     # no detailed pythia6 settings necessary            
0031     PythiaParameters = cms.PSet(
0032         parameterSets = cms.vstring() 
0033     )
0034 )
0035 
0036 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0037 process.MessageLogger = cms.Service("MessageLogger",
0038     cerr = cms.untracked.PSet(
0039         enable = cms.untracked.bool(False)
0040     ),
0041     cout = cms.untracked.PSet(
0042         default = cms.untracked.PSet(
0043             limit = cms.untracked.int32(2)
0044         ),
0045         enable = cms.untracked.bool(True)
0046     )
0047 )
0048 
0049 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0050     generator = cms.PSet(
0051         initialSeed = cms.untracked.uint32(123456789),
0052         engineName = cms.untracked.string('HepJamesRandom')
0053     )
0054 )
0055 
0056 process.maxEvents = cms.untracked.PSet(
0057     input = cms.untracked.int32(10)
0058 )
0059 
0060 process.GEN = cms.OutputModule("PoolOutputModule",
0061     fileName = cms.untracked.string('Py8JetGun.root')
0062 )
0063 
0064 
0065 process.p = cms.Path(process.generator)
0066 process.outpath = cms.EndPath(process.GEN)
0067 
0068 process.schedule = cms.Schedule(process.p, process.outpath)
0069