import FWCore.ParameterSet.Config as cms from Configuration.Generator.Pythia8CommonSettings_cfi import * from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import * generator = cms.EDFilter("Pythia8PtGun", maxEventsToPrint = cms.untracked.int32(5), pythiaPylistVerbosity = cms.untracked.int32(1), pythiaHepMCVerbosity = cms.untracked.bool(True), PGunParameters = cms.PSet( MaxPt = cms.double(100.), MinPt = cms.double(20.), ParticleID = cms.vint32(443), AddAntiParticle = cms.bool(False), MaxEta = cms.double(2.4), MaxPhi = cms.double(3.14159265359), MinEta = cms.double(-2.4), MinPhi = cms.double(-3.14159265359) ## in radians ), PythiaParameters = cms.PSet( pythiaJpsiDecays = cms.vstring( '443:onMode = off ! J/psi -> random turned OFF', '443:onIfAny = 13 -13 ! J/psi -> mumu turned ON'), # This is a vector of ParameterSet names to be read, in this order parameterSets = cms.vstring('pythiaJpsiDecays') ), parameterSets = cms.vstring('pythia8CommonSettings', 'pythia8CUEP8M1Settings', 'processParameters', ) ) ProductionFilterSequence = cms.Sequence(generator)