ATLAS Offline Software
Public Member Functions | Public Attributes | Static Private Attributes | List of all members
Herwig7Utils.ConfigurationCommands Class Reference

Class for handling commands to modify the generator configuration. More...

Collaboration diagram for Herwig7Utils.ConfigurationCommands:

Public Member Functions

def __init__ (self)
 
def lock (self)
 
def add (self, commands)
 

Public Attributes

 commands
 
 locked
 

Static Private Attributes

def __iadd__ = add
 

Detailed Description

Class for handling commands to modify the generator configuration.

The specific purpose of this class is to provide a mechanism for the locking of the generator configuration after the creation of the Herwig7 input file. The input file gets written upon execution of onoe of the run or build functions of the specific generator configuration object. Beyond this point no further modification of the configuration in the job options can be propagated and used in the Herwig7 run.

Definition at line 23 of file Herwig7Utils.py.

Constructor & Destructor Documentation

◆ __init__()

def Herwig7Utils.ConfigurationCommands.__init__ (   self)

Definition at line 25 of file Herwig7Utils.py.

25  def __init__(self):
26  self.commands = ""
27  self.locked = False
28 

Member Function Documentation

◆ add()

def Herwig7Utils.ConfigurationCommands.add (   self,
  commands 
)

Definition at line 32 of file Herwig7Utils.py.

32  def add(self, commands):
33  if self.locked is False:
34  self.commands += commands
35  else:
36  raise RuntimeError("The commands associated to this configuration object can't be modified anymore because the Herwig7 infile has already been written to disk. Therefore, any subsequent additional modifications can't be adopted in the Herwig7 run.")
37  return(self)
38 

◆ lock()

def Herwig7Utils.ConfigurationCommands.lock (   self)

Definition at line 29 of file Herwig7Utils.py.

29  def lock(self):
30  self.locked = True
31 

Member Data Documentation

◆ __iadd__

def Herwig7Utils.ConfigurationCommands.__iadd__ = add
staticprivate

Definition at line 39 of file Herwig7Utils.py.

◆ commands

Herwig7Utils.ConfigurationCommands.commands

Definition at line 26 of file Herwig7Utils.py.

◆ locked

Herwig7Utils.ConfigurationCommands.locked

Definition at line 27 of file Herwig7Utils.py.


The documentation for this class was generated from the following file:
add
bool add(const std::string &hname, TKey *tobj)
Definition: fastadd.cxx:55
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18