3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
8 """ PV refitting tool """
11 if "TrackToVertexIPEstimator" not in kwargs:
12 from TrkConfig.TrkVertexFitterUtilsConfig
import (
13 TrackToVertexIPEstimatorCfg)
14 kwargs.setdefault(
"TrackToVertexIPEstimator", acc.popToolsAndMerge(
17 acc.setPrivateTools(CompFactory.Analysis.PrimaryVertexRefitter(**kwargs))
21 flags, name="HIGG1D1_ZeeVertexRefitterTool", **kwargs):
22 """ PV refitting after removing Z->ee tracks, for vertex studies """
27 if "PrimaryVertexRefitterTool" not in kwargs:
28 kwargs.setdefault(
"PrimaryVertexRefitterTool", acc.popToolsAndMerge(
31 kwargs.setdefault(
"ObjectRequirements", (
32 "(Electrons.DFCommonElectronsLHMedium) && (Electrons.pt > 19.*GeV)"))
33 kwargs.setdefault(
"LowMassCut", 50*Units.GeV)
34 kwargs.setdefault(
"RefittedPVContainerName",
"ZeeRefittedPrimaryVertices")
35 kwargs.setdefault(
"MCSamples", [361106, 601189])
38 CompFactory.DerivationFramework.ZeeVertexRefittingTool(name, **kwargs))
42 """ PV refitting after removing Z->ee tracks, for vertex studies """
49 ZeeVertexRefittingTool = acc.popToolsAndMerge(
51 acc.addPublicTool(ZeeVertexRefittingTool)
52 acc.addEventAlgo(CompFactory.DerivationFramework.CommonAugmentation(
53 name, AugmentationTools=[ZeeVertexRefittingTool]))
58 if "PhotonVertexSelectionTool" not in kwargs:
59 from PhotonVertexSelection.PhotonVertexSelectionConfig
import (
60 PhotonVertexSelectionToolCfg)
61 kwargs.setdefault(
"PhotonVertexSelectionTool", acc.popToolsAndMerge(
64 CompFactory.DerivationFramework.DiphotonVertexDecorator(**kwargs))
68 """ Diphoton vertex decoration tool """
74 DiphotonVertexDecorator = acc.popToolsAndMerge(
76 acc.addPublicTool(DiphotonVertexDecorator)
77 acc.addEventAlgo(CompFactory.DerivationFramework.CommonAugmentation(
78 name,AugmentationTools=[DiphotonVertexDecorator]))
82 from DerivationFrameworkEGamma.EGammaToolsConfig
import (
83 PhotonVertexSelectionWrapperKernelCfg)