|
def | __init__ (self, name, defaultPath='standardHistos/', TriggerChain='', **args) |
|
def | appendHistos (self, *hfillers) |
|
def | toAlg (self, monhelper) |
|
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 to contain a JetMonitoringAlg specification
Definition at line 520 of file JetMonitoringConfig.py.
◆ __init__()
def JetMonitoringConfig.JetMonAlgSpec.__init__ |
( |
|
self, |
|
|
|
name, |
|
|
|
defaultPath = 'standardHistos/' , |
|
|
|
TriggerChain = '' , |
|
|
** |
args |
|
) |
| |
Definition at line 523 of file JetMonitoringConfig.py.
523 def __init__(self, name , defaultPath='standardHistos/', TriggerChain='' ,**args):
526 args.setdefault(
'FillerTools',[])
527 args.setdefault(
'topLevelDir',
'Jets/')
528 args.setdefault(
'bottomLevelDir',
'')
529 args.setdefault(
'failureOnMissingContainer',
True)
530 args.setdefault(
'onlyPassingJets',
True)
531 args.setdefault(
'eventFiresAnyJetChain',
False)
532 args.setdefault(
'isExpressStreamJob',
False)
533 ConfigDict.__init__(self, defaultPath=defaultPath, TriggerChain=TriggerChain, **args)
534 tmpL = self.FillerTools
535 self.FillerTools = []
536 self.appendHistos(*tmpL)
◆ __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.JetMonAlgSpec._dump |
( |
|
self, |
|
|
|
writeFunc |
|
) |
| |
|
private |
Reimplemented from JetMonitoringConfig.ConfigDict.
Definition at line 562 of file JetMonitoringConfig.py.
562 def _dump(self, writeFunc):
563 def write(s,e='\n'): writeFunc(
' '+s,e)
564 def write2(s,e='\n'): writeFunc(
' '+s,e)
565 writeFunc(self.__class__.__name__+
'(')
566 for k,v
in sorted(self.items()):
567 if k ==
'FillerTools':
568 write(
'FillerTools = [')
◆ appendHistos()
def JetMonitoringConfig.JetMonAlgSpec.appendHistos |
( |
|
self, |
|
|
* |
hfillers |
|
) |
| |
◆ clone()
def JetMonitoringConfig.ConfigDict.clone |
( |
|
self, |
|
|
** |
kwargs |
|
) |
| |
|
inherited |
◆ 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)
◆ toAlg()
def JetMonitoringConfig.JetMonAlgSpec.toAlg |
( |
|
self, |
|
|
|
monhelper |
|
) |
| |
Definition at line 542 of file JetMonitoringConfig.py.
542 def toAlg(self, monhelper):
543 from AthenaConfiguration.ComponentFactory
import CompFactory
544 alg = monhelper.addAlgorithm(CompFactory.JetMonitoringAlg, self.name)
545 alg.TriggerChain = self.TriggerChain
546 alg.JetContainerName = self.JetContainerName
547 alg.FailureOnMissingContainer = self.failureOnMissingContainer
548 alg.OnlyPassingJets = self.onlyPassingJets
549 alg.EventFiresAnyJetChain = self.eventFiresAnyJetChain
550 alg.EnforceExpressTriggers = self.isExpressStreamJob
552 path = self.defaultPath
554 for tconf
in self.FillerTools:
555 tconf.topLevelDir = self.topLevelDir
556 tconf.bottomLevelDir = self.bottomLevelDir
557 tools.append( tconf.toTool( ))
558 tconf.defineHisto(alg, monhelper, path)
559 alg.FillerTools = tools
◆ FillerTools
JetMonitoringConfig.JetMonAlgSpec.FillerTools |
◆ name
JetMonitoringConfig.JetMonAlgSpec.name |
The documentation for this class was generated from the following file: