![]() |
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 73 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.__init__ | ( | self, | |
| sequence = 'AthAlgSeq' ) |
Definition at line 80 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.__del__ | ( | self | ) |
Definition at line 171 of file ComponentAccumulator.py.
|
private |
Definition at line 654 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.__getstate__ | ( | self | ) |
Definition at line 187 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.__setstate__ | ( | self, | |
| state ) |
Definition at line 193 of file ComponentAccumulator.py.
|
private |
Definition at line 928 of file ComponentAccumulator.py.
|
protected |
returns iterable over all components
Definition at line 941 of file ComponentAccumulator.py.
|
protected |
Called by AccumulatorCache when deleting item from cache
Definition at line 182 of file ComponentAccumulator.py.
|
protected |
Definition at line 149 of file ComponentAccumulator.py.
|
protected |
Definition at line 131 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.addAlgToPerfmonDomains | ( | self, | |
| name, | |||
| domain, | |||
| overwrite = False ) |
Add the algorithm to the domains registry.
Definition at line 436 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 595 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.addCondAlgo | ( | self, | |
| algo, | |||
| primary = False, | |||
| domain = None ) |
Add Conditions algorithm
Definition at line 530 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.addEventAlgo | ( | self, | |
| algorithms, | |||
| sequenceName = None, | |||
| primary = False, | |||
| domain = None ) |
Definition at line 464 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.addPublicTool | ( | self, | |
| newTool, | |||
| primary = False ) |
Add public tool and return the deduplicated instance.
Definition at line 612 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 322 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.addService | ( | self, | |
| newSvc, | |||
| primary = False, | |||
| create = False ) |
Add service and return the deduplicated instance
Definition at line 566 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.createApp | ( | self | ) |
Definition at line 969 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.dropAuditor | ( | self, | |
| name ) |
Definition at line 745 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.dropCondAlgo | ( | self, | |
| name ) |
Definition at line 715 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.dropEventAlgo | ( | self, | |
| name, | |||
| sequence = "AthAlgSeq" ) |
Definition at line 685 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.dropPublicTool | ( | self, | |
| name ) |
Definition at line 735 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.dropService | ( | self, | |
| name ) |
Definition at line 725 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.empty | ( | self | ) |
Definition at line 167 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.flagPerfmonDomain | ( | self, | |
| name ) |
Mark the beginning of a new PerfMon domain.
Definition at line 414 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 1190 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.gatherProps | ( | self | ) |
Definition at line 1004 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.getAlgPerfmonDomain | ( | self, | |
| name ) |
Return the PerfMon domain of the given algorithm
Definition at line 428 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.getAppProps | ( | self | ) |
Definition at line 755 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.getAuditor | ( | self, | |
| name ) |
Retuns a single auditor, exception if not found
Definition at line 681 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.getCondAlgo | ( | self, | |
| name ) |
Get conditions algorithm by name
Definition at line 562 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.getCondAlgos | ( | self | ) |
Get all conditions algorithms
Definition at line 558 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.getCurrentPerfmonDomain | ( | self | ) |
Get the current PerfMon domain.
Definition at line 410 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.getEventAlgo | ( | self, | |
| name = None ) |
Get algorithm with `name`
Definition at line 519 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.getEventAlgos | ( | self, | |
| seqName = None ) |
Get all algorithms within sequence
Definition at line 525 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 419 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 280 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.getPrimary | ( | self | ) |
Get designated primary component
Definition at line 637 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.getPrimaryAndMerge | ( | self, | |
| other ) |
Merging in the other accumulator and getting the primary component
Definition at line 646 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 667 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.getPublicTools | ( | self | ) |
Definition at line 664 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.getSequence | ( | self, | |
| sequenceName = None ) |
Definition at line 357 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 674 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.getServices | ( | self | ) |
Definition at line 671 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.merge | ( | self, | |
| other, | |||
| sequenceName = None ) |
Merging in the other accumulator
Definition at line 778 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.popEventAlgo | ( | self, | |
| name, | |||
| sequence = "AthAlgSeq" ) |
Definition at line 700 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 388 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 399 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.printCondAlgs | ( | self, | |
| summariseProps = False, | |||
| onlyComponents = [], | |||
| printDefaults = False ) |
Definition at line 199 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.printConfig | ( | self, | |
| withDetails = False, | |||
| summariseProps = False, | |||
| onlyComponents = [], | |||
| printDefaults = False, | |||
| printSequenceTreeOnly = False, | |||
| prefix = None ) |
Definition at line 212 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.printPerfmonDomains | ( | self | ) |
Print the PerfMon domains.
Definition at line 452 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.run | ( | self, | |
| maxEvents = None ) |
Definition at line 1100 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.setAppProperty | ( | self, | |
| key, | |||
| value, | |||
| overwrite = False ) |
Definition at line 758 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.setAsTopLevel | ( | self | ) |
Definition at line 128 of file ComponentAccumulator.py.
| python.ComponentAccumulator.ComponentAccumulator.setDebugStage | ( | self, | |
| stage ) |
Definition at line 772 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 363 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 950 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 934 of file ComponentAccumulator.py.
|
protected |
Definition at line 104 of file ComponentAccumulator.py.
|
protected |
Definition at line 103 of file ComponentAccumulator.py.
|
protected |
Definition at line 108 of file ComponentAccumulator.py.
|
staticprotected |
Definition at line 78 of file ComponentAccumulator.py.
|
protected |
Definition at line 124 of file ComponentAccumulator.py.
|
protected |
Definition at line 105 of file ComponentAccumulator.py.
|
protected |
Definition at line 123 of file ComponentAccumulator.py.
|
protected |
Definition at line 111 of file ComponentAccumulator.py.
|
protected |
Definition at line 125 of file ComponentAccumulator.py.
|
protected |
Definition at line 112 of file ComponentAccumulator.py.
|
protected |
Definition at line 121 of file ComponentAccumulator.py.
|
protected |
Definition at line 122 of file ComponentAccumulator.py.
|
protected |
Definition at line 91 of file ComponentAccumulator.py.
|
protected |
Definition at line 110 of file ComponentAccumulator.py.
|
protected |
Definition at line 109 of file ComponentAccumulator.py.
|
protected |
Definition at line 117 of file ComponentAccumulator.py.
|
protected |
Definition at line 102 of file ComponentAccumulator.py.
|
protected |
Definition at line 106 of file ComponentAccumulator.py.
|
protected |
Definition at line 107 of file ComponentAccumulator.py.
|
protected |
Definition at line 114 of file ComponentAccumulator.py.
|
protected |
Definition at line 120 of file ComponentAccumulator.py.
|
static |
Definition at line 77 of file ComponentAccumulator.py.
| str python.ComponentAccumulator.ComponentAccumulator.interactive = "" |
Definition at line 126 of file ComponentAccumulator.py.