ATLAS Offline Software
Functions | Variables
python.algorithms.generators.merge_output Namespace Reference

Functions

def merge_output (cores, n_events_unscaled, powheg_LHE_output)
 Merge output events if running in multicore mode. More...
 

Variables

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

Function Documentation

◆ merge_output()

def python.algorithms.generators.merge_output.merge_output (   cores,
  n_events_unscaled,
  powheg_LHE_output 
)

Merge output events if running in multicore mode.

Parameters
coresNumber of cores in use.
n_events_unscaledTotal number of events generated.
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 14 of file merge_output.py.

14 def merge_output(cores, n_events_unscaled, powheg_LHE_output):
15  """! Merge output events if running in multicore mode.
16 
17  @param cores Number of cores in use.
18  @param n_events_unscaled Total number of events generated.
19  @param powheg_LHE_output Name of LHE file produced by PowhegBox.
20 
21  @author James Robinson <james.robinson@cern.ch>
22  """
23  logger.info("Concatenating output LHE files: expecting {}, found {}".format(cores, len(glob.glob("pwgevents*.lhe"))))
24  LHE.merge("pwgevents*.lhe", powheg_LHE_output)
25  subprocess.call("rm pwgevents-*.lhe 2> /dev/null", shell=True)
26  # Unscale nEvents in case this is needed later on
27  FileParser("powheg*.input").text_replace("numevts .*", "numevts {}".format(n_events_unscaled))

Variable Documentation

◆ logger

python.algorithms.generators.merge_output.logger = Logging.logging.getLogger("PowhegControl")

Get handle to Athena logging.

Definition at line 10 of file merge_output.py.

vtune_athena.format
format
Definition: vtune_athena.py:14
python.algorithms.generators.merge_output.merge_output
def merge_output(cores, n_events_unscaled, powheg_LHE_output)
Merge output events if running in multicore mode.
Definition: merge_output.py:14