ATLAS Offline Software
Loading...
Searching...
No Matches
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
12from D3PDMakerCoreComps.IndexMultiAssociation import IndexMultiAssociation
13from AthenaConfiguration.ComponentFactory import CompFactory
14
15D3PD = CompFactory.D3PD
16
17
18def TruthParticleChildAssociation (parent,
19 prefix = '',
20 target = '',
21 level = 0,
22 blockname = None,
23 *args, **kw):
24 """Helper for setting up an association for truth particle
25children 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