ATLAS Offline Software
GenFilterToolConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 
3 # Common code for setting up the gen filter tools
4 
5 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
6 from AthenaConfiguration.ComponentFactory import CompFactory
7 
8 def GenFilterToolCfg(flags):
9  """Configure the generator filter tool"""
10  acc = ComponentAccumulator()
11 
12  # Set up the MCTruthClassifier
13  from DerivationFrameworkMCTruth.TruthDerivationToolsConfig import DFCommonMCTruthClassifierCfg
14  acc.merge(DFCommonMCTruthClassifierCfg(flags))
15 
16  #Save the post-shower HT and MET filter values that will make combining filtered samples easier (adds to the EventInfo)
17  GenFilterTool = CompFactory.DerivationFramework.GenFilterTool
18  acc.addPublicTool(GenFilterTool(name = "DFCommonTruthGenFilt"), primary = True)
19 
20  return acc
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.GenFilterToolConfig.GenFilterToolCfg
def GenFilterToolCfg(flags)
Definition: GenFilterToolConfig.py:8
python.TruthDerivationToolsConfig.DFCommonMCTruthClassifierCfg
def DFCommonMCTruthClassifierCfg(flags)
Definition: TruthDerivationToolsConfig.py:128