Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:32:26

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("PROD")
0004 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0005 
0006 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0007     moduleSeeds = cms.PSet(
0008         generator = cms.untracked.uint32(456789)
0009     ),
0010     sourceSeed = cms.untracked.uint32(98765)
0011 )
0012 
0013 process.maxEvents = cms.untracked.PSet(
0014         input = cms.untracked.int32(10000)
0015 )
0016 
0017 process.source = cms.Source("EmptySource")
0018 
0019 process.generator = cms.EDProducer("FlatRandomPtGunProducer",
0020     PGunParameters = cms.PSet(
0021         PartID = cms.vint32(211),
0022         MinEta = cms.double(-3.0),
0023         MaxEta = cms.double(3.0),
0024         MinPhi = cms.double(-3.14159265359),
0025         MaxPhi = cms.double(3.14159265359),
0026         MinPt  = cms.double(60.0),
0027         MaxPt  = cms.double(60.0)
0028     ),
0029     AddAntiParticle = cms.bool(False),
0030     Verbosity       = cms.untracked.int32(0), ## set to 1 (or greater)  for printouts
0031 
0032     psethack        = cms.string('scan with pion of pt=60GeV'),
0033     firstRun        = cms.untracked.uint32(1)
0034 )
0035 
0036 process.GEN = cms.OutputModule("PoolOutputModule",
0037     fileName = cms.untracked.string('Pion_Pt60GeV_all.root')
0038 )
0039 
0040 process.p1 = cms.Path(process.generator)
0041 process.p2 = cms.EndPath(process.GEN)
0042