CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/Validation/Geometry/python/single_neutrino_cfg.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 process = cms.Process("TestProcess")
00004 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
00005 
00006 process.load("Configuration.EventContent.EventContent_cff")
00007 
00008 process.maxEvents = cms.untracked.PSet(
00009     input = cms.untracked.int32(10000)
00010 )
00011 
00012 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
00013     moduleSeeds = cms.PSet(
00014         generator = cms.untracked.uint32(456789)
00015     )
00016 )
00017 
00018 process.source = cms.Source("EmptySource",
00019     firstRun        = cms.untracked.uint32(1),
00020     firstEvent      = cms.untracked.uint32(1)
00021 )
00022 
00023 process.generator = cms.EDProducer("FlatRandomEGunProducer",
00024     PGunParameters = cms.PSet(
00025         PartID = cms.vint32(14),
00026         MinEta = cms.double(-5.5),
00027         MaxEta = cms.double(5.5),
00028         MinPhi = cms.double(-3.14159265359),
00029         MaxPhi = cms.double(3.14159265359),
00030         MinE   = cms.double(10.0),
00031         MaxE   = cms.double(10.0)
00032     ),
00033     AddAntiParticle = cms.bool(False),
00034     Verbosity       = cms.untracked.int32(0)
00035 )
00036 
00037 process.o1 = cms.OutputModule("PoolOutputModule",
00038     process.FEVTSIMEventContent,
00039     fileName = cms.untracked.string('single_neutrino_random.root')
00040 )
00041 
00042 process.p1 = cms.Path(process.generator)
00043 process.outpath = cms.EndPath(process.o1)
00044