ATLAS Offline Software
Loading...
Searching...
No Matches
HFHadronsCommonConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2
3
6
7from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
8from AthenaConfiguration.ComponentFactory import CompFactory
9from DerivationFrameworkMCTruth.HFDSIDList import DSIDList
10
11
13 """Heavy flavour decorations config"""
14 acc = ComponentAccumulator()
15 acc.flagPerfmonDomain('Truth')
16 if flags.Input.MCChannelNumber > 0 and flags.Input.MCChannelNumber in DSIDList:
17 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig import HadronOriginDecoratorCfg
18 tool = acc.getPrimaryAndMerge(HadronOriginDecoratorCfg(flags, name="DFCommonHadronOriginDecorator"))
19 acc.addEventAlgo(CompFactory.DerivationFramework.CommonAugmentation(name="HFHadronsCommonKernel", AugmentationTools=[tool]))
20 return acc