ATLAS Offline Software
Public Member Functions | Public Attributes | Private Attributes | List of all members
python.trfArgClasses.argument Class Reference

Basic argument class holding a value which can be get and set. More...

Inheritance diagram for python.trfArgClasses.argument:
Collaboration diagram for python.trfArgClasses.argument:

Public Member Functions

def __init__ (self, value=None, runarg=True, name=None)
 Initialise argument class. More...
 
def value (self)
 Return argument value. More...
 
def value (self, value)
 Set argument value. More...
 
def isRunarg (self)
 Return runarg status. More...
 
def name (self)
 Name getter. More...
 
def name (self, value)
 Name setter. More...
 
def prodsysDescription (self)
 
def __str__ (self)
 String conversion of our value. More...
 
def __repr__ (self)
 Repr conversion of our value. More...
 
def __eq__ (self, other)
 Comparison is based on value attribute. More...
 
def __nq__ (self, other)
 
def __lt__ (self, other)
 
def __gt__ (self, other)
 

Public Attributes

 value
 

Private Attributes

 _runarg
 
 _name
 
 _value
 

Detailed Description

Basic argument class holding a value which can be get and set.

Note
Any argument type is supported

Definition at line 102 of file trfArgClasses.py.

Constructor & Destructor Documentation

◆ __init__()

def python.trfArgClasses.argument.__init__ (   self,
  value = None,
  runarg = True,
  name = None 
)

Initialise argument class.

Parameters
valueInitial value to be set
runargBoolean specifiying if this is a run time argument (specifically passed to athena by the AthenaExecutor, other executors may do the same).
nameName for this argument

Definition at line 109 of file trfArgClasses.py.

109  def __init__(self, value = None, runarg = True, name = None):
110  self._runarg = runarg
111  self._name = name
112 
113 
118  self.value = value
119 

Member Function Documentation

◆ __eq__()

def python.trfArgClasses.argument.__eq__ (   self,
  other 
)

Comparison is based on value attribute.

Definition at line 161 of file trfArgClasses.py.

161  def __eq__(self,other):
162  return self.value == other.value
163 

◆ __gt__()

def python.trfArgClasses.argument.__gt__ (   self,
  other 
)

Definition at line 170 of file trfArgClasses.py.

170  def __gt__(self, other):
171  return self.value > other.value
172 

◆ __lt__()

def python.trfArgClasses.argument.__lt__ (   self,
  other 
)

Definition at line 167 of file trfArgClasses.py.

167  def __lt__(self, other):
168  return self.value < other.value
169 

◆ __nq__()

def python.trfArgClasses.argument.__nq__ (   self,
  other 
)

Definition at line 164 of file trfArgClasses.py.

164  def __nq__(self, other):
165  return self.value != other.value
166 

◆ __repr__()

def python.trfArgClasses.argument.__repr__ (   self)

Repr conversion of our value.

Reimplemented in python.trfArgClasses.argList.

Definition at line 157 of file trfArgClasses.py.

157  def __repr__(self):
158  return repr(self.value)
159 

◆ __str__()

def python.trfArgClasses.argument.__str__ (   self)

String conversion of our value.

Reimplemented in python.trfArgClasses.argFile, python.trfArgClasses.argKeyFloatValueList, python.trfArgClasses.argIntList, python.trfArgClasses.argList, and python.trfArgClasses.argString.

Definition at line 153 of file trfArgClasses.py.

153  def __str__(self):
154  return '{0}: Value {1} (isRunArg={2})'.format(self.__class__.__name__, self._value, self._runarg)
155 

◆ isRunarg()

def python.trfArgClasses.argument.isRunarg (   self)

Return runarg status.

Definition at line 134 of file trfArgClasses.py.

134  def isRunarg(self):
135  return self._runarg
136 

◆ name() [1/2]

def python.trfArgClasses.argument.name (   self)

Name getter.

Reimplemented in python.trfArgClasses.argFile.

Definition at line 139 of file trfArgClasses.py.

139  def name(self):
140  return self._name
141 

◆ name() [2/2]

def python.trfArgClasses.argument.name (   self,
  value 
)

Name setter.

Reimplemented in python.trfArgClasses.argFile.

Definition at line 144 of file trfArgClasses.py.

144  def name(self, value):
145  self._name = value
146 

◆ prodsysDescription()

def python.trfArgClasses.argument.prodsysDescription (   self)

◆ value() [1/2]

def python.trfArgClasses.argument.value (   self)

◆ value() [2/2]

def python.trfArgClasses.argument.value (   self,
  value 
)

Member Data Documentation

◆ _name

python.trfArgClasses.argument._name
private

Definition at line 111 of file trfArgClasses.py.

◆ _runarg

python.trfArgClasses.argument._runarg
private

Definition at line 110 of file trfArgClasses.py.

◆ _value

python.trfArgClasses.argument._value
private

Definition at line 130 of file trfArgClasses.py.

◆ value

python.trfArgClasses.argument.value
Note
We have a default of None here, but all derived classes should definitely have their own value setter and translate this value to something sensible for their underlying value type. N.B. As most argument classes use this default constructor it must call the @value .setter function!

Definition at line 118 of file trfArgClasses.py.


The documentation for this class was generated from the following file:
vtune_athena.format
format
Definition: vtune_athena.py:14
athena.value
value
Definition: athena.py:124
PyAthena::repr
std::string repr(PyObject *o)
returns the string representation of a python object equivalent of calling repr(o) in python
Definition: PyAthenaUtils.cxx:106
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:221
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18