ATLAS Offline Software
Functions | Variables
python.algorithms.postprocessors.output_file_renamer Namespace Reference

Functions

def output_file_renamer (output_events_name, powheg_LHE_output)
 Move output to correctly named file. More...
 

Variables

 logger = Logging.logging.getLogger("PowhegControl")
 Get handle to Athena logging. More...
 

Function Documentation

◆ output_file_renamer()

def python.algorithms.postprocessors.output_file_renamer.output_file_renamer (   output_events_name,
  powheg_LHE_output 
)

Move output to correctly named file.

Parameters
output_file_nameName of output LHE file.
powheg_LHE_outputName of LHE file produced by PowhegBox.
Author
James Robinson james.nosp@m..rob.nosp@m.inson.nosp@m.@cer.nosp@m.n.ch

Definition at line 12 of file output_file_renamer.py.

12 def output_file_renamer(output_events_name, powheg_LHE_output):
13  """! Move output to correctly named file.
14 
15  @param output_file_name Name of output LHE file.
16  @param powheg_LHE_output Name of LHE file produced by PowhegBox.
17 
18  @author James Robinson <james.robinson@cern.ch>
19  """
20  logger.info("Starting to run PowhegControl output file renamer")
21  try:
22  os.rename(powheg_LHE_output, output_events_name)
23  logger.info("Moved {} to {}".format(powheg_LHE_output, output_events_name))
24  except OSError:
25  logger.warning("No output LHEF file found! Probably because the Powheg process was killed before finishing.")
26  raise RuntimeError("No output LHEF file produced by Powheg. Terminating job.")

Variable Documentation

◆ logger

python.algorithms.postprocessors.output_file_renamer.logger = Logging.logging.getLogger("PowhegControl")

Get handle to Athena logging.

Definition at line 8 of file output_file_renamer.py.

vtune_athena.format
format
Definition: vtune_athena.py:14
python.algorithms.postprocessors.output_file_renamer.output_file_renamer
def output_file_renamer(output_events_name, powheg_LHE_output)
Move output to correctly named file.
Definition: output_file_renamer.py:12