ATLAS Offline Software
Functions | Variables
python.ContainedVectorMultiAssociation Namespace Reference

Functions

def ContainedVectorMultiAssociation (parent, assoctool, prefix='', level=0, blockname=None, nrowName='n', **kw)
 

Variables

 D3PD = CompFactory.D3PD
 

Function Documentation

◆ ContainedVectorMultiAssociation()

def python.ContainedVectorMultiAssociation.ContainedVectorMultiAssociation (   parent,
  assoctool,
  prefix = '',
  level = 0,
  blockname = None,
  nrowName = 'n',
**  kw 
)
Helper for setting up an association to a set of contained objects,
represented as vectors.

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.
nrowName: Name of the variable for the count of objects.
          Omitted if empty.

Extra arguments are passed to the association tool.

Definition at line 18 of file ContainedVectorMultiAssociation.py.

19  assoctool,
20  prefix = '',
21  level = 0,
22  blockname = None,
23  nrowName = 'n',
24  **kw):
25  """Helper for setting up an association to a set of contained objects,
26 represented as vectors.
27 
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.
34  Omitted if empty.
35 
36  Extra arguments are passed to the association tool.
37 """
38  if blockname is None:
39  blockname = assoctool.__name__
40 
41  def maker (name, prefix, object_name, **kw2):
42  assoc = assoctool (name + 'Assoc', **kw2)
44  (name,
45  NrowName = nrowName,
46  Prefix = prefix,
47  Associator = assoc)
48 
49  obj = D3PDObject (maker, prefix)
50  parent.defineBlock (level, blockname, obj, **kw)
51  return obj

Variable Documentation

◆ D3PD

python.ContainedVectorMultiAssociation.D3PD = CompFactory.D3PD

Definition at line 15 of file ContainedVectorMultiAssociation.py.

python.ContainedVectorMultiAssociation.ContainedVectorMultiAssociation
def ContainedVectorMultiAssociation(parent, assoctool, prefix='', level=0, blockname=None, nrowName='n', **kw)
Definition: ContainedVectorMultiAssociation.py:18
D3PD::ContainedVectorMultiAssociationFillerTool
Represent a multiple association by containment inside vectors.
Definition: ContainedVectorMultiAssociationFillerTool.h:61