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 crack veto cleaning tool"""
54 EGCrackVetoCleaningTool = CompFactory.DerivationFramework.EGCrackVetoCleaningTool
55 acc.addPublicTool(EGCrackVetoCleaningTool(name, **kwargs), primary=
True)
61 """Configure the electron ambiguity tool"""
63 EGElectronAmbiguityTool = CompFactory.DerivationFramework.EGElectronAmbiguityTool
64 acc.addPublicTool(EGElectronAmbiguityTool(name, **kwargs), primary=
True)
70 """Configure the background electron classification tool"""
72 BkgElectronClassification = (
73 CompFactory.DerivationFramework.BkgElectronClassification
75 acc.addPublicTool(BkgElectronClassification(name, **kwargs), primary=
True)
81 """Configure the track particle merger tool"""
83 ElectronMerger = CompFactory.DerivationFramework.ElectronMergerTool
84 acc.addPublicTool(ElectronMerger(name, **kwargs), primary=
True)
89 flags, name="PhotonVertexSelectionWrapper", **kwargs):
92 if "PhotonPointingTool" not in kwargs:
93 from PhotonVertexSelection.PhotonVertexSelectionConfig
import (
94 PhotonPointingToolCfg)
95 kwargs.setdefault(
"PhotonPointingTool", acc.popToolsAndMerge(
99 CompFactory.DerivationFramework.PhotonVertexSelectionWrapper(
105 flags, name="PhotonVertexSelectionWrapperKernel", **kwargs):
108 augmentationTools = [
111 kwargs.setdefault(
"AugmentationTools", augmentationTools)
114 CompFactory.DerivationFramework.DerivationKernel(name, **kwargs))