Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-11-17 01:41:04

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("TEST")
0004 
0005 process.load("FWCore.Framework.test.cmsExceptionsFatal_cff")
0006 process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi")
0007 
0008 process.source = cms.Source("EmptySource")
0009 
0010 process.generator = cms.EDFilter("Pythia8EGun",
0011 
0012     maxEventsToPrint = cms.untracked.int32(1),
0013     pythiaPylistVerbosity = cms.untracked.int32(1),
0014     pythiaHepMCVerbosity = cms.untracked.bool(True),
0015     pythiaHepMCVerbosityParticles = cms.untracked.bool(True),
0016 
0017     PGunParameters = cms.PSet(
0018        ParticleID = cms.vint32(23),
0019        AddAntiParticle = cms.bool(True),
0020        MinPhi = cms.double(-3.14159265359),
0021        MaxPhi = cms.double(3.14159265359),
0022        MinE = cms.double(100.0),
0023        MaxE = cms.double(200.0),
0024        MinEta = cms.double(0.0),
0025        MaxEta = cms.double(2.4)
0026     ),
0027         
0028     ExternalDecays = cms.PSet(
0029         Tauola = cms.untracked.PSet(
0030          UseTauolaPolarization = cms.bool(True),
0031          InputCards = cms.PSet
0032          ( 
0033             pjak1 = cms.int32(0), # 1 = electron mode
0034         pjak2 = cms.int32(0), # 2 = muon mode
0035         mdtau = cms.int32(240)  # (any) tau -> nu pi+- 
0036          )
0037     ),
0038         parameterSets = cms.vstring('Tauola')
0039     ),
0040 
0041     PythiaParameters = cms.PSet(
0042     py8ZDecaySettings = cms.vstring(  '23:onMode = off', # turn OFF all Z decays
0043                       '23:onIfAny = 15'  # turn ON Z->tautau
0044     ),
0045         parameterSets = cms.vstring(  
0046                                   'py8ZDecaySettings' 
0047                    )
0048     )
0049 )
0050 
0051 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0052 process.MessageLogger = cms.Service("MessageLogger",
0053     cerr = cms.untracked.PSet(
0054         enable = cms.untracked.bool(False)
0055     ),
0056     cout = cms.untracked.PSet(
0057         default = cms.untracked.PSet(
0058             limit = cms.untracked.int32(2)
0059         ),
0060         enable = cms.untracked.bool(True)
0061     )
0062 )
0063 
0064 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0065     generator = cms.PSet(
0066         initialSeed = cms.untracked.uint32(123456789),
0067         engineName = cms.untracked.string('HepJamesRandom')
0068     )
0069 )
0070 
0071 process.maxEvents = cms.untracked.PSet(
0072     input = cms.untracked.int32(10)
0073 )
0074 
0075 process.GEN = cms.OutputModule("PoolOutputModule",
0076     fileName = cms.untracked.string('Py8EGun_Z2tautau.root')
0077 )
0078 
0079 
0080 process.p = cms.Path(process.generator)
0081 process.outpath = cms.EndPath(process.GEN)
0082 
0083 process.schedule = cms.Schedule(process.p, process.outpath)
0084