ATLAS Offline Software
|
Class to store information about a single Powheg parameter. More...
Public Member Functions | |
def | __init__ (self, keyword=None, name=None, value=None, description=None, frozen=False, hidden=False, needs_processing=False) |
Initialise a parameter object. More... | |
def | __str__ (self) |
String representation. More... | |
def | ensure_default (self) |
Ensure that default value exists. More... | |
def | freeze (self) |
Freeze this parameter so that it cannot be changed. More... | |
def | keyword (self) |
Retrieve the Powheg keyword. More... | |
def | name (self) |
Retrieve the user-visible name. More... | |
def | needs_processing (self) |
Indicator that this parameter needs further processing. More... | |
def | value (self) |
Retrieve the current value of this parameter. More... | |
def | default_value (self) |
Retrieve the default value of this parameter (if it exists). More... | |
def | description (self) |
Retrieve the human-readable description string. More... | |
def | is_frozen (self) |
Boolean indicating whether this parameter can be changed. More... | |
def | is_hidden (self) |
Boolean indicating whether this parameter is visible to the user. More... | |
def | is_visible (self) |
Boolean indicating whether this parameter should be hidden from the user. More... | |
def | value (self, value) |
Set the value of this parameter (if it is not frozen). More... | |
Private Member Functions | |
def | __single_element (self, to_check) |
Return the first element if input is a list, or the input otherwise. More... | |
Private Attributes | |
__keyword | |
__name | |
__description | |
__value | |
__default_value | |
__frozen | |
__hidden | |
__needs_processing | |
Class to store information about a single Powheg parameter.
Definition at line 6 of file parameter.py.
def python.parameters.parameter.Parameter.__init__ | ( | self, | |
keyword = None , |
|||
name = None , |
|||
value = None , |
|||
description = None , |
|||
frozen = False , |
|||
hidden = False , |
|||
needs_processing = False |
|||
) |
Initialise a parameter object.
keyword | Powheg keyword. |
name | User-visible name. |
value | Current value. |
description | Human-readable description string. |
frozen | True if this parameter cannot be changed. |
hidden | True if this parameter should be hidden from the user. |
needs_processing | True if this parameter needs further processing. |
Definition at line 12 of file parameter.py.
|
private |
Return the first element if input is a list, or the input otherwise.
to_check | An iterable or non-iterable parameter |
Definition at line 43 of file parameter.py.
def python.parameters.parameter.Parameter.__str__ | ( | self | ) |
String representation.
Definition at line 32 of file parameter.py.
def python.parameters.parameter.Parameter.default_value | ( | self | ) |
Retrieve the default value of this parameter (if it exists).
Definition at line 77 of file parameter.py.
def python.parameters.parameter.Parameter.description | ( | self | ) |
def python.parameters.parameter.Parameter.ensure_default | ( | self | ) |
Ensure that default value exists.
Definition at line 38 of file parameter.py.
def python.parameters.parameter.Parameter.freeze | ( | self | ) |
Freeze this parameter so that it cannot be changed.
Definition at line 52 of file parameter.py.
def python.parameters.parameter.Parameter.is_frozen | ( | self | ) |
Boolean indicating whether this parameter can be changed.
Definition at line 89 of file parameter.py.
def python.parameters.parameter.Parameter.is_hidden | ( | self | ) |
Boolean indicating whether this parameter is visible to the user.
Definition at line 94 of file parameter.py.
def python.parameters.parameter.Parameter.is_visible | ( | self | ) |
Boolean indicating whether this parameter should be hidden from the user.
Definition at line 99 of file parameter.py.
def python.parameters.parameter.Parameter.keyword | ( | self | ) |
Retrieve the Powheg keyword.
Definition at line 57 of file parameter.py.
def python.parameters.parameter.Parameter.name | ( | self | ) |
Retrieve the user-visible name.
Definition at line 62 of file parameter.py.
def python.parameters.parameter.Parameter.needs_processing | ( | self | ) |
Indicator that this parameter needs further processing.
Definition at line 67 of file parameter.py.
def python.parameters.parameter.Parameter.value | ( | self | ) |
def python.parameters.parameter.Parameter.value | ( | self, | |
value | |||
) |
Set the value of this parameter (if it is not frozen).
Definition at line 104 of file parameter.py.
|
private |
Definition at line 27 of file parameter.py.
|
private |
Definition at line 25 of file parameter.py.
|
private |
Definition at line 28 of file parameter.py.
|
private |
Definition at line 29 of file parameter.py.
|
private |
Definition at line 23 of file parameter.py.
|
private |
Definition at line 24 of file parameter.py.
|
private |
Definition at line 30 of file parameter.py.
|
private |
Definition at line 26 of file parameter.py.