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

Functions

 FtagLargeRJetTruthLabelCfg (flags, jetCollection="AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets")

Detailed Description

Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration

Configuration for the FtagLargeRJetTruthLabelTool.

This can be used standalone or called from FtagBaseContent.py.

Function Documentation

◆ FtagLargeRJetTruthLabelCfg()

FtagLargeRJetTruthLabelConfig.FtagLargeRJetTruthLabelCfg ( flags,
jetCollection = "AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets" )
Schedule the FtagLargeRJetTruthLabelTool for a given jet collection.

Decorates each jet with {jetCollection}.FtagLargeRTruthLabel.
The decoration name is fixed by the C++ default in WriteDecorHandleKey.

Definition at line 13 of file FtagLargeRJetTruthLabelConfig.py.

13def FtagLargeRJetTruthLabelCfg(flags, jetCollection="AntiKt10UFOCSSKSoftDropBeta100Zcut10Jets"):
14 """Schedule the FtagLargeRJetTruthLabelTool for a given jet collection.
15
16 Decorates each jet with {jetCollection}.FtagLargeRTruthLabel.
17 The decoration name is fixed by the C++ default in WriteDecorHandleKey.
18 """
19 acc = ComponentAccumulator()
20
21 if not flags.Input.isMC:
22 return acc
23
24 tool = CompFactory.FtagLargeRJetTruthLabelTool(
25 f"FtagLargeRTruthLabel_{jetCollection}",
26 JetContainer=jetCollection,
27 )
28
29 alg = CompFactory.JetDecorationAlg(
30 f"FtagLargeRTruthLabelAlg_{jetCollection}",
31 JetContainer=jetCollection,
32 Decorators=[tool],
33 )
34
35 acc.addEventAlgo(alg)
36 return acc