Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:30:00

0001 # -*- coding: utf-8 -*-
0002 import FWCore.ParameterSet.Config as cms
0003 
0004 #from Configuration.Generator.PythiaUEZ2starSettings_cfi import *
0005 #from Configuration.GenProduction.PythiaUESettings_cfi import *
0006 
0007 process = cms.Process("TEST")
0008 process.load("FWCore.Framework.test.cmsExceptionsFatal_cff")
0009 
0010 process.load("Configuration.StandardSequences.Services_cff")
0011 
0012 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService", 
0013     generator = cms.PSet(initialSeed = cms.untracked.uint32(123456789), 
0014     engineName = cms.untracked.string('HepJamesRandom') ))
0015 
0016 # The following three lines reduce the clutter of repeated printouts
0017 # of the same exception message.
0018 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0019 ##
0020 ##process.MessageLogger.cerr.enableStatistics = False
0021 ##
0022 ##process.MessageLogger.cerr.threshold = "Warning"
0023 
0024 
0025 process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32(10))
0026 
0027 process.source = cms.Source("LHESource",
0028         fileNames = cms.untracked.vstring('file:')#file name 
0029 )
0030 
0031 import FWCore.ParameterSet.Config as cms
0032 
0033 process.generator = cms.EDFilter("Pythia8HadronizerFilter",
0034     maxEventsToPrint = cms.untracked.int32(0),
0035     pythiaPylistVerbosity = cms.untracked.int32(2),
0036     filterEfficiency = cms.untracked.double(1.0),
0037     pythiaHepMCVerbosity = cms.untracked.bool(True),
0038     comEnergy = cms.double(13000.),
0039     PythiaParameters = cms.PSet(
0040         processParameters = cms.vstring(
0041         'Main:timesAllowErrors    = 10000', 
0042         'ParticleDecays:limitTau0 = on',
0043         'ParticleDecays:tauMax = 10',
0044         'Tune:ee 3',
0045         'Tune:pp 5'
0046         ),
0047         parameterSets = cms.vstring('processParameters')
0048     )
0049 )
0050 
0051 process.selection = cms.EDFilter("ComphepSingletopFilterPy8",
0052     pTSep = cms.double(99999999), # 99999999 - tq, 0 -tqb
0053 )
0054 
0055 
0056 process.GEN = cms.OutputModule("PoolOutputModule",
0057     fileName = cms.untracked.string('matching_comphep_singletop.root'), 
0058     SelectEvents = cms.untracked.PSet(SelectEvents = cms.vstring('p')),
0059    # outputCommands = cms.untracked.vstring('drop *') # !!! Drop all events, if you do not need matching_comphep_singletop.root file
0060 )
0061 
0062 process.p = cms.Path(process.generator * process.selection)
0063 process.outpath = cms.EndPath(process.GEN)
0064 
0065 process.schedule = cms.Schedule(process.p, process.outpath)