Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:32:06

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(54321)
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("FlatRandomEGunProducer",
0020     PGunParameters = cms.PSet(
0021         PartID = cms.vint32(22),
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         MinE   = cms.double(400.0),
0027         MaxE   = cms.double(400.0)
0028     ),
0029     AddAntiParticle = cms.bool(False),
0030     Verbosity       = cms.untracked.int32(0), ## for printouts, set it to 1 (or greater)   
0031     psethack        = cms.string('scan with 400GeV photon'),
0032     firstRun        = cms.untracked.uint32(1)
0033 )
0034 
0035 process.GEN = cms.OutputModule("PoolOutputModule",
0036     fileName = cms.untracked.string('Photon_E400GeV_all.root')
0037 )
0038 
0039 process.p1 = cms.Path(process.generator)
0040 process.p2 = cms.EndPath(process.GEN)
0041