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