ATLAS Offline Software
Loading...
Searching...
No Matches
CopyJetParentInfoConfig Namespace Reference

Functions

 CopyJetParentInfoCfg (flags, jets=None, parents=None)

Variables

str _default_jets = 'AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets'
str _default_parents = 'AntiKt10UFOCSSKJets'

Function Documentation

◆ CopyJetParentInfoCfg()

CopyJetParentInfoConfig.CopyJetParentInfoCfg ( flags,
jets = None,
parents = None )

Definition at line 11 of file CopyJetParentInfoConfig.py.

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

Variable Documentation

◆ _default_jets

str CopyJetParentInfoConfig._default_jets = 'AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets'
protected

Definition at line 7 of file CopyJetParentInfoConfig.py.

◆ _default_parents

str CopyJetParentInfoConfig._default_parents = 'AntiKt10UFOCSSKJets'
protected

Definition at line 8 of file CopyJetParentInfoConfig.py.