Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1573 from mkirsano/pythia8int_fix1
Pythia8int fix1
- Loading branch information
Showing
4 changed files
with
92 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
81 changes: 81 additions & 0 deletions
81
GeneratorInterface/Pythia8Interface/test/Py8_Z2tautau_tauola_cfg.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
process = cms.Process("TEST") | ||
|
||
process.load("FWCore.Framework.test.cmsExceptionsFatal_cff") | ||
process.load("SimGeneral.HepPDTESSource.pythiapdt_cfi") | ||
process.load("PhysicsTools.HepMCCandAlgos.genParticles_cfi") | ||
|
||
process.source = cms.Source("EmptySource", | ||
firstLuminosityBlock = cms.untracked.uint32(1), | ||
# numberEventsInLuminosityBlock = cms.untracked.uint32(200), | ||
firstEvent = cms.untracked.uint32(1), | ||
firstRun = cms.untracked.uint32(1), | ||
numberEventsInRun = cms.untracked.uint32(100) | ||
|
||
) | ||
|
||
from GeneratorInterface.ExternalDecays.TauolaSettings_cff import * | ||
|
||
process.generator = cms.EDFilter("Pythia8GeneratorFilter", | ||
maxEventsToPrint = cms.untracked.int32(1), | ||
pythiaPylistVerbosity = cms.untracked.int32(1), | ||
filterEfficiency = cms.untracked.double(1.0), | ||
pythiaHepMCVerbosity = cms.untracked.bool(False), | ||
comEnergy = cms.double(8000.), | ||
ExternalDecays = cms.PSet( | ||
Tauola = cms.untracked.PSet( | ||
TauolaPolar, | ||
TauolaDefaultInputCards | ||
), | ||
parameterSets = cms.vstring('Tauola') | ||
), | ||
|
||
PythiaParameters = cms.PSet( | ||
py8ProcessSettings = cms.vstring( 'StringZ:usePetersonB = on', # these 2 together == | ||
'StringZ:usePetersonC = on', # mstj(11)=3 | ||
'WeakSingleBoson:ffbar2gmZ = on' # msel=11 | ||
# what about choice of structure function ??? (mstp(51)=7) | ||
), | ||
py8ZDecaySettings = cms.vstring( '23:onMode = off', # turn OFF all Z decays | ||
'23:onIfAny = 15' # turn ON Z->tautau | ||
), | ||
py8TauDecaySettings = cms.vstring('15:onMode = off', # turn OFF all tau decays | ||
), | ||
parameterSets = cms.vstring( | ||
'py8ProcessSettings', | ||
'py8ZDecaySettings') | ||
) | ||
) | ||
|
||
# The following three lines reduce the clutter of repeated printouts | ||
# of the same exception message. | ||
process.load("FWCore.MessageLogger.MessageLogger_cfi") | ||
process.MessageLogger.destinations = ['cerr'] | ||
process.MessageLogger.statistics = [] | ||
process.MessageLogger.fwkJobReports = [] | ||
|
||
process.RandomNumberGeneratorService = cms.Service("RandomNumberGeneratorService", | ||
generator = cms.PSet( | ||
initialSeed = cms.untracked.uint32(123456789), | ||
engineName = cms.untracked.string('HepJamesRandom') | ||
) | ||
) | ||
|
||
process.maxEvents = cms.untracked.PSet( | ||
input = cms.untracked.int32(100) | ||
) | ||
|
||
process.GEN = cms.OutputModule("PoolOutputModule", | ||
fileName = cms.untracked.string('Py8_Z2tautau_tauola.root') | ||
) | ||
|
||
process.printGenParticles = cms.EDAnalyzer("ParticleListDrawer", | ||
src = cms.InputTag("genParticles"), | ||
maxEventsToPrint = cms.untracked.int32(3) ) | ||
|
||
process.p = cms.Path(process.generator*process.genParticles*process.printGenParticles) | ||
process.outpath = cms.EndPath(process.GEN) | ||
|
||
process.schedule = cms.Schedule(process.p, process.outpath) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters