CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/Validation/HcalHits/python/pion100GeV_HB_cfg.py

Go to the documentation of this file.
00001 import FWCore.ParameterSet.Config as cms
00002 
00003 process = cms.Process("GEN")
00004 # this will run plig-in energy-flat random particle gun
00005 # and puts particles (HepMCPRoduct) into edm::Event
00006 process.load("SimGeneral.HepPDTESSource.pdt_cfi")
00007 
00008 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
00009     moduleSeeds = cms.PSet(
00010         generator = cms.untracked.uint32(456789)
00011     ),
00012     sourceSeed = cms.untracked.uint32(54321)
00013 )
00014 
00015 process.maxEvents = cms.untracked.PSet(
00016     input = cms.untracked.int32(2000)
00017 )
00018 
00019 process.source = cms.Source("EmptySource")
00020 
00021 process.generator = cms.EDProducer("FlatRandomEGunProducer",
00022     PGunParameters = cms.PSet(
00023         PartID = cms.vint32(211),
00024         MinEta = cms.double(0.3045),
00025         MaxEta = cms.double(0.3045),
00026         MinPhi = cms.double(0.3054),
00027         MaxPhi = cms.double(0.3054),
00028         MinE   = cms.double(100.0),
00029         MaxE   = cms.double(100.0)
00030     ),
00031     AddAntiParticle = cms.bool(False),
00032     psethack        = cms.string('single pion 100GeV on barrel'),
00033     Verbosity       = cms.untracked.int32(0),
00034     firstRun        = cms.untracked.uint32(1)
00035 )
00036 
00037 process.GEN = cms.OutputModule("PoolOutputModule",
00038     fileName = cms.untracked.string('mc_pi+100_etaphi44.root')
00039 )
00040 
00041 process.p1 = cms.Path(process.generator)
00042 process.p2 = cms.EndPath(process.GEN)
00043