4 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
5 from AthenaConfiguration.ComponentFactory
import CompFactory
11 kwargs.setdefault(
"MaxPhiVtxTrk",
12 flags.Egamma.PhotonConv.SecVtxPost.MaxPhiVtxTrk)
13 kwargs.setdefault(
"MinRadius",
14 flags.Egamma.PhotonConv.SecVtxPost.MinRadius)
16 kwargs.setdefault(
"MaxChi2Vtx", [50., 50., 50.])
17 kwargs.setdefault(
"MaxInvariantMass", [10000., 10000., 10000.])
18 kwargs.setdefault(
"MinFitMomentum", [0., 0., 0.])
19 kwargs.setdefault(
"MinPt", 0.)
20 kwargs.setdefault(
"MaxdR", -250.)
22 acc.setPrivateTools(CompFactory.InDet.ConversionPostSelector(name, **kwargs))
26 flags, name="SingleTrackConversionTool", **kwargs):
29 kwargs.setdefault(
"MaxBLayerHits",
30 flags.Egamma.PhotonConv.SingleTrk.MaxBLayerHits)
31 kwargs.setdefault(
"MinInitialHitRadius",
32 flags.Egamma.PhotonConv.SingleTrk.MinInitialHitRadius)
33 kwargs.setdefault(
"MinInitialHitRadius_noBlay",
34 flags.Egamma.PhotonConv.SingleTrk.MinInitialHitRadius_noBlay)
35 kwargs.setdefault(
"MinRatioOfHLhits",
36 flags.Egamma.PhotonConv.SingleTrk.MinRatioOfHLhits)
39 CompFactory.InDet.SingleTrackConversionTool(name, **kwargs))
45 kwargs.setdefault(
"MaxDistBetweenTracks",
46 flags.Egamma.PhotonConv.TrkPairSel.MaxDistBetweenTracks)
47 kwargs.setdefault(
"MaxEta",
48 flags.Egamma.PhotonConv.TrkPairSel.MaxEta)
49 kwargs.setdefault(
"MinTrackAngle",
50 flags.Egamma.PhotonConv.TrkPairSel.MinTrackAngle)
53 kwargs.setdefault(
"MaxFirstHitRadius", 500)
54 kwargs.setdefault(
"MaxInitDistance", [10000.0, 10000.0, 10000.0])
56 acc.setPrivateTools(CompFactory.InDet.TrackPairsSelector(name, **kwargs))
62 kwargs.setdefault(
"MinDeltaR", flags.Egamma.PhotonConv.VtxPt.MinDeltaR)
63 kwargs.setdefault(
"MaxDeltaR", flags.Egamma.PhotonConv.VtxPt.MaxDeltaR)
64 kwargs.setdefault(
"MaxPhi", flags.Egamma.PhotonConv.VtxPt.MaxPhi)
66 acc.setPrivateTools(CompFactory.InDet.VertexPointEstimator(name, **kwargs))
70 flags, name="BPHY_VertexPointEstimator", **kwargs):
73 kwargs.setdefault(
"MinDeltaR", [-10000., -10000., -10000.])
74 kwargs.setdefault(
"MaxDeltaR", [ 10000., 10000., 10000.])
75 kwargs.setdefault(
"MaxPhi", [ 10000., 10000., 10000.])
77 acc.setPrivateTools(CompFactory.InDet.VertexPointEstimator(name, **kwargs))
81 flags, name="InDetV0VertexPointEstimator", **kwargs):
82 kwargs.setdefault(
"MaxTrkXYDiffAtVtx", [ 20., 20., 20.])
83 kwargs.setdefault(
"MaxTrkZDiffAtVtx", [ 100., 100., 100.])
84 kwargs.setdefault(
"MaxTrkXYValue", [ 400., 400., 400.])
85 kwargs.setdefault(
"MinArcLength", [-800., -800., -800.])
86 kwargs.setdefault(
"MaxArcLength", [ 800., 800., 800.])
90 """Configures InDet::InDetConversionFinderTools """
94 if "PostSelector" not in kwargs:
95 kwargs.setdefault(
"PostSelector", acc.popToolsAndMerge(
98 if "SingleTrackConversionTool" not in kwargs:
99 kwargs.setdefault(
"SingleTrackConversionTool", acc.popToolsAndMerge(
102 if "TrackPairsSelector" not in kwargs:
103 kwargs.setdefault(
"TrackPairsSelector", acc.popToolsAndMerge(
106 if "VertexPointEstimator" not in kwargs:
107 kwargs.setdefault(
"VertexPointEstimator", acc.popToolsAndMerge(
110 if "TrackSelectorTool" not in kwargs:
111 from InDetConfig.InDetTrackSelectorToolConfig
import (
112 InDetConversionTrackSelectorToolCfg)
113 kwargs.setdefault(
"TrackSelectorTool", acc.popToolsAndMerge(
116 if "VertexFitterTool" not in kwargs:
117 from TrkConfig.TrkVKalVrtFitterConfig
import (
118 Conversion_TrkVKalVrtFitterCfg)
119 kwargs.setdefault(
"VertexFitterTool", acc.popToolsAndMerge(
122 kwargs.setdefault(
"IsConversion",
True)
124 kwargs.setdefault(
"MaxDistVtxHit",
125 flags.Egamma.PhotonConv.Finder.MaxDistVtxHit)
126 kwargs.setdefault(
"MinDistVtxHit",
127 flags.Egamma.PhotonConv.Finder.MinDistVtxHit)
128 kwargs.setdefault(
"MinFlightAngle",
129 flags.Egamma.PhotonConv.Finder.MinFlightAngle)
130 kwargs.setdefault(
"MinInitVtxR",
131 flags.Egamma.PhotonConv.Finder.MinInitVtxR)
132 kwargs.setdefault(
"RemoveTrtTracks",
133 flags.Egamma.PhotonConv.Finder.RemoveTrtTracks)
136 CompFactory.InDet.InDetConversionFinderTools(name, **kwargs))