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
16 if flags.Input.MCChannelNumber > 0 and flags.Input.MCChannelNumber in DSIDList:
17 from DerivationFrameworkMCTruth.TruthDerivationToolsConfig import HadronOriginDecoratorCfg
18 DFCommonhadronorigindecorator = acc.getPrimaryAndMerge(HadronOriginDecoratorCfg(flags,
19 name="DFCommonHadronOriginDecorator"))
20 CommonAugmentation = CompFactory.DerivationFramework.CommonAugmentation
21 acc.addEventAlgo(CommonAugmentation(name="HFHadronsCommonKernel",
22 AugmentationTools=[DFCommonhadronorigindecorator]))
23 return acc