ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
JetTagging
JetTagDerivationUtils
python
CopyJetParentInfoConfig.py
Go to the documentation of this file.
1
# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
3
from
AthenaConfiguration.ComponentAccumulator
import
ComponentAccumulator
4
from
AthenaConfiguration.ComponentFactory
import
CompFactory
5
6
7
_default_jets =
'AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets'
8
_default_parents =
'AntiKt10UFOCSSKJets'
9
10
11
def
CopyJetParentInfoCfg
(flags, jets=None, parents=None):
12
if
jets
is
None
:
13
jets = _default_jets
14
parents = _default_parents
15
elif
jets != _default_jets
and
parents
is
None
:
16
raise
ValueError(
"You must specify the jet parent collection"
)
17
18
copied_ints = [
'jetRank'
]
19
20
ca = ComponentAccumulator()
21
ca.addEventAlgo(
22
CompFactory.ftag.JetLinkMatcherAlg(
23
f
'{parents}To{jets}LinkCopyAlg'
,
24
targetJet=jets,
25
sourceJets=[parents],
26
linkName=
'Parent'
,
27
intsToCopy={x:x
for
x
in
copied_ints},
28
)
29
)
30
return
ca
CopyJetParentInfoConfig.CopyJetParentInfoCfg
CopyJetParentInfoCfg(flags, jets=None, parents=None)
Definition
CopyJetParentInfoConfig.py:11
Generated on
for ATLAS Offline Software by
1.17.0