ATLAS Offline Software
Namespaces | Functions | Variables
Herwig7Control.py File Reference

Main python interface for Herwig7 for preparing the event generation. More...

Go to the source code of this file.

Namespaces

 Herwig7Control
 

Functions

def Herwig7Control.get_share_path ()
 Get path to the share/Herwig folder. More...
 
def Herwig7Control.run (gen_config)
 Do the read/run sequence. More...
 
def Herwig7Control.matchbox_run (gen_config, integration_jobs, cleanup_herwig_scratch)
 Do the build, integrate, mergegrids and run step in one go without creating a gridpack. More...
 
def Herwig7Control.matchbox_run_gridpack (gen_config, integration_jobs, gridpack_name, cleanup_herwig_scratch, integrate)
 Either do the build, integrate and mergegrids steps and create a gridpack or extract it and generate events from it. More...
 
def Herwig7Control.do_step (step, command, logfile_name=None)
 
def Herwig7Control.do_abort ()
 
def Herwig7Control.do_read (gen_config)
 Do the read step. More...
 
def Herwig7Control.do_read_existing_infile (gen_config)
 Do the read step and re-use an already existing infile. More...
 
def Herwig7Control.do_build (gen_config, integration_jobs)
 Do the build step. More...
 
def Herwig7Control.do_integrate (run_name, integration_job)
 Do the integrate step for one specific integration job. More...
 
def Herwig7Control.do_mergegrids (run_name, integration_jobs)
 This function provides the mergegrids step. More...
 
def Herwig7Control.do_build_integrate_mergegrids (gen_config, integration_jobs)
 Subsequent build, integrate and mergegrid steps. More...
 
def Herwig7Control.do_compress_gridpack (run_name, gridpack_name)
 
def Herwig7Control.do_uncompress_gridpack (gridpack_name)
 
def Herwig7Control.do_run (gen_config, cleanup_herwig_scratch=True)
 
def Herwig7Control.do_run_existing_runfile (gen_config)
 Do the run step and re-use an already existing runfile. More...
 
def Herwig7Control.herwig_version ()
 
def Herwig7Control.thepeg_version ()
 
def Herwig7Control.start_banner ()
 
def Herwig7Control.get_software_versions ()
 
def Herwig7Control.get_infile_name (run_name="Herwig-Matchbox")
 
def Herwig7Control.get_setupfile_name (run_name="Herwig-Matchbox")
 
def Herwig7Control.get_runfile_name (run_name="Herwig-Matchbox")
 
def Herwig7Control.write_infile (gen_config, print_infile=True)
 
def Herwig7Control.write_setupfile (run_name, commands, print_setupfile=True)
 
def Herwig7Control.get_default_repository ()
 Copy default repository HerwigDefaults.rpo to current working directory. More...
 
def Herwig7Control.log (level='info', message='')
 
def Herwig7Control.exit_banner (gridpack, cross_section, cross_section_error)
 

Variables

 Herwig7Control.athMsgLog = Logging.logging.getLogger('Herwig7Control')
 
 Herwig7Control.herwig7_path = os.environ['HERWIG7_PATH']
 
 Herwig7Control.herwig7_bin_path = os.path.join(herwig7_path, 'bin')
 
def Herwig7Control.herwig7_share_path = get_share_path()
 
 Herwig7Control.herwig7_binary = os.path.join(herwig7_bin_path, 'Herwig')
 

Detailed Description

Main python interface for Herwig7 for preparing the event generation.

Author
Daniel Rauch (danie.nosp@m.l.ra.nosp@m.uch@d.nosp@m.esy..nosp@m.de)
Lukas Kretschmann (lukas.nosp@m..kre.nosp@m.tschm.nosp@m.ann@.nosp@m.cern..nosp@m.ch)

This part of the interface provides functionality for running all the tasks necessary to initialize and prepare the event generation. More concretely, it handles the read or alternatively the build/integrate/ mergegrids steps in order to produce the Herwig runfile and all other ingredients for a run, possibly also creating a gridpack. The event generation itself starting from reading the runfile is handled in Herwig7_i/Herwig7.h and src/Herwig7.cxx.

Definition in file Herwig7Control.py.