3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from BTagging.InDetImprovedJetFitterVxFinderConfig
import InDetImprovedJetFitterVxFinderCfg
6 from InDetConfig.InDetVKalVxInJetToolConfig
import InDetVKalVxInJetToolCfg, MSV_InDetVKalVxInJetToolCfg
9 def JetSecVtxFindingAlgCfg(flags, BTagVxSecVertexInfoName, SVAlgName, JetCollection, PrimaryVertexCollectionName="", SVFinder="", TracksToTag="", **options):
10 """Adds a SecVtxTool instance and registers it.
12 input: name: The tool's name.
13 JetCollection The name of the jet collections.
14 ToolSvc: The ToolSvc instance.
15 options: Python dictionary of options to be passed to the SecVtxTool.
20 if SVFinder ==
'JetFitter':
22 elif SVFinder ==
'JetFitterFlip':
24 elif SVFinder ==
'SV1':
26 elif SVFinder ==
'SV1Flip':
28 elif SVFinder ==
'MSV':
34 options.setdefault(
'SecVtxFinder', secVtxFinder)
35 options.setdefault(
'vxPrimaryCollectionName', PrimaryVertexCollectionName)
36 options[
'JetCollectionName'] = JetCollection
37 options[
'TracksToTag'] = TracksToTag
38 options[
'BTagVxSecVertexInfoName'] = BTagVxSecVertexInfoName
39 options[
'name'] = SVAlgName
42 acc.addEventAlgo(CompFactory.Analysis.JetSecVtxFindingAlg(**options))