import FWCore.ParameterSet.Config as cms #source = cms.Source("EmptySource") from Configuration.Generator.PythiaUEZ2starSettings_cfi import * generator = cms.EDFilter( "Pythia6GeneratorFilter", comEnergy = cms.double(8000.0), crossSection = cms.untracked.double(48440000000.), filterEfficiency = cms.untracked.double(3e-3), pythiaHepMCVerbosity = cms.untracked.bool(False), maxEventsToPrint = cms.untracked.int32(0), pythiaPylistVerbosity = cms.untracked.int32(0), ExternalDecays = cms.PSet( EvtGen = cms.untracked.PSet( operates_on_particles = cms.vint32( 0 ), # 0 (zero) means default list (hardcoded) # you can put here the list of particles (PDG IDs) # that you want decayed by EvtGen use_default_decay = cms.untracked.bool(False), decay_table = cms.FileInPath('GeneratorInterface/ExternalDecays/data/DECAY_NOLONGLIFE.DEC'), particle_property_file = cms.FileInPath('GeneratorInterface/ExternalDecays/data/evt.pdl'), user_decay_file = cms.FileInPath('GeneratorInterface/ExternalDecays/data/Bu_mumuK.dec'), list_forced_decays = cms.vstring('MyB+', 'MyB-'), ), parameterSets = cms.vstring('EvtGen') ), PythiaParameters = cms.PSet( pythiaUESettingsBlock, bbbarSettings = cms.vstring('MSEL = 1'), # This is a vector of ParameterSet names to be read, in this order parameterSets = cms.vstring( 'pythiaUESettings', 'bbbarSettings') ) ) bfilter = cms.EDFilter( "PythiaFilter", MaxEta = cms.untracked.double(9999.), MinEta = cms.untracked.double(-9999.), ParticleID = cms.untracked.int32(521) ) decayfilter = cms.EDFilter( "PythiaDauVFilter", verbose = cms.untracked.int32(0), NumberDaughters = cms.untracked.int32(3), ParticleID = cms.untracked.int32(521), DaughterIDs = cms.untracked.vint32(321, -13, 13), MinPt = cms.untracked.vdouble(-1., 3.5, 3.5), MinEta = cms.untracked.vdouble(-9999., -2.5, -2.5), MaxEta = cms.untracked.vdouble( 9999., 2.5, 2.5) ) configurationMetadata = cms.untracked.PSet( version = cms.untracked.string('$Revision: 1.1 $'), name = cms.untracked.string ('$Source: /local/reps/CMSSW/CMSSW/Configuration/GenProduction/python/EightTeV/PYTHIA6_Bu2MuMuK_TuneZ2star_8TeV_cff.py,v $'), annotation = cms.untracked.string('B+ -> mu+ mu- K+ at 8TeV') ) ProductionFilterSequence = cms.Sequence(generator*bfilter*decayfilter)