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)=0",
0071 "MDME(185,1)=0",
0072 "MDME(186,1)=1",
0073 "MDME(187,1)=0"
0074 ),
0075 pythiaTauL = cms.vstring(
0076 "mdme(89,1)=1",
0077 "mdme(90,1)=1",
0078
0079 "mdme(91,1)=0",
0080 "mdme(92,1)=0",
0081 "mdme(93,1)=0",
0082 "mdme(94,1)=0",
0083 "mdme(95,1)=0",
0084 "mdme(96,1)=0",
0085 "mdme(97,1)=0",
0086 "mdme(98,1)=0",
0087 "mdme(99,1)=0",
0088 "mdme(100,1)=0",
0089 "mdme(101,1)=0",
0090 "mdme(102,1)=0",
0091 "mdme(103,1)=0",
0092 "mdme(104,1)=0",
0093 "mdme(105,1)=0",
0094 "mdme(106,1)=0",
0095 "mdme(107,1)=0",
0096 "mdme(108,1)=0",
0097 "mdme(109,1)=0",
0098 "mdme(110,1)=0",
0099 "mdme(111,1)=0",
0100 "mdme(112,1)=0",
0101 "mdme(113,1)=0",
0102 "mdme(114,1)=0",
0103 "mdme(115,1)=0",
0104 "mdme(116,1)=0",
0105 "mdme(117,1)=0",
0106 "mdme(118,1)=0",
0107 "mdme(119,1)=0",
0108 "mdme(120,1)=0",
0109 "mdme(121,1)=0",
0110 "mdme(122,1)=0",
0111 "mdme(123,1)=0",
0112 "mdme(124,1)=0",
0113 "mdme(125,1)=0",
0114 "mdme(126,1)=0",
0115 "mdme(127,1)=0",
0116 "mdme(128,1)=0",
0117 "mdme(129,1)=0",
0118 "mdme(130,1)=0",
0119 "mdme(131,1)=0",
0120 "mdme(132,1)=0",
0121 "mdme(133,1)=0",
0122 "mdme(134,1)=0",
0123 "mdme(135,1)=0",
0124 "mdme(136,1)=0",
0125 "mdme(137,1)=0",
0126 "mdme(138,1)=0",
0127 "mdme(139,1)=0",
0128 "mdme(140,1)=0",
0129 "mdme(141,1)=0",
0130 "mdme(142,1)=0"
0131 ),
0132 parameterSets = cms.vstring(
0133 'pythiaDefault',
0134 'pythiaZtoMuons', 'pythiaTauL'
0135 )
0136 )
0137 )
0138
0139 process.FEVT = cms.OutputModule("PoolOutputModule",
0140 process.FEVTSIMEventContent,
0141 fileName = cms.untracked.string('gen_singleTau.root')
0142 )
0143
0144 process.p = cms.Path(process.generator)
0145 process.outpath = cms.EndPath(process.FEVT)
0146 process.schedule = cms.Schedule(process.p,process.outpath)
0147
0148