ATLAS Offline Software
Loading...
Searching...
No Matches
EGammaVariableCorrectionConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
3from AthenaConfiguration.ComponentFactory import CompFactory
4
6 flags, name="ElectronVariableCorrectionTool", **kwargs):
7 """Configure the e/gamma variable correction tool"""
8 acc = ComponentAccumulator()
9 # Can ultimately be configured differently between Run 2 and Run 3 configs
10 kwargs.setdefault("ConfigFile", "EGammaVariableCorrection/TUNE27/ElVariableNominalCorrection.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
ElectronVariableCorrectionToolCfg(flags, name="ElectronVariableCorrectionTool", **kwargs)
PhotonVariableCorrectionToolCfg(flags, name="PhotonVariableCorrectionTool", **kwargs)