|
def | __init__ (self, klass, name, **args) |
|
def | toTool (self) |
|
def | clone (self, newname, **args) |
|
def | defineHisto (self, parentAlg, monhelper, path) |
|
def | __getattr__ (self, attr) |
|
def | __setattr__ (self, attr, value) |
|
def | __setitem__ (self, attr, value) |
|
def | clone (self, **kwargs) |
|
def | dump (self, out=None) |
|
|
def | _dump (self, writeFunc) |
|
A dictionary specialized for containing the specification of a Athena tool.
Definition at line 158 of file JetMonitoringConfig.py.
◆ __init__()
def JetMonitoringConfig.ToolSpec.__init__ |
( |
|
self, |
|
|
|
klass, |
|
|
|
name, |
|
|
** |
args |
|
) |
| |
◆ __getattr__()
def JetMonitoringConfig.ConfigDict.__getattr__ |
( |
|
self, |
|
|
|
attr |
|
) |
| |
|
inherited |
Definition at line 47 of file JetMonitoringConfig.py.
47 def __getattr__(self, attr):
51 dict.__getattribute__(self,attr)
◆ __setattr__()
def JetMonitoringConfig.ConfigDict.__setattr__ |
( |
|
self, |
|
|
|
attr, |
|
|
|
value |
|
) |
| |
|
inherited |
Definition at line 54 of file JetMonitoringConfig.py.
55 if attr
in [
'keys',
'clear',
'update',
'pop',
'iteritems',
'values',
'setdefault',
'get',
'has_key',
'copy']:
56 print(
'ConfigDict ERROR can not assign attribute ', attr)
58 dict.__setitem__(self, attr, value)
59 dict.__setattr__(self, attr, value)
◆ __setitem__()
def JetMonitoringConfig.ConfigDict.__setitem__ |
( |
|
self, |
|
|
|
attr, |
|
|
|
value |
|
) |
| |
|
inherited |
Definition at line 60 of file JetMonitoringConfig.py.
61 if attr
in [
'keys',
'clear',
'update',
'pop',
'iteritems',
'values',
'setdefault',
'get',
'has_key',
'copy']:
62 print(
'ConfigDict ERROR can not assign attribute ', attr)
64 dict.__setitem__(self, attr, value)
65 dict.__setattr__(self, attr, value)
◆ _dump()
def JetMonitoringConfig.ConfigDict._dump |
( |
|
self, |
|
|
|
writeFunc |
|
) |
| |
|
privateinherited |
◆ clone() [1/2]
def JetMonitoringConfig.ConfigDict.clone |
( |
|
self, |
|
|
** |
kwargs |
|
) |
| |
|
inherited |
◆ clone() [2/2]
def JetMonitoringConfig.ToolSpec.clone |
( |
|
self, |
|
|
|
newname, |
|
|
** |
args |
|
) |
| |
◆ defineHisto()
def JetMonitoringConfig.ToolSpec.defineHisto |
( |
|
self, |
|
|
|
parentAlg, |
|
|
|
monhelper, |
|
|
|
path |
|
) |
| |
◆ dump()
def JetMonitoringConfig.ConfigDict.dump |
( |
|
self, |
|
|
|
out = None |
|
) |
| |
|
inherited |
prints the content of this dict on stdout (default) or in the file 'out'
Definition at line 76 of file JetMonitoringConfig.py.
76 def dump(self, out=None):
77 """ prints the content of this dict on stdout (default) or in the file 'out' """
79 from sys
import stdout
82 def write(s, e='\n'): _write(s+e)
◆ toTool()
def JetMonitoringConfig.ToolSpec.toTool |
( |
|
self | ) |
|
Reimplemented in JetMonitoringConfig.SelectSpec, JetMonitoringConfig.EventHistoSpec, JetMonitoringConfig.HistoSpec, and JetMonitoringConfig.VarSpec.
Definition at line 167 of file JetMonitoringConfig.py.
168 from AthenaConfiguration.ComponentFactory
import CompFactory
169 conf = self.clone(self.name)
170 klass = getattr(CompFactory,conf.pop(
'klass'))
172 conf.pop(
'topLevelDir',
None)
173 conf.pop(
'bottomLevelDir',
None)
174 conf.pop(
'defineHistoFunc',
None)
175 for k, v
in conf.items():
176 if isinstance(v,ToolSpec):
177 v.topLevelDir = self.topLevelDir
178 v.bottomLevelDir = self.bottomLevelDir
180 if isinstance(v,list):
182 if isinstance(v[0],ToolSpec):
186 toolSpec.topLevelDir=self.topLevelDir
187 toolSpec.bottomLevelDir=self.bottomLevelDir
188 toolInstances.append( toolSpec.toTool() )
189 conf[k] = toolInstances
◆ klass
JetMonitoringConfig.ToolSpec.klass |
◆ name
JetMonitoringConfig.ToolSpec.name |
The documentation for this class was generated from the following file: