ATLAS Offline Software
EGammaVariableCorrectionConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
3 from AthenaConfiguration.ComponentFactory import CompFactory
4 
6  flags, name="ElectronVariableCorrectionTool", **kwargs):
7  """Configure the e/gamma variable correction tool"""
9  # Can ultimately be configured differently between Run 2 and Run 3 configs
10  kwargs.setdefault("ConfigFile", "EGammaVariableCorrection/TUNE26/ElPhVariableNominalCorrection.conf")
11  acc.setPrivateTools(
12  CompFactory.ElectronPhotonVariableCorrectionTool(name, **kwargs))
13  return acc
14 
16  flags, name="PhotonVariableCorrectionTool", **kwargs):
17  """Configure the e/gamma variable correction tool"""
18  acc = ComponentAccumulator()
19  # Use TUNE 25 for now for photons
20  kwargs.setdefault("ConfigFile", "EGammaVariableCorrection/TUNE25/ElPhVariableNominalCorrection.conf")
21  acc.setPrivateTools(
22  CompFactory.ElectronPhotonVariableCorrectionTool(name, **kwargs))
23  return acc
24 
25 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.EGammaVariableCorrectionConfig.ElectronVariableCorrectionToolCfg
def ElectronVariableCorrectionToolCfg(flags, name="ElectronVariableCorrectionTool", **kwargs)
Definition: EGammaVariableCorrectionConfig.py:5
python.EGammaVariableCorrectionConfig.PhotonVariableCorrectionToolCfg
def PhotonVariableCorrectionToolCfg(flags, name="PhotonVariableCorrectionTool", **kwargs)
Definition: EGammaVariableCorrectionConfig.py:15