ATLAS Offline Software
Functions | Variables
python.DRIndexMultiAssociation Namespace Reference

Functions

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

Variables

 D3PD = CompFactory.D3PD
 

Function Documentation

◆ DRIndexMultiAssociation()

def 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.

19 def DRIndexMultiAssociation (parent,
20  type_name,
21  default_sgkey,
22  default_drcut,
23  prefix = '',
24  target = '',
25  level = 0,
26  blockname = None,
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

Variable Documentation

◆ D3PD

python.DRIndexMultiAssociation.D3PD = CompFactory.D3PD

Definition at line 16 of file DRIndexMultiAssociation.py.

python.DRIndexMultiAssociation.DRIndexMultiAssociation
def DRIndexMultiAssociation(parent, type_name, default_sgkey, default_drcut, prefix='', target='', level=0, blockname=None, *args, **kw)
Definition: DRIndexMultiAssociation.py:19
D3PD::SGDataVectorGetterTool
Getter tool to retrieve DataVector/List collections from StoreGate.
Definition: SGDataVectorGetterTool.h:55
D3PD::DRConeAssociationTool
Associate all particles within a DR cut.
Definition: DRConeAssociationTool.h:43
D3PD::ContainedVectorMultiAssociationFillerTool
Represent a multiple association by containment inside vectors.
Definition: ContainedVectorMultiAssociationFillerTool.h:61
D3PD::IndexFillerTool
Fill an index of an object within a container.
Definition: IndexFillerTool.h:32