Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:07:27

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("PROD")
0004 
0005 process.load("Configuration.StandardSequences.SimulationRandomNumberGeneratorSeeds_cff")
0006 
0007 #process.source = cms.Source("EmptySource")
0008 process.source = cms.Source("LHESource",
0009     fileNames = cms.untracked.vstring('file:powheg-hvq.lhe')
0010 )
0011 #    fileNames = cms.untracked.vstring('file:powheg-Zee.lhe')
0012 
0013 process.generator = cms.EDFilter("Pythia8HadronizerFilter",
0014     maxEventsToPrint = cms.untracked.int32(1),
0015     pythiaPylistVerbosity = cms.untracked.int32(1),
0016     filterEfficiency = cms.untracked.double(1.0),
0017     pythiaHepMCVerbosity = cms.untracked.bool(False),
0018     comEnergy = cms.double(7000.),
0019 
0020    #Turning on pythia8 emission veto:
0021 #    PythiaParameters = cms.PSet(
0022 #        pythia8_example07 = cms.vstring('POWHEG:nFinal = 2',
0023 #                                        'POWHEG:veto = 1',
0024 #                                        'POWHEG:vetoCount = 10000',
0025 #                                        'POWHEG:pThard = 1',
0026 #                                        'POWHEG:pTemt = 0',
0027 #                                        'POWHEG:emitted = 0',
0028 #                                        'POWHEG:pTdef = 1',
0029 #                                        'POWHEG:MPIveto = 0',
0030 #                                        'SpaceShower:pTmaxMatch = 2',
0031 #                                        'TimeShower:pTmaxMatch  = 2'),
0032 #        parameterSets = cms.vstring('pythia8_example07')
0033 #    )
0034 
0035    #Turning on CMSSW Pythia8Interface emission veto:
0036     emissionVeto1 = cms.untracked.PSet(),
0037     EV1_nFinal = cms.int32(2),
0038     EV1_vetoOn = cms.bool(True),
0039     EV1_maxVetoCount = cms.int32(10000),
0040     EV1_pThardMode = cms.int32(1),
0041     EV1_pTempMode = cms.int32(0),
0042     EV1_emittedMode = cms.int32(0),
0043     EV1_pTdefMode = cms.int32(1),
0044     EV1_MPIvetoOn = cms.bool(False),
0045 
0046     PythiaParameters = cms.PSet(
0047         pythia8_example07 = cms.vstring('SpaceShower:pTmaxMatch = 2',
0048                                         'TimeShower:pTmaxMatch  = 2'),
0049         parameterSets = cms.vstring('pythia8_example07')
0050     )
0051 
0052 )
0053 
0054 #if emissionVeto is on && MPIveto > 0 add 'MultipartonInteractions:pTmaxMatch = 2'
0055 
0056 process.load("FWCore.MessageLogger.MessageLogger_cfi")
0057 process.MessageLogger = cms.Service("MessageLogger",
0058     cerr = cms.untracked.PSet(
0059         enable = cms.untracked.bool(False)
0060     ),
0061     cout = cms.untracked.PSet(
0062         default = cms.untracked.PSet(
0063             limit = cms.untracked.int32(2)
0064         ),
0065         enable = cms.untracked.bool(True)
0066     )
0067 )
0068 
0069 process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService",
0070     generator = cms.PSet(
0071         initialSeed = cms.untracked.uint32(123456789),
0072     )
0073 )
0074 
0075 process.maxEvents = cms.untracked.PSet(
0076     input = cms.untracked.int32(100)
0077 )
0078 
0079 process.GEN = cms.OutputModule("PoolOutputModule",
0080     fileName = cms.untracked.string('pythia8ex7.root')
0081 )
0082 
0083 process.p = cms.Path(process.generator)
0084 process.outpath = cms.EndPath(process.GEN)
0085 
0086 process.schedule = cms.Schedule(process.p, process.outpath)