ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
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

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

Public Attributes

 beams
 provide variables initialized by the parent class More...
 

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__()

def 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()

def 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 
48 saverun {} /Herwig/Generators/EventGenerator
49 """.format(self.run_name)
50 
51 

◆ local_pre_commands()

def 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()

def Herwig7ConfigBuiltinME.Hw7ConfigBuiltinME.powheg_commands ( )

Definition at line 80 of file Herwig7ConfigBuiltinME.py.

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

◆ run()

def 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 

Member Data Documentation

◆ beams

Herwig7ConfigBuiltinME.Hw7ConfigBuiltinME.beams

provide variables initialized by the parent class

Definition at line 28 of file Herwig7ConfigBuiltinME.py.


The documentation for this class was generated from the following file:
vtune_athena.format
format
Definition: vtune_athena.py:14
run
int run(int argc, char *argv[])
Definition: ttree2hdf5.cxx:28
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18