3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from JetTagTools.JetFitterVariablesFactoryConfig
import JetFitterVariablesFactoryCfg
8 def BTagLightSecVtxToolCfg(flags, Name, JetCollection, VxSecVertexInfoNameList, secVtxFinderxAODBaseNameList, secVtxFinderTrackNameList, PrimaryVertexCollectionName="", TimeStamp = "", **options):
9 """Adds a SecVtxTool instance and registers it.
11 input: name: The tool's name.
12 JetCollection The name of the jet collections.
13 ToolSvc: The ToolSvc instance.
14 options: Python dictionary of options to be passed to the SecVtxTool.
16 If outputObjs is set, then it is filled with objects written to SG."""
19 OutputFilesJFVxname =
"JFVtx"
20 OutputFilesJFVxFlipname =
"JFVtxFlip"
21 OutputFilesSVname =
"SecVtx"
22 OutputFilesSVFlipname =
'SecVtxFlip'
24 TimeStamp =
'_' + TimeStamp
36 options.setdefault(
'SecVtxFinderTrackNameList', secVtxFinderTrackNameList)
37 options.setdefault(
'SecVtxFinderxAODBaseNameList', secVtxFinderxAODBaseNameList)
38 options[
'BTagVxSecVertexInfoNames'] = VxSecVertexInfoNameList
39 options.setdefault(
'vxPrimaryCollectionName', PrimaryVertexCollectionName)
40 options.setdefault(
'JetFitterVariableFactory', jetFitterVF)
41 options[
'JetSecVtxLinkName'] = JetCollection +
'.' + OutputFilesSVname
42 options[
'JetJFVtxLinkName'] = JetCollection +
'.' + OutputFilesJFVxname
44 if flags.BTagging.RunFlipTaggers
is True:
45 options[
'JetJFFlipVtxLinkName'] = JetCollection +
'.' + OutputFilesJFVxFlipname
46 options[
'JetSecVtxFlipLinkName'] = JetCollection +
'.' + OutputFilesSVFlipname
49 options[
'name'] = Name+TimeStamp
51 tool = CompFactory.Analysis.BTagLightSecVertexing(**options)
53 acc.setPrivateTools(tool)