8 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
9 from AthenaConfiguration.ComponentFactory
import CompFactory
14 """Configure the PhotonsDirectionTool"""
16 PhotonsDirectionTool = CompFactory.DerivationFramework.PhotonsDirectionTool
17 acc.addPublicTool(PhotonsDirectionTool(name, **kwargs), primary=
True)
23 """Configure the E-gamma selection tool wrapper"""
25 EGSelectionToolWrapper = CompFactory.DerivationFramework.EGSelectionToolWrapper
26 acc.addPublicTool(EGSelectionToolWrapper(name, **kwargs), primary=
True)
32 """Configure the electron likelihood tool wrapper"""
34 EGElectronLikelihoodToolWrapper = (
35 CompFactory.DerivationFramework.EGElectronLikelihoodToolWrapper
37 acc.addPublicTool(EGElectronLikelihoodToolWrapper(name, **kwargs), primary=
True)
43 """Configure the photon cleaning tool wrapper"""
45 EGPhotonCleaningWrapper = CompFactory.DerivationFramework.EGPhotonCleaningWrapper
46 acc.addPublicTool(EGPhotonCleaningWrapper(name, **kwargs), primary=
True)
52 """Configure the electron ambiguity tool"""
54 EGElectronAmbiguityTool = CompFactory.DerivationFramework.EGElectronAmbiguityTool
55 acc.addPublicTool(EGElectronAmbiguityTool(name, **kwargs), primary=
True)
61 """Configure the background electron classification tool"""
63 BkgElectronClassification = (
64 CompFactory.DerivationFramework.BkgElectronClassification
66 acc.addPublicTool(BkgElectronClassification(name, **kwargs), primary=
True)
72 """Configure the track particle merger tool"""
74 ElectronMerger = CompFactory.DerivationFramework.ElectronMergerTool
75 acc.addPublicTool(ElectronMerger(name, **kwargs), primary=
True)
80 flags, name="PhotonVertexSelectionWrapper", **kwargs):
83 if "PhotonPointingTool" not in kwargs:
84 from PhotonVertexSelection.PhotonVertexSelectionConfig
import (
85 PhotonPointingToolCfg)
86 kwargs.setdefault(
"PhotonPointingTool", acc.popToolsAndMerge(
90 CompFactory.DerivationFramework.PhotonVertexSelectionWrapper(
96 flags, name="PhotonVertexSelectionWrapperKernel", **kwargs):
102 kwargs.setdefault(
"AugmentationTools", augmentationTools)
105 CompFactory.DerivationFramework.DerivationKernel(name, **kwargs))