ATLAS Offline Software
Loading...
Searching...
No Matches
Herwig7ConfigBuiltinME.Hw7ConfigBuiltinME Class Reference

Configuration class for built-in / "old-style" matrix elements. More...

Inheritance diagram for Herwig7ConfigBuiltinME.Hw7ConfigBuiltinME:
Collaboration diagram for Herwig7ConfigBuiltinME.Hw7ConfigBuiltinME:

Public Member Functions

 __init__ (self, genSeq, runArgs, run_name="Herwig", beams="pp")
 local_pre_commands (self)
 local_post_commands (self)
 run (self, shower_var=True)
 High-level function for triggering the process setup and the event generation.
 powheg_commands ()

Public Attributes

 beams = beams
 provide variables initialized by the parent class
 run_name
 set_printout_commands
 set_physics_parameter_commands
 set_technical_parameter_commands

Detailed Description

Configuration class for built-in / "old-style" matrix elements.

Example JobOptions are available in examples/BuiltinME and tests/athenaBuiltinMEs/jobOptions.

Definition at line 16 of file Herwig7ConfigBuiltinME.py.

Constructor & Destructor Documentation

◆ __init__()

Herwig7ConfigBuiltinME.Hw7ConfigBuiltinME.__init__ ( self,
genSeq,
runArgs,
run_name = "Herwig",
beams = "pp" )

Definition at line 19 of file Herwig7ConfigBuiltinME.py.

19 def __init__(self, genSeq, runArgs, run_name="Herwig", beams="pp"):
20
21 beams = beams.upper()
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']"))
24
25
26 super(Hw7ConfigBuiltinME, self).__init__(genSeq, runArgs, run_name)
27
28 self.beams = beams
29
30

Member Function Documentation

◆ local_post_commands()

Herwig7ConfigBuiltinME.Hw7ConfigBuiltinME.local_post_commands ( self)

Definition at line 41 of file Herwig7ConfigBuiltinME.py.

41 def local_post_commands(self):
42
43 return """
44## ==================================================
45## Local Post-Commands from Herwig7ConfigBuiltinME.py
46## ==================================================
47
48saverun {} /Herwig/Generators/EventGenerator
49""".format(self.run_name)
50
51

◆ local_pre_commands()

Herwig7ConfigBuiltinME.Hw7ConfigBuiltinME.local_pre_commands ( self)

Definition at line 31 of file Herwig7ConfigBuiltinME.py.

31 def local_pre_commands(self):
32
33 return """
34## =================================================
35## Local Pre-Commands from Herwig7ConfigBuiltinME.py
36## =================================================
37
38# > no local pre-commands at the moment
39"""
40

◆ powheg_commands()

Herwig7ConfigBuiltinME.Hw7ConfigBuiltinME.powheg_commands ( )

Definition at line 80 of file Herwig7ConfigBuiltinME.py.

80 def powheg_commands():
81 return """
82## Set up Powheg truncated shower
83set /Herwig/Shower/ShowerHandler:HardEmission POWHEG
84"""

◆ run()

Herwig7ConfigBuiltinME.Hw7ConfigBuiltinME.run ( self,
shower_var = True )

High-level function for triggering the process setup and the event generation.

Warning
Please do not modify the generator configuration in the job options after calling the run() function as the modified settings would not be applied in the event generation

Definition at line 57 of file Herwig7ConfigBuiltinME.py.

57 def run(self, shower_var=True):
58
59
60
61 self.default_commands += self.beam_commands()
62 self.default_commands += self.energy_commands()
63 self.default_commands += self.random_seed_commands()
64
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()
71
72 # add the shower scale-variations for the ME calculation
73 self.enable_angularShowerScaleVariations(shower_var)
74
75
76
77 hw7Control.run(self)
78
79
Definition run.py:1

Member Data Documentation

◆ beams

Herwig7ConfigBuiltinME.Hw7ConfigBuiltinME.beams = beams

provide variables initialized by the parent class

Definition at line 28 of file Herwig7ConfigBuiltinME.py.

◆ run_name

Herwig7ConfigBuiltinME.Hw7ConfigBuiltinME.run_name

Definition at line 49 of file Herwig7ConfigBuiltinME.py.

◆ set_physics_parameter_commands

Herwig7ConfigBuiltinME.Hw7ConfigBuiltinME.set_physics_parameter_commands

Definition at line 67 of file Herwig7ConfigBuiltinME.py.

◆ set_printout_commands

Herwig7ConfigBuiltinME.Hw7ConfigBuiltinME.set_printout_commands

Definition at line 65 of file Herwig7ConfigBuiltinME.py.

◆ set_technical_parameter_commands

Herwig7ConfigBuiltinME.Hw7ConfigBuiltinME.set_technical_parameter_commands

Definition at line 69 of file Herwig7ConfigBuiltinME.py.


The documentation for this class was generated from the following file: