Skip to content

Commit

Permalink
1st example reading external decay file for Py6, via pyupda
Browse files Browse the repository at this point in the history
  • Loading branch information
Julia Yarba committed Nov 12, 2009
1 parent 9de397a commit b69f371
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions Configuration/Generator/python/Pythia_H0_pyupda_cfi.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
import FWCore.ParameterSet.Config as cms

from Configuration.Generator.PythiaUESettings_cfi import *

generator = cms.EDFilter("Pythia6GeneratorFilter",
pythiaHepMCVerbosity = cms.untracked.bool(True),
maxEventsToPrint = cms.untracked.int32(10),
# Print event
pythiaPylistVerbosity = cms.untracked.int32(3),
# Print decay tables
# pythiaPylistVerbosity = cms.untracked.int32(12),
filterEfficiency = cms.untracked.double(1.0),
comEnergy = cms.double(10000.0),
# crossSection = cms.untracked.double(55000000000.),
UseExternalGenerators = cms.untracked.bool(False),
#
PythiaParameters = cms.PSet(
pythiaUESettingsBlock,
pythiaMyParameters = cms.vstring(
# This is needed if you are introducing long-lived exotic particles.
'MSTJ(22)=1 ! Decay ALL unstable particles',

'MSEL=0',
# Request gg -> H0 production
'MSUB(152)=1',
'MWID(35)=2 ! Let me set H0 properties'
),
#
PYUPDAParameters = cms.vstring(
# Read my parameters
"PYUPDAFILE = 'Configuration/Generator/data/Pythia_H0_pyupda.in'"
# Optionally call PYUPDA after PYINIT. This doesn't seem to be necessary.
# "PYUPDApostPYINIT"
# Write current parameters
# "PYUPDAFILE = \'pyupda.out\'"
# "PYUPDAWRITE"
),
#
# This is a vector of ParameterSet names to be read, in this order
parameterSets = cms.vstring('pythiaUESettings',
'pythiaMyParameters',
'PYUPDAParameters')
)
)

# this needs to get in somehow...
#
# genParticles.abortOnUnknownPDGCode = cms.untracked.bool(False)


0 comments on commit b69f371

Please sign in to comment.