7 from .
import Herwig7Config
as hw7Config
8 from .
import Herwig7Control
as hw7Control
9 from .
import Herwig7Utils
as hw7Utils
19 def __init__(self, genSeq, runArgs, run_name="Herwig", beams="pp"):
22 if beams
not in [
"EE",
"EP" ,
"PP"]:
23 raise RuntimeError(hw7Utils.ansi_format_error(
"Parameter 'beams' must be one of the following: ['EE', 'EP' , 'PP']"))
26 super(Hw7ConfigBuiltinME, self).
__init__(genSeq, runArgs, run_name)
34 ## =================================================
35 ## Local Pre-Commands from Herwig7ConfigBuiltinME.py
36 ## =================================================
38 # > no local pre-commands at the moment
44 ## ==================================================
45 ## Local Post-Commands from Herwig7ConfigBuiltinME.py
46 ## ==================================================
48 saverun {} /Herwig/Generators/EventGenerator
57 def run(self, shower_var=True):
61 self.default_commands += self.beam_commands()
62 self.default_commands += self.energy_commands()
63 self.default_commands += self.random_seed_commands()
65 if not self.set_printout_commands:
66 self.default_commands += self.printout_commands()
67 if not self.set_physics_parameter_commands:
68 self.default_commands += self.physics_parameter_commands()
69 if not self.set_technical_parameter_commands:
70 self.default_commands += self.technical_parameter_commands()
73 self.enable_angularShowerScaleVariations(shower_var)
82 ## Set up Powheg truncated shower
83 set /Herwig/Shower/ShowerHandler:HardEmission POWHEG