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 14 of file powheg_control.py.

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

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:14