ATLAS Offline Software
Loading...
Searching...
No Matches
NewVrtSecInclusiveAlgConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
2# Author: Vadim Kostyukhin vadim.kostyukhin@cern.ch
3
4from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5from AthenaConfiguration.ComponentFactory import CompFactory
6from AthenaCommon.Constants import INFO
7
8def NewVrtSecInclusiveAlgCfg(flags, algname="NVSI_Alg", **kwargs):
9
10 acc = ComponentAccumulator()
11 if "BVertexTool" not in kwargs:
12 from NewVrtSecInclusiveTool.NewVrtSecInclusiveConfig import SoftBFinderToolCfg
13 kwargs.setdefault("BVertexTool", acc.popToolsAndMerge(SoftBFinderToolCfg(flags,FillHist=True)))
14
15 kwargs.setdefault("BVertexContainerName","AllBVertices")
16
17 acc.addEventAlgo(CompFactory.Rec.NewVrtSecInclusiveAlg(algname, **kwargs))
18 return acc
19
20def NewVrtSecInclusiveAlgLLPCfg(flags, algname="NVSI", AugmentingVersionString="", **kwargs):
21
22 acc = ComponentAccumulator()
23 if "BVertexTool" not in kwargs:
24 from NewVrtSecInclusiveTool.NewVrtSecInclusiveConfig import DVFinderToolCfg
25 kwargs.setdefault("BVertexTool", acc.popToolsAndMerge(DVFinderToolCfg(flags,FillHist=False,AugmentingVersionString=AugmentingVersionString)))
26
27 kwargs.setdefault("BVertexContainerName","SecondaryVertices_"+algname)
28
29 acc.addEventAlgo(CompFactory.Rec.NewVrtSecInclusiveAlg(algname, **kwargs))
30 return acc
31
32def NewVrtSecInclusiveAlgTightCfg(flags, algname="NVSI_Alg_Tight"):
33
34 acc = ComponentAccumulator()
35 myargs = {}
36 from NewVrtSecInclusiveTool.NewVrtSecInclusiveConfig import SoftBFinderToolCfg
37 myargs["BVertexTool"] = acc.popToolsAndMerge(SoftBFinderToolCfg(flags,FillHist=False,v2tIniBDTCut=-0.3,v2tFinBDTCut=0.8,cosSVPVCut=0.4,AugmentingVersionString='_SoftBTight'))
38 myargs["OutputLevel"] = INFO
39 myargs.setdefault("BVertexContainerName","NVSI_SecVrt_Tight")
40
41 NVSI_Alg = CompFactory.Rec.NewVrtSecInclusiveAlg(algname, **myargs)
42 acc.addEventAlgo(NVSI_Alg)
43 return acc
44
45def NewVrtSecInclusiveAlgMediumCfg(flags, algname="NVSI_Alg_Medium"):
46
47 acc = ComponentAccumulator()
48 myargs = {}
49 from NewVrtSecInclusiveTool.NewVrtSecInclusiveConfig import SoftBFinderToolCfg
50 myargs["BVertexTool"] = acc.popToolsAndMerge(SoftBFinderToolCfg(flags,FillHist=False,v2tIniBDTCut=-0.6,v2tFinBDTCut=0.2,cosSVPVCut=0.5,AugmentingVersionString='_SoftBMedium'))
51 myargs["OutputLevel"] = INFO
52 myargs.setdefault("BVertexContainerName","NVSI_SecVrt_Medium")
53
54 NVSI_Alg = CompFactory.Rec.NewVrtSecInclusiveAlg(algname, **myargs)
55 acc.addEventAlgo(NVSI_Alg)
56 return acc
57
58def NewVrtSecInclusiveAlgLooseCfg(flags, algname="NVSI_Alg_Loose"):
59
60 acc = ComponentAccumulator()
61 myargs = {}
62 from NewVrtSecInclusiveTool.NewVrtSecInclusiveConfig import SoftBFinderToolCfg
63 myargs["BVertexTool"] = acc.popToolsAndMerge(SoftBFinderToolCfg(flags,FillHist=False,v2tIniBDTCut=-0.4,v2tFinBDTCut=-0.3,cosSVPVCut=0.4,AugmentingVersionString='_SoftBLoose'))
64 myargs["OutputLevel"] = INFO
65 myargs.setdefault("BVertexContainerName","NVSI_SecVrt_Loose")
66
67 NVSI_Alg = CompFactory.Rec.NewVrtSecInclusiveAlg(algname, **myargs)
68 acc.addEventAlgo(NVSI_Alg)
69 return acc
70
NewVrtSecInclusiveAlgTightCfg(flags, algname="NVSI_Alg_Tight")
NewVrtSecInclusiveAlgCfg(flags, algname="NVSI_Alg", **kwargs)
NewVrtSecInclusiveAlgLLPCfg(flags, algname="NVSI", AugmentingVersionString="", **kwargs)
NewVrtSecInclusiveAlgLooseCfg(flags, algname="NVSI_Alg_Loose")
NewVrtSecInclusiveAlgMediumCfg(flags, algname="NVSI_Alg_Medium")