![]() |
ATLAS Offline Software
|
Classes | |
| class | TestCF |
| class | TestNest |
Functions | |
| parAND (name, subs=[], invert=False) | |
| parOR (name, subs=[], invert=False) | |
| seqAND (name, subs=[], invert=False) | |
| seqOR (name, subs=[], invert=False) | |
| getSequenceChildren (comp) | |
| checkSequenceConsistency (seq) | |
| isSequence (obj) | |
| findSubSequence (start, nameToLookFor) | |
| findOwningSequence (start, nameToLookFor) | |
| findAlgorithmByPredicate (startSequence, predicate, depth=1000000) | |
| findAlgorithm (startSequence, nameToLookFor, depth=1000000) | |
| findAllAlgorithms (sequence, nameToLookFor=None) | |
| findAllAlgorithmsByName (sequence, namesToLookFor=None) | |
| flatAlgorithmSequences (start) | |
| iterSequences (start) | |
Variables | |
| AthSequencer = CompFactory.AthSequencer | |
| python.CFElements.checkSequenceConsistency | ( | seq | ) |
Enforce rules for sequence graph - identical items can not be added to itself (even indirectly)
Definition at line 56 of file CFElements.py.
| python.CFElements.findAlgorithm | ( | startSequence, | |
| nameToLookFor, | |||
| depth = 1000000 ) |
Traverse sequences tree to find the algorithm of given name. The first encountered is returned. The name() method is used to obtain the algorithm name, that one has to match to the request.
Definition at line 123 of file CFElements.py.
| python.CFElements.findAlgorithmByPredicate | ( | startSequence, | |
| predicate, | |||
| depth = 1000000 ) |
Traverse sequences tree to find the first algorithm satisfying given predicate. The first encountered is returned. Depth of the search can be controlled by the depth parameter. Typical use is to limit search to the startSequence with depth parameter set to 1
Definition at line 104 of file CFElements.py.
| python.CFElements.findAllAlgorithms | ( | sequence, | |
| nameToLookFor = None ) |
Returns flat listof of all algorithm instances in this, and in sub-sequences
Definition at line 131 of file CFElements.py.
| python.CFElements.findAllAlgorithmsByName | ( | sequence, | |
| namesToLookFor = None ) |
Finds all algorithms in sequence and groups them by name
Resulting dict has a following structure
{"Alg1Name":[(Alg1Instance, parentSequenceA, indexInSequenceA),(Alg1Instance, parentSequenceB, indexInSequenceB)],
"Alg2Name":(Alg2Instance, parentSequence, indexInThisSequence),
....}
Definition at line 145 of file CFElements.py.
| python.CFElements.findOwningSequence | ( | start, | |
| nameToLookFor ) |
find sequence that owns the sequence nameTooLookFor
Definition at line 92 of file CFElements.py.
| python.CFElements.findSubSequence | ( | start, | |
| nameToLookFor ) |
Traverse sequences tree to find a sequence of a given name. The first one is returned.
Definition at line 78 of file CFElements.py.
| python.CFElements.flatAlgorithmSequences | ( | start | ) |
Converts tree like structure of sequences into dictionary keyed by top/start sequence name containing lists of of algorithms & sequences.
Definition at line 168 of file CFElements.py.
| python.CFElements.getSequenceChildren | ( | comp | ) |
Return sequence children (empty if comp is not a sequence)
Definition at line 48 of file CFElements.py.
| python.CFElements.isSequence | ( | obj | ) |
Definition at line 74 of file CFElements.py.
| python.CFElements.iterSequences | ( | start | ) |
Iterator of sequences and their algorithms from (and including) the `start` sequence object. Do start from a sequence name use findSubSequence.
Definition at line 184 of file CFElements.py.
| python.CFElements.parAND | ( | name, | |
| subs = [], | |||
| invert = False ) |
parallel AND sequencer
Definition at line 7 of file CFElements.py.
| python.CFElements.parOR | ( | name, | |
| subs = [], | |||
| invert = False ) |
parallel OR sequencer This is the default sequencer and lets the DataFlow govern the execution entirely.
Definition at line 16 of file CFElements.py.
| python.CFElements.seqAND | ( | name, | |
| subs = [], | |||
| invert = False ) |
sequential AND sequencer
Definition at line 27 of file CFElements.py.
| python.CFElements.seqOR | ( | name, | |
| subs = [], | |||
| invert = False ) |
sequential OR sequencer Used when a barrier needs to be set by all subs reached irrespective of the decision
Definition at line 36 of file CFElements.py.
| python.CFElements.AthSequencer = CompFactory.AthSequencer |
Definition at line 5 of file CFElements.py.