3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
10 if "V0Tools" not in kwargs:
11 from TrkConfig.TrkVertexAnalysisUtilsConfig
import V0ToolsCfg
12 kwargs.setdefault(
"V0Tools", acc.popToolsAndMerge(
14 acc.addPublicTool(kwargs[
"V0Tools"])
16 if "VertexPointEstimator" not in kwargs:
17 from InDetConfig.InDetConversionFinderToolsConfig
import (
18 V0VertexPointEstimatorCfg)
19 kwargs.setdefault(
"VertexPointEstimator", acc.popToolsAndMerge(
21 acc.addPublicTool(kwargs[
"VertexPointEstimator"])
23 if "VertexFitterTool" not in kwargs:
24 from TrkConfig.TrkV0FitterConfig
import TrkV0VertexFitter_InDetExtrCfg
25 kwargs.setdefault(
"VertexFitterTool", acc.popToolsAndMerge(
27 acc.addPublicTool(kwargs[
"VertexFitterTool"])
29 if "Extrapolator" not in kwargs:
30 from TrkConfig.AtlasExtrapolatorConfig
import AtlasExtrapolatorCfg
31 kwargs.setdefault(
"Extrapolator", acc.popToolsAndMerge(
33 acc.addPublicTool(kwargs[
"Extrapolator"])
35 if "TrackToVertexTool" not in kwargs:
36 from TrackToVertex.TrackToVertexConfig
import InDetTrackToVertexCfg
37 kwargs.setdefault(
"TrackToVertexTool", acc.popToolsAndMerge(
39 acc.addPublicTool(kwargs[
"TrackToVertexTool"])
41 if "TrackSelectorTool" not in kwargs:
42 from InDetConfig.InDetTrackSelectorToolConfig
import (
43 V0InDetConversionTrackSelectorToolCfg)
44 kwargs.setdefault(
"TrackSelectorTool", acc.popToolsAndMerge(
46 acc.addPublicTool(kwargs[
"TrackSelectorTool"])
48 kwargs.setdefault(
"useV0Fitter",
True)
49 kwargs.setdefault(
"doSimpleV0",
False)
50 kwargs.setdefault(
"useVertexCollection",
True)
52 from TrkConfig.TrkVKalVrtFitterConfig
import V0VKalVrtFitterCfg
54 if "VKVertexFitterTool" not in kwargs:
55 kwargs.setdefault(
"VKVertexFitterTool", acc.popToolsAndMerge(
57 if "KshortFitterTool" not in kwargs:
58 kwargs.setdefault(
"KshortFitterTool", acc.popToolsAndMerge(
60 InputParticleMasses = [139.57,139.57],
61 MassForConstraint = 497.672)))
62 if "LambdaFitterTool" not in kwargs:
63 kwargs.setdefault(
"LambdaFitterTool", acc.popToolsAndMerge(
65 InputParticleMasses = [938.272,139.57],
66 MassForConstraint = 1115.68)))
67 if "LambdabarFitterTool" not in kwargs:
68 kwargs.setdefault(
"LambdabarFitterTool", acc.popToolsAndMerge(
70 InputParticleMasses = [139.57,938.272],
71 MassForConstraint = 1115.68)))
72 if "GammaFitterTool" not in kwargs:
73 kwargs.setdefault(
"GammaFitterTool", acc.popToolsAndMerge(
78 InputParticleMasses = [0.511,0.511])))
80 from AthenaServices.PartPropSvcConfig
import PartPropSvcCfg
81 kwargs.setdefault(
"PartPropSvc", acc.getPrimaryAndMerge(
PartPropSvcCfg(flags)).name)
82 acc.setPrivateTools(CompFactory.InDet.InDetV0FinderTool(name, **kwargs))
88 if "TrackSelectorTool" not in kwargs:
89 from InDetConfig.InDetTrackSelectorToolConfig
import (
90 InDetV0VxTrackSelectorLooseCfg)
91 TrackSelectorTool = acc.popToolsAndMerge(
93 acc.addPublicTool(TrackSelectorTool)
94 kwargs.setdefault(
"TrackSelectorTool", TrackSelectorTool)
104 if "V0Tools" not in kwargs:
105 from TrkConfig.TrkVertexAnalysisUtilsConfig
import V0ToolsCfg
106 kwargs.setdefault(
"V0Tools", acc.popToolsAndMerge(
109 if "masses" not in kwargs
or kwargs(
"masses") == 1:
110 from AthenaServices.PartPropSvcConfig
import PartPropSvcCfg
111 kwargs.setdefault(
"PartPropSvc", acc.getPrimaryAndMerge(
PartPropSvcCfg(flags)).name)
112 acc.setPrivateTools(CompFactory.InDet.V0MainDecorator(name, **kwargs))
116 V0ContainerName="V0UnconstrVertices",
117 KshortContainerName="V0KshortVertices",
118 LambdaContainerName="V0LambdaVertices",
119 LambdabarContainerName="V0LambdabarVertices",
123 if "InDetV0FinderToolName" not in kwargs:
124 from InDetConfig.InDetV0FinderConfig
import InDetV0FinderToolCfg
125 kwargs.setdefault(
"InDetV0FinderToolName", acc.popToolsAndMerge(
128 V0ContainerName = V0ContainerName,
129 KshortContainerName = KshortContainerName,
130 LambdaContainerName = LambdaContainerName,
131 LambdabarContainerName = LambdabarContainerName)))
133 if "Decorator" not in kwargs:
134 from InDetConfig.InDetV0FinderConfig
import V0MainDecoratorCfg
135 kwargs.setdefault(
"Decorator", acc.popToolsAndMerge(
138 V0ContainerName = V0ContainerName,
139 KshortContainerName = KshortContainerName,
140 LambdaContainerName = LambdaContainerName,
141 LambdabarContainerName = LambdabarContainerName)))
143 acc.addEventAlgo(CompFactory.InDet.InDetV0Finder(
145 V0ContainerName = V0ContainerName,
146 KshortContainerName = KshortContainerName,
147 LambdaContainerName = LambdaContainerName,
148 LambdabarContainerName = LambdabarContainerName,