ATLAS Offline Software
PhysicsAnalysis
D3PDMaker
TruthD3PDMaker
python
TruthParticleParentAssociation.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/TruthParticleParentAssociation.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
# parents by index.
9
#
10
11
12
from
D3PDMakerCoreComps.IndexMultiAssociation
import
IndexMultiAssociation
13
from
AthenaConfiguration.ComponentFactory
import
CompFactory
14
15
D3PD = CompFactory.D3PD
16
17
18
def
TruthParticleParentAssociation
(parent,
19
prefix = '',
20
target = '',
21
level = 0,
22
blockname = None,
23
*args, **kw):
24
"""Helper for setting up an association for truth particle
25
parents by index.
26
"""
27
if
blockname
is
None
:
28
blockname = prefix +
'TruthParticleParentAssociation'
29
30
return
IndexMultiAssociation (parent,
31
D3PD.TruthParticleParentAssociationTool
,
32
target,
33
prefix,
34
level,
35
blockname,
36
nrowName =
''
)
python.TruthParticleParentAssociation.TruthParticleParentAssociation
def TruthParticleParentAssociation(parent, prefix='', target='', level=0, blockname=None, *args, **kw)
Definition:
TruthParticleParentAssociation.py:18
D3PD::TruthParticleParentAssociationTool
Associate all particles within a DR cut.
Definition:
TruthParticleParentAssociationTool.h:37
Generated on Mon Jul 8 2024 21:32:10 for ATLAS Offline Software by
1.8.18