Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 import FWCore.ParameterSet.Config as cms
0004 
0005 process = cms.Process("Gen")
0006 
0007 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0008 
0009 process.load("Configuration.EventContent.EventContent_cff")
0010 
0011 process.maxEvents = cms.untracked.PSet(
0012     input = cms.untracked.int32(1000)
0013 )
0014 
0015 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0016     generator = cms.PSet(
0017         initialSeed = cms.untracked.uint32(123456789),
0018         engineName = cms.untracked.string('HepJamesRandom')
0019     )
0020 )
0021 
0022 process.source = cms.Source("EmptySource")
0023 
0024 process.generator = cms.EDProducer("Pythia6JetGun",
0025     
0026     maxEventsToPrint = cms.untracked.int32(5),
0027     pythiaPylistVerbosity = cms.untracked.int32(1),
0028     pythiaHepMCVerbosity = cms.untracked.bool(True),    
0029        
0030     # Generate a number of particles with some fermi motion
0031     PGunParameters = cms.PSet(
0032         ParticleID = cms.vint32(211,-211,111,111,130),
0033         # this defines "absolute" energy spead of particles in the jet
0034     MinE   = cms.double(0.5),
0035     MaxE   = cms.double(2.0),
0036     # the following params define the boost
0037         MinP   = cms.double(20.0),
0038         MaxP   = cms.double(20.0),
0039         MinPhi = cms.double(-3.14159265359),
0040         MaxPhi = cms.double(3.14159265359),
0041     MinEta = cms.double(-2.4),
0042         MaxEta = cms.double(2.4)
0043     ),
0044     
0045     # no detailed pythia6 settings necessary    
0046     PythiaParameters = cms.PSet(
0047         parameterSets = cms.vstring()
0048     
0049     )
0050 
0051 )
0052 
0053 process.FEVT = cms.OutputModule("PoolOutputModule",
0054     process.FEVTSIMEventContent,
0055     fileName = cms.untracked.string('SimpleJet.root')
0056 )
0057 
0058 process.p = cms.Path(process.generator)
0059 process.outpath = cms.EndPath(process.FEVT)
0060 process.schedule = cms.Schedule(process.p,process.outpath)