![]() |
ATLAS Offline Software
|
Public Member Functions | |
| __init__ (self, sequence='AthAlgSeq') | |
| setAsTopLevel (self) | |
| empty (self) | |
| __del__ (self) | |
| __getstate__ (self) | |
| __setstate__ (self, state) | |
| printCondAlgs (self, summariseProps=False, onlyComponents=[], printDefaults=False) | |
| printConfig (self, withDetails=False, summariseProps=False, onlyComponents=[], printDefaults=False, printSequenceTreeOnly=False, prefix=None) | |
| getIO (self) | |
| addSequence (self, newseq, primary=False, parentName=None) | |
| getSequence (self, sequenceName=None) | |
| setPrivateTools (self, privTool) | |
| popPrivateTools (self, quiet=False) | |
| popToolsAndMerge (self, other) | |
| getCurrentPerfmonDomain (self) | |
| flagPerfmonDomain (self, name) | |
| getInvertedPerfmonDomains (self) | |
| getAlgPerfmonDomain (self, name) | |
| addAlgToPerfmonDomains (self, name, domain, overwrite=False) | |
| printPerfmonDomains (self) | |
| addEventAlgo (self, algorithms, sequenceName=None, primary=False, domain=None) | |
| getEventAlgo (self, name=None) | |
| getEventAlgos (self, seqName=None) | |
| addCondAlgo (self, algo, primary=False, domain=None) | |
| getCondAlgos (self) | |
| getCondAlgo (self, name) | |
| addService (self, newSvc, primary=False, create=False) | |
| addAuditor (self, auditor) | |
| addPublicTool (self, newTool, primary=False) | |
| getPrimary (self) | |
| getPrimaryAndMerge (self, other) | |
| getPublicTools (self) | |
| getPublicTool (self, name=None) | |
| getServices (self) | |
| getService (self, name=None) | |
| getAuditor (self, name) | |
| dropEventAlgo (self, name, sequence="AthAlgSeq") | |
| popEventAlgo (self, name, sequence="AthAlgSeq") | |
| dropCondAlgo (self, name) | |
| dropService (self, name) | |
| dropPublicTool (self, name) | |
| dropAuditor (self, name) | |
| getAppProps (self) | |
| setAppProperty (self, key, value, overwrite=False) | |
| setDebugStage (self, stage) | |
| merge (self, other, sequenceName=None) | |
| wasMerged (self) | |
| store (self, outfile, withDefaultHandles=False) | |
| createApp (self) | |
| gatherProps (self) | |
| run (self, maxEvents=None) | |
| foreach_component (self, path) | |
Public Attributes | |
| str | interactive = "" |
Static Public Attributes | |
| str | debugMode = "" |
Protected Member Functions | |
| _inspect (self) | |
| _cleanup (self) | |
| _cacheEvict (self) | |
| _allComponents (self) | |
Protected Attributes | |
| _msg = logging.getLogger('ComponentAccumulator') | |
| _sequence = sequence | |
| list | _allSequences = [self._sequence] |
| dict | _algorithms = {} |
| list | _conditionsAlgs = [] |
| list | _services = [] |
| list | _servicesToCreate = [] |
| list | _auditors = [] |
| _privateTools = None | |
| _primaryComp = None | |
| _currentDomain = None | |
| dict | _domainsRegistry = {} |
| _theAppProps = dict() | |
| list | _publicTools = [] |
| bool | _wasMerged = False |
| bool | _isMergable = True |
| str | _lastAddedComponent = "Unknown" |
| str | _creationCallStack = Context.hint if "trackCA" not in ComponentAccumulator.debugMode else shortCallStack() |
| _componentsContext = dict() | |
| _debugStage = DbgStage() | |
Static Protected Attributes | |
| bool | _checkUnmerged = True |
Private Member Functions | |
| __getOne (self, allcomps, name=None, typename="???") | |
| __verifyFinalSequencesStructure (self) | |
Definition at line 74 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.__init__ | ( | self, | |
| sequence = 'AthAlgSeq' ) |
Definition at line 81 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.__del__ | ( | self | ) |
Definition at line 172 of file ComponentAccumulator.py.
|
private |
Definition at line 655 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.__getstate__ | ( | self | ) |
Definition at line 188 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.__setstate__ | ( | self, | |
| state ) |
Definition at line 194 of file ComponentAccumulator.py.
|
private |
Definition at line 929 of file ComponentAccumulator.py.
|
protected |
returns iterable over all components
Definition at line 942 of file ComponentAccumulator.py.
|
protected |
Called by AccumulatorCache when deleting item from cache
Definition at line 183 of file ComponentAccumulator.py.
|
protected |
Definition at line 150 of file ComponentAccumulator.py.
|
protected |
Definition at line 132 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.addAlgToPerfmonDomains | ( | self, | |
| name, | |||
| domain, | |||
| overwrite = False ) |
Add the algorithm to the domains registry.
Definition at line 437 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.addAuditor | ( | self, | |
| auditor ) |
Add Auditor to ComponentAccumulator and return the deduplicated instance. This function will also create the required AuditorSvc.
Definition at line 596 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.addCondAlgo | ( | self, | |
| algo, | |||
| primary = False, | |||
| domain = None ) |
Add Conditions algorithm
Definition at line 531 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.addEventAlgo | ( | self, | |
| algorithms, | |||
| sequenceName = None, | |||
| primary = False, | |||
| domain = None ) |
Definition at line 465 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.addPublicTool | ( | self, | |
| newTool, | |||
| primary = False ) |
Add public tool and return the deduplicated instance.
Definition at line 613 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.addSequence | ( | self, | |
| newseq, | |||
| primary = False, | |||
| parentName = None ) |
Adds new sequence. If second argument is present then it is added under another sequence
Definition at line 323 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.addService | ( | self, | |
| newSvc, | |||
| primary = False, | |||
| create = False ) |
Add service and return the deduplicated instance
Definition at line 567 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.createApp | ( | self | ) |
Definition at line 970 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.dropAuditor | ( | self, | |
| name ) |
Definition at line 746 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.dropCondAlgo | ( | self, | |
| name ) |
Definition at line 716 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.dropEventAlgo | ( | self, | |
| name, | |||
| sequence = "AthAlgSeq" ) |
Definition at line 686 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.dropPublicTool | ( | self, | |
| name ) |
Definition at line 736 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.dropService | ( | self, | |
| name ) |
Definition at line 726 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.empty | ( | self | ) |
Definition at line 168 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.flagPerfmonDomain | ( | self, | |
| name ) |
Mark the beginning of a new PerfMon domain.
Definition at line 415 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.foreach_component | ( | self, | |
| path ) |
Utility to set properties of components using wildcards.
Example:
ca.foreach_component("*/HLTTop/*/*Hypo*").OutputLevel = VERBOSE
The components name and location in the CF tree are translated into a UNIX-like path
and are matched using the `fnmatch` library. If the property is set successfully
an INFO message is printed else a WARNING.
The convention for paths of nested components is as follows:
Sequence : only the name is used in the path
Algorithm : "type/name" is used
Private Tool : ToolHandle property name plus "type/name" is used
Public Tool : located under "ToolSvc/" and "type/name" is used
Service : located under "SvcMgr/" and "type/name" is used
Definition at line 1200 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.gatherProps | ( | self | ) |
Definition at line 1014 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.getAlgPerfmonDomain | ( | self, | |
| name ) |
Return the PerfMon domain of the given algorithm
Definition at line 429 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.getAppProps | ( | self | ) |
Definition at line 756 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.getAuditor | ( | self, | |
| name ) |
Retuns a single auditor, exception if not found
Definition at line 682 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.getCondAlgo | ( | self, | |
| name ) |
Get conditions algorithm by name
Definition at line 563 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.getCondAlgos | ( | self | ) |
Get all conditions algorithms
Definition at line 559 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.getCurrentPerfmonDomain | ( | self | ) |
Get the current PerfMon domain.
Definition at line 411 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.getEventAlgo | ( | self, | |
| name = None ) |
Get algorithm with `name`
Definition at line 520 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.getEventAlgos | ( | self, | |
| seqName = None ) |
Get all algorithms within sequence
Definition at line 526 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.getInvertedPerfmonDomains | ( | self | ) |
The actual registry keeps "alg":"domain". This function inverts the registry to get "domain":["algs"].
Definition at line 420 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.getIO | ( | self | ) |
Returns information about inputs needed and outputs produced by this CA It is a list of dictionaries containing the: type, key, R / W, the component and name of the property via which it is set
Definition at line 281 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.getPrimary | ( | self | ) |
Get designated primary component
Definition at line 638 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.getPrimaryAndMerge | ( | self, | |
| other ) |
Merging in the other accumulator and getting the primary component
Definition at line 647 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.getPublicTool | ( | self, | |
| name = None ) |
Returns single public tool, exception if either not found or to many found
Definition at line 668 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.getPublicTools | ( | self | ) |
Definition at line 665 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.getSequence | ( | self, | |
| sequenceName = None ) |
Definition at line 358 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.getService | ( | self, | |
| name = None ) |
Returns single service, exception if either not found or to many found
Definition at line 675 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.getServices | ( | self | ) |
Definition at line 672 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.merge | ( | self, | |
| other, | |||
| sequenceName = None ) |
Merging in the other accumulator
Definition at line 779 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.popEventAlgo | ( | self, | |
| name, | |||
| sequence = "AthAlgSeq" ) |
Definition at line 701 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.popPrivateTools | ( | self, | |
| quiet = False ) |
Get the (list of) private AlgTools from this ComponentAccumulator. The CA will not keep any reference to the AlgTool. Throw an exception if no tools are available unless quiet=True.
Definition at line 389 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.popToolsAndMerge | ( | self, | |
| other ) |
Merging in the other accumulator and getting the (list of) private AlgTools from this ComponentAccumulator.
Definition at line 400 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.printCondAlgs | ( | self, | |
| summariseProps = False, | |||
| onlyComponents = [], | |||
| printDefaults = False ) |
Definition at line 200 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.printConfig | ( | self, | |
| withDetails = False, | |||
| summariseProps = False, | |||
| onlyComponents = [], | |||
| printDefaults = False, | |||
| printSequenceTreeOnly = False, | |||
| prefix = None ) |
Definition at line 213 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.printPerfmonDomains | ( | self | ) |
Print the PerfMon domains.
Definition at line 453 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.run | ( | self, | |
| maxEvents = None ) |
Definition at line 1110 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.setAppProperty | ( | self, | |
| key, | |||
| value, | |||
| overwrite = False ) |
Definition at line 759 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.setAsTopLevel | ( | self | ) |
Definition at line 129 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.setDebugStage | ( | self, | |
| stage ) |
Definition at line 773 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.setPrivateTools | ( | self, | |
| privTool ) |
Use this method to carry private AlgTool(s) to the caller when returning this ComponentAccumulator. The method accepts either a single private AlgTool or a list of private AlgTools (typically assigned to ToolHandleArray)
Definition at line 364 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.store | ( | self, | |
| outfile, | |||
| withDefaultHandles = False ) |
Saves CA in pickle form when withDefaultHandles is True, also the handles that are not set are saved
Definition at line 951 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.wasMerged | ( | self | ) |
Declares CA as merged This is temporarily needed by HLT and should not be used elsewhere
Definition at line 935 of file ComponentAccumulator.py.
|
protected |
Definition at line 105 of file ComponentAccumulator.py.
|
protected |
Definition at line 104 of file ComponentAccumulator.py.
|
protected |
Definition at line 109 of file ComponentAccumulator.py.
|
staticprotected |
Definition at line 79 of file ComponentAccumulator.py.
|
protected |
Definition at line 125 of file ComponentAccumulator.py.
|
protected |
Definition at line 106 of file ComponentAccumulator.py.
|
protected |
Definition at line 124 of file ComponentAccumulator.py.
|
protected |
Definition at line 112 of file ComponentAccumulator.py.
|
protected |
Definition at line 126 of file ComponentAccumulator.py.
|
protected |
Definition at line 113 of file ComponentAccumulator.py.
|
protected |
Definition at line 122 of file ComponentAccumulator.py.
|
protected |
Definition at line 123 of file ComponentAccumulator.py.
|
protected |
Definition at line 92 of file ComponentAccumulator.py.
|
protected |
Definition at line 111 of file ComponentAccumulator.py.
|
protected |
Definition at line 110 of file ComponentAccumulator.py.
|
protected |
Definition at line 118 of file ComponentAccumulator.py.
|
protected |
Definition at line 103 of file ComponentAccumulator.py.
|
protected |
Definition at line 107 of file ComponentAccumulator.py.
|
protected |
Definition at line 108 of file ComponentAccumulator.py.
|
protected |
Definition at line 115 of file ComponentAccumulator.py.
|
protected |
Definition at line 121 of file ComponentAccumulator.py.
|
static |
Definition at line 78 of file ComponentAccumulator.py.
| str python.ComponentAccumulator.ComponentAccumulator.interactive = "" |
Definition at line 127 of file ComponentAccumulator.py.