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

Functions

 DRIndexMultiAssociation (parent, type_name, default_sgkey, default_drcut, prefix='', target='', level=0, blockname=None, *args, **kw)

Variables

 D3PD = CompFactory.D3PD

Function Documentation

◆ DRIndexMultiAssociation()

python.DRIndexMultiAssociation.DRIndexMultiAssociation ( parent,
type_name,
default_sgkey,
default_drcut,
prefix = '',
target = '',
level = 0,
blockname = None,
* args,
** kw )
Helper for setting up an association to objects within a DR cone,
represented by indices.

Definition at line 19 of file DRIndexMultiAssociation.py.

27 *args, **kw):
28 """Helper for setting up an association to objects within a DR cone,
29 represented by indices.
30"""
31
32
33 if blockname is None:
34 blockname = prefix + 'DRIndexMultiAssoc'
35
36 def maker (name, prefix, object_name,
37 sgkey = default_sgkey,
38 getter = None,
39 assoc = None,
40 drcut = default_drcut):
41
42 if not getter:
44 (name + '_Getter',
45 TypeName = type_name,
46 SGKey = sgkey)
47 if not assoc:
48 assoc = D3PD.DRConeAssociationTool (name + 'Assoc',
49 Getter = getter,
50 DRCut = drcut)
51
53 (name,
54 Prefix = prefix,
55 Associator = assoc,
56 NrowName = '')
57 indexer = D3PD.IndexFillerTool \
58 (name + 'Index',
59 Target = target)
60 filler.BlockFillers += [indexer]
61 return filler
62
63
64 obj = D3PDObject (maker, prefix)
65 parent.defineBlock (level, blockname, obj)
66 return obj
Represent a multiple association by containment inside vectors.
Associate all particles within a DR cut.
Fill an index of an object within a container.
Getter tool to retrieve DataVector/List collections from StoreGate.

Variable Documentation

◆ D3PD

python.DRIndexMultiAssociation.D3PD = CompFactory.D3PD

Definition at line 16 of file DRIndexMultiAssociation.py.