ATLAS Offline Software
HFHadronsCommonConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 
3 
6 
7 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
8 from AthenaConfiguration.ComponentFactory import CompFactory
9 from DerivationFrameworkMCTruth.HFDSIDList import DSIDList
10 
11 
12 def HFHadronsCommonCfg(flags):
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 HadronOriginClassifierCfg
18  DFCommonhadronorigintool = acc.getPrimaryAndMerge(HadronOriginClassifierCfg(flags,
19  name="DFCommonHadronOriginClassifier",
20  DSID=flags.Input.MCChannelNumber))
21  from DerivationFrameworkMCTruth.TruthDerivationToolsConfig import HadronOriginDecoratorCfg
22  DFCommonhadronorigindecorator = acc.getPrimaryAndMerge(HadronOriginDecoratorCfg(flags,
23  name="DFCommonHadronOriginDecorator",
24  ToolName=DFCommonhadronorigintool))
25  CommonAugmentation = CompFactory.DerivationFramework.CommonAugmentation
26  acc.addEventAlgo(CommonAugmentation(name="HFHadronsCommonKernel",
27  AugmentationTools=[DFCommonhadronorigindecorator]))
28  return acc
python.TruthDerivationToolsConfig.HadronOriginDecoratorCfg
def HadronOriginDecoratorCfg(flags, name, **kwargs)
Definition: TruthDerivationToolsConfig.py:240
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.TruthDerivationToolsConfig.HadronOriginClassifierCfg
def HadronOriginClassifierCfg(flags, name, **kwargs)
Definition: TruthDerivationToolsConfig.py:232
python.HFHadronsCommonConfig.HFHadronsCommonCfg
def HFHadronsCommonCfg(flags)
Definition: HFHadronsCommonConfig.py:12