CMS 3D CMS Logo

Photon_E30GeV_all_cfg.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
3 process = cms.Process("PROD")
4 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
5 
6 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
7  moduleSeeds = cms.PSet(
8  generator = cms.untracked.uint32(456789)
9  ),
10  sourceSeed = cms.untracked.uint32(54321)
11 )
12 
13 process.maxEvents = cms.untracked.PSet(
14  input = cms.untracked.int32(10000)
15 )
16 
17 process.source = cms.Source("EmptySource")
18 
19 process.generator = cms.EDProducer("FlatRandomEGunProducer",
20  PGunParameters = cms.PSet(
21  PartID = cms.vint32(22),
22  MinEta = cms.double(-3.0),
23  MaxEta = cms.double(3.0),
24  MinPhi = cms.double(-3.14159265359),
25  MaxPhi = cms.double(3.14159265359),
26  MinE = cms.double(30.0),
27  MaxE = cms.double(30.0)
28  ),
29  AddAntiParticle = cms.bool(False),
30  Verbosity = cms.untracked.int32(0), ## for printouts, set it to 1 (or greater)
31 
32  psethack = cms.string('scan with 30GeV photon'),
33  firstRun = cms.untracked.uint32(1)
34 )
35 
36 process.GEN = cms.OutputModule("PoolOutputModule",
37  fileName = cms.untracked.string('Photon_E30GeV_all.root')
38 )
39 
40 process.p1 = cms.Path(process.generator)
41 process.p2 = cms.EndPath(process.GEN)
42