12 from .D3PDObject
import D3PDObject
13 from AthenaConfiguration.ComponentFactory
import CompFactory
15 D3PD = CompFactory.D3PD
25 """Helper for setting up an association to a set of contained objects,
26 represented as vectors.
28 parent: The parent D3PDobject or block.
29 assoctool: The class for the (single) association tool.
30 prefix: Prefix to add to the contained variables, if any.
31 level: Level of detail for the block.
32 blockname: Name for the block.
33 nrowName: Name of the variable for the count of objects.
36 Extra arguments are passed to the association tool.
39 blockname = assoctool.__name__
41 def maker (name, prefix, object_name, **kw2):
42 assoc = assoctool (name +
'Assoc', **kw2)
49 obj = D3PDObject (maker, prefix)
50 parent.defineBlock (level, blockname, obj, **kw)