ATLAS Offline Software
Functions
python.algorithms.generators.singlecore Namespace Reference

Functions

def singlecore (process)
 Run a single Powheg process in its own timed thread. More...
 
def singlecore_untimed (process)
 Run a single Powheg process in its own thread. More...
 

Function Documentation

◆ singlecore()

def python.algorithms.generators.singlecore.singlecore (   process)

Run a single Powheg process in its own timed thread.

Parameters
processPowhegBox process.
Author
James Robinson james.nosp@m..rob.nosp@m.inson.nosp@m.@cer.nosp@m.n.ch

Definition at line 9 of file singlecore.py.

9 def singlecore(process):
10  """! Run a single Powheg process in its own timed thread.
11 
12  @param process PowhegBox process.
13 
14  @author James Robinson <james.robinson@cern.ch>
15  """
16  singlecore_untimed(process)
17 
18 

◆ singlecore_untimed()

def python.algorithms.generators.singlecore.singlecore_untimed (   process)

Run a single Powheg process in its own thread.

Parameters
processPowhegBox process.
Author
James Robinson james.nosp@m..rob.nosp@m.inson.nosp@m.@cer.nosp@m.n.ch

Definition at line 19 of file singlecore.py.

19 def singlecore_untimed(process):
20  """! Run a single Powheg process in its own thread.
21 
22  @param process PowhegBox process.
23 
24  @author James Robinson <james.robinson@cern.ch>
25  """
26  if not os.path.isfile(process.executable):
27  raise OSError("Powheg executable {} not found!".format(process.executable))
28  threads = [SingleProcessThread(process.executable,
29  warning_output=(process.warning_output if hasattr(process,"warning_output") else None),
30  info_output=(process.info_output if hasattr(process,"info_output") else None),
31  error_output=(process.error_output if hasattr(process,"error_output") else None))]
32  manager = ProcessManager(threads)
33  while manager.monitor():
34  pass
python.algorithms.generators.singlecore.singlecore
def singlecore(process)
Run a single Powheg process in its own timed thread.
Definition: singlecore.py:9
vtune_athena.format
format
Definition: vtune_athena.py:14
python.algorithms.generators.singlecore.singlecore_untimed
def singlecore_untimed(process)
Run a single Powheg process in its own thread.
Definition: singlecore.py:19