ATLAS Offline Software
Loading...
Searching...
No Matches
python.ContainedMultiAssociation Namespace Reference

Functions

 ContainedMultiAssociation (parent, assoctool, prefix='', level=0, blockname=None, **kw)

Variables

 D3PD = CompFactory.D3PD

Function Documentation

◆ ContainedMultiAssociation()

python.ContainedMultiAssociation.ContainedMultiAssociation ( parent,
assoctool,
prefix = '',
level = 0,
blockname = None,
** kw )
Helper for setting up an association to a set of contained objects.

parent: The parent D3PDobject or block.
assoctool: The class for the (single) association tool.
prefix: Prefix to add to the contained variables, if any.
level: Level of detail for the block.
blockname: Name for the block.

Extra arguments are passed to the association tool.

Definition at line 17 of file ContainedMultiAssociation.py.

22 **kw):
23 """Helper for setting up an association to a set of contained objects.
24
25 parent: The parent D3PDobject or block.
26 assoctool: The class for the (single) association tool.
27 prefix: Prefix to add to the contained variables, if any.
28 level: Level of detail for the block.
29 blockname: Name for the block.
30
31 Extra arguments are passed to the association tool.
32"""
33 if blockname is None:
34 blockname = assoctool.__name__
35
36 def maker (name, prefix, object_name, **kw2):
37 assoc = assoctool (name + 'Assoc', **kw2)
39 (name, Prefix = prefix, Associator = assoc)
40
41 obj = D3PDObject (maker, prefix)
42 parent.defineBlock (level, blockname, obj, **kw)
43 return obj
Represent a multiple association by containment.

Variable Documentation

◆ D3PD

python.ContainedMultiAssociation.D3PD = CompFactory.D3PD

Definition at line 14 of file ContainedMultiAssociation.py.