ATLAS Offline Software
Loading...
Searching...
No Matches
python.powheg_control Namespace Reference

Classes

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

Functions

 _format_QCD_scale_text (factor)

Variables

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

Function Documentation

◆ _format_QCD_scale_text()

python.powheg_control._format_QCD_scale_text ( factor)
protected
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.

14def _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.