ATLAS Offline Software
TruthParticleChildAssociation.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 #
4 # @file TruthD3PDMaker/python/TruthParticleChildAssociation.py
5 # @author Ryan Reece <ryan.reece@cern.ch>
6 # @date Mar, 2010
7 # @brief Helper for setting up an association for truth particle
8 # children by index.
9 #
10 
11 
12 from D3PDMakerCoreComps.IndexMultiAssociation import IndexMultiAssociation
13 from AthenaConfiguration.ComponentFactory import CompFactory
14 
15 D3PD = CompFactory.D3PD
16 
17 
19  prefix = '',
20  target = '',
21  level = 0,
22  blockname = None,
23  *args, **kw):
24  """Helper for setting up an association for truth particle
25 children by index.
26 """
27  if blockname is None:
28  blockname = prefix + 'TruthParticleChildAssociation'
29 
30  return IndexMultiAssociation (parent,
32  target,
33  prefix,
34  level,
35  blockname,
36  nrowName = '')
37 
D3PD::TruthParticleChildAssociationTool
Associate all particles within a DR cut.
Definition: TruthParticleChildAssociationTool.h:37
python.TruthParticleChildAssociation.TruthParticleChildAssociation
def TruthParticleChildAssociation(parent, prefix='', target='', level=0, blockname=None, *args, **kw)
Definition: TruthParticleChildAssociation.py:18