CMS 3D CMS Logo

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     sourceSeed = cms.untracked.uint32(54321)
00010 )
00011 
00012 process.maxEvents = cms.untracked.PSet(
00013     input = cms.untracked.int32(2000)
00014 )
00015 process.source = cms.Source("FlatRandomEGunSource",
00016     PGunParameters = cms.untracked.PSet(
00017         # you can request more than 1 particle
00018         PartID = cms.untracked.vint32(211),
00019         MaxEta = cms.untracked.double(0.3045),
00020         MaxPhi = cms.untracked.double(0.3054),
00021         MinEta = cms.untracked.double(0.3045),
00022         MinE = cms.untracked.double(100.0),
00023         MinPhi = cms.untracked.double(0.3054), ## it must be in radians
00024 
00025         MaxE = cms.untracked.double(100.0)
00026     ),
00027     Verbosity = cms.untracked.int32(0), ## for printouts, set it to 1 (or greater)
00028 
00029     psethack = cms.string('single pion 100GeV on barrel'),
00030     firstRun = cms.untracked.uint32(1)
00031 )
00032 
00033 process.GEN = cms.OutputModule("PoolOutputModule",
00034     fileName = cms.untracked.string('mc_pi+100_etaphi44.root')
00035 )
00036 
00037 process.p = cms.EndPath(process.GEN)
00038 

Generated on Tue Jun 9 17:49:24 2009 for CMSSW by  doxygen 1.5.4