ATLAS Offline Software
Classes | Functions | Variables
python.powheg_control Namespace Reference

Classes

class  PowhegControl
 Provides PowhegConfig objects which are user-configurable in the jobOptions. More...
 

Functions

def _format_QCD_scale_text (factor)
 

Variables

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

Function Documentation

◆ _format_QCD_scale_text()

def python.powheg_control._format_QCD_scale_text (   factor)
private
Helper function to format QCD scale value
to conform to the ATLAS weight variation
naming scheme if possible.
Given a scale factor as a float, it returns
a string that is:
- '0.5'
- '1'
- '2'
- or the float rounded to two digits after the decimal point if it is not equal to one of the above

Definition at line 16 of file powheg_control.py.

16 def _format_QCD_scale_text(factor):
17  '''
18  Helper function to format QCD scale value
19  to conform to the ATLAS weight variation
20  naming scheme if possible.
21  Given a scale factor as a float, it returns
22  a string that is:
23  - '0.5'
24  - '1'
25  - '2'
26  - or the float rounded to two digits after the decimal point if it is not equal to one of the above
27  '''
28  try:
29  return {0.5 : '0.5', 1.0 : '1', 2.0 : '2'}[factor]
30  except KeyError:
31  return '{0:.2f}'.format(factor)
32 
33 
34 

Variable Documentation

◆ logger

python.powheg_control.logger = Logging.logging.getLogger("PowhegControl")

Get handle to Athena logging.

Definition at line 12 of file powheg_control.py.

vtune_athena.format
format
Definition: vtune_athena.py:14
python.powheg_control._format_QCD_scale_text
def _format_QCD_scale_text(factor)
Definition: powheg_control.py:16