![]() |
ATLAS Offline Software
|
Public Member Functions | |
| __init__ (self, flags, monName) | |
| addAlgorithm (self, algClassOrObj, name=None, addFilterTools=[], *args, **kwargs) | |
| addGroup (self, alg, name, topPath='', defaultDuration='run') | |
| addArray (self, dimensions, alg, baseName, topPath='', defaultDuration='run') | |
| result (self) | |
Public Attributes | |
| flags = flags | |
| monName = monName | |
| monSeq = AthSequencer('AthMonSeq_' + monName) | |
| resobj = ComponentAccumulator() | |
This class is for the Run 3-style configuration framework. It is intended to be instantiated once per group of related monitoring algorithms.
Definition at line 15 of file AthMonitorCfgHelper.py.
| python.AthMonitorCfgHelper.AthMonitorCfgHelper.__init__ | ( | self, | |
| flags, | |||
| monName ) |
Create the configuration helper. Needs the job flags and the name of the set of monitoring algorithms. Arguments: flags -- the configuration flag object monName -- the name you want to assign the family of algorithms
Definition at line 20 of file AthMonitorCfgHelper.py.
| python.AthMonitorCfgHelper.AthMonitorCfgHelper.addAlgorithm | ( | self, | |
| algClassOrObj, | |||
| name = None, | |||
| addFilterTools = [], | |||
| * | args, | ||
| ** | kwargs ) |
Instantiate/add a monitoring algorithm
Arguments:
algClassOrObj -- the Configurable class object of the algorithm to create, or an instance
of the algorithm Configurable. The former is recommended. In the former case,
the name argument is required.
name -- the name of the algorithm to create. Required when passing a Configurable class object
as algClassOrObj. No effect if a Configurable instance is passed.
*args, **kwargs -- additional arguments will be forwarded to the Configurable constructor if
a Configurable class object is passed. No effect if a Configurable instance
is passed.
Returns:
algObj -- an algorithm Configurable object
Definition at line 41 of file AthMonitorCfgHelper.py.
| python.AthMonitorCfgHelper.AthMonitorCfgHelper.addArray | ( | self, | |
| dimensions, | |||
| alg, | |||
| baseName, | |||
| topPath = '', | |||
| defaultDuration = 'run' ) |
Add many groups to an algorithm
Arguments:
dimensions -- list holding the size in each dimension [n1,n2,n3,n4,...]
alg -- algorithm Configurable object
baseName -- base name of the group. postfixes are added by GMT Array initialize
topPath -- directory name in the output ROOT file under which histograms will be
produced
duration -- default time between histogram reset for all histograms in group
Returns:
tool -- a GenericMonitoringToolArray object. This is used to define histograms
associated with each group in the array.
Definition at line 125 of file AthMonitorCfgHelper.py.
| python.AthMonitorCfgHelper.AthMonitorCfgHelper.addGroup | ( | self, | |
| alg, | |||
| name, | |||
| topPath = '', | |||
| defaultDuration = 'run' ) |
Add a group to an algorithm
Technically, adding a GenericMonitoringTool instance. The name given here can be
used to retrieve the group from within the algorithm when calling the fill()
function. Note this is *not* the same thing as the Monitored::Group class. To
avoid replication of code, this calls the more general case, getArray with an 1D
array of length 1.
Arguments:
alg -- algorithm Configurable object (e.g. one returned from addAlgorithm)
name -- name of the group
topPath -- directory name in the output ROOT file under which histograms will be
produced
defaultDuration -- default time between histogram reset for all histograms in
group; can be overridden for each specific histogram
Returns:
tool -- a GenericMonitoringTool Configurable object. This can be used to define
histograms associated with that group (using defineHistogram).
Definition at line 99 of file AthMonitorCfgHelper.py.
Finalize the creation of the set of monitoring algorithms. Returns: resobj -- a ComponentAccumulator
Definition at line 159 of file AthMonitorCfgHelper.py.
| python.AthMonitorCfgHelper.AthMonitorCfgHelper.flags = flags |
Definition at line 31 of file AthMonitorCfgHelper.py.
| python.AthMonitorCfgHelper.AthMonitorCfgHelper.monName = monName |
Definition at line 32 of file AthMonitorCfgHelper.py.
| python.AthMonitorCfgHelper.AthMonitorCfgHelper.monSeq = AthSequencer('AthMonSeq_' + monName) |
Definition at line 33 of file AthMonitorCfgHelper.py.
| python.AthMonitorCfgHelper.AthMonitorCfgHelper.resobj = ComponentAccumulator() |
Definition at line 35 of file AthMonitorCfgHelper.py.