# link to fragment:
# https://github.com/cms-sw/genproductions/blob/master/python/ThirteenTeV/Higgs/Hadronizer_TuneCUETP8M1_13TeV_aMCatNLO_VBFHToGG_M-125_LHE_pythia8_cff.py

import FWCore.ParameterSet.Config as cms
	
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import *
from Configuration.Generator.Pythia8aMCatNLOSettings_cfi import *

generator = cms.EDFilter("Pythia8HadronizerFilter",
	                     maxEventsToPrint = cms.untracked.int32(1),
                         pythiaPylistVerbosity = cms.untracked.int32(1),
                         filterEfficiency = cms.untracked.double(1.0),
                         pythiaHepMCVerbosity = cms.untracked.bool(False),
                         comEnergy = cms.double(13000.),
                         PythiaParameters = cms.PSet(
     pythia8CommonSettingsBlock,
     pythia8CUEP8M1SettingsBlock,
     pythia8aMCatNLOSettingsBlock,
     processParameters = cms.vstring(
         'TimeShower:nPartonsInBorn = 2', #number of coloured particles (before resonance decays) in born matrix element
         'SLHA:useDecayTable = off',
         '25:m0 = 123.0',
         '25:onMode = off',
         '25:onIfMatch = 22 22',
         ),
     parameterSets = cms.vstring('pythia8CommonSettings',
                                 'pythia8CUEP8M1Settings',
                                 'pythia8aMCatNLOSettings',
                                 'processParameters',
                                 )
     )
                      )