#Usage instructions: (see e.g. https://svnweb.cern.ch/trac/atlasoff/browser/Generators/MC15JobOptions/trunk/common/MadGraph/MadGraphControl_HAHM.py for an example usage)
#specify the following with this fragment:
#proc_name : the name of the process - will match the name of the process directory ... if not specified, we will take it from the 'output' line of the proc_card string
#proc_card : the proc_card string (with or without including the output line)
#param_card : the LOCATION of the param card to use (can be retrieved with get_files)
#param_card_extras : dictionary of dictionaries
#run_card : the LOCATION of the param card to use (can be retrieved with get_files)
#run_card_extras: dictionary ... should not specify pdlabel and lhaid, as those are provided in this fragment
#save_proc_dir: bool ... if true, then wont delete the process directory (given by the proc_name)
#you can also specify a post_lhe_hook method to call code after the lhe making
#to specifically support long-lived particles, this joboption provides a method to lifetimes to particles
#e.g. you can do
#def post_lhe_hook():
# add_lifetimes(pdgId=32,avgtau=2000)
proc_card="""
import model ./Type-II_seesaw_mix_UFO
define p = g u c d s u~ c~ d~ s~
define j = g u c d s u~ c~ d~ s~
define fermions = u c d s u~ c~ d~ s~ e+ e- mu+ mu- ta+ ta- ve vm vt
define vl~ = ve vm vt
define EXCL = H h ha
generate p p > H++ H-- / EXCL """
param_card_extras={
'mass':{
'mh__2':'700',
'mha':'700',
'mhp':'700',
'mHpp':'350'}}
#Fetch default LO run_card.dat and set parameters
run_card_extras={'lhe_version':'3.0',
'cut_decays':'F',
'use_syst':"False"
}
beamEnergy=-999
ifhasattr(runArgs,'ecmEnergy'):
beamEnergy=runArgs.ecmEnergy/2.
else:
raiseRuntimeError("No center of mass energy found.")
evgenConfig.description='MadGraph and madspin HppHmm4W production with 2LSS filter'