File indexing completed on 2024-04-06 12:13:55
0001
0002
0003
0004
0005 import FWCore.ParameterSet.Config as cms
0006
0007 process = cms.Process("Gen")
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018 process.load("FWCore.MessageService.MessageLogger_cfi")
0019
0020 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0021
0022
0023 process.load("Configuration.EventContent.EventContent_cff")
0024
0025 process.maxEvents = cms.untracked.PSet(
0026 input = cms.untracked.int32(5)
0027 )
0028
0029 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0030 generator = cms.PSet(
0031 initialSeed = cms.untracked.uint32(123456789),
0032 engineName = cms.untracked.string('HepJamesRandom')
0033 )
0034 )
0035
0036
0037 process.source = cms.Source("EmptySource")
0038
0039 process.generator = cms.EDProducer("Pythia6PtGun",
0040 maxEventsToPrint = cms.untracked.int32(5),
0041 pythiaPylistVerbosity = cms.untracked.int32(1),
0042 pythiaHepMCVerbosity = cms.untracked.bool(True),
0043 PGunParameters = cms.PSet(
0044 ParticleID = cms.vint32(23),
0045 AddAntiParticle = cms.bool(False),
0046 MinPhi = cms.double(-3.14159265359),
0047 MaxPhi = cms.double(3.14159265359),
0048 MinPt = cms.double(50.0),
0049 MaxPt = cms.double(50.0001),
0050 MinEta = cms.double(-2.4),
0051 MaxEta = cms.double(2.4)
0052 ),
0053 PythiaParameters = cms.PSet(
0054 pythiaDefault = cms.vstring(
0055 'PMAS(5,1)=4.8 ! b quark mass',
0056 'PMAS(6,1)=172.3 ! t quark mass',
0057 'MSTP(61)=0 ! initial state radiation',
0058 'mstj(41)=1'
0059
0060 ),
0061 pythiaZtoMuons = cms.vstring(
0062 "MDME(174,1)=0",
0063 "MDME(175,1)=0",
0064 "MDME(176,1)=0",
0065 "MDME(177,1)=0",
0066 "MDME(178,1)=0",
0067 "MDME(179,1)=0",
0068 "MDME(182,1)=0",
0069 "MDME(183,1)=0",
0070 "MDME(184,1)=1",
0071 "MDME(185,1)=0",
0072 "MDME(186,1)=0",
0073 "MDME(187,1)=0"
0074 ),
0075 parameterSets = cms.vstring(
0076 'pythiaDefault',
0077 'pythiaZtoMuons'
0078 )
0079 )
0080 )
0081
0082 process.FEVT = cms.OutputModule("PoolOutputModule",
0083 process.FEVTSIMEventContent,
0084 fileName = cms.untracked.string('gen_singleTau.root')
0085 )
0086
0087 process.p = cms.Path(process.generator)
0088 process.outpath = cms.EndPath(process.FEVT)
0089 process.schedule = cms.Schedule(process.p,process.outpath)
0090
0091