ATLAS Offline Software
NewVrtSecInclusiveAlgConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2 # Author: Vadim Kostyukhin vadim.kostyukhin@cern.ch
3 
4 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5 from AthenaConfiguration.ComponentFactory import CompFactory
6 from AthenaCommon.Constants import INFO
7 
8 def NewVrtSecInclusiveAlgCfg(flags, algname="NVSI_Alg"):
9 
10  acc = ComponentAccumulator()
11  myargs = {}
12  from NewVrtSecInclusiveTool.NewVrtSecInclusiveConfig import SoftBFinderToolCfg
13  myargs["BVertexTool"] = acc.popToolsAndMerge(SoftBFinderToolCfg(flags,FillHist=True))
14  myargs["OutputLevel"] = INFO
15  myargs.setdefault("BVertexContainerName","AllBVertices")
16 
17  NVSI_Alg = CompFactory.Rec.NewVrtSecInclusiveAlg(algname, **myargs)
18  acc.addEventAlgo(NVSI_Alg)
19  return acc
20 
21 def NewVrtSecInclusiveAlgTightCfg(flags, algname="NVSI_Alg_Tight"):
22 
23  acc = ComponentAccumulator()
24  myargs = {}
25  from NewVrtSecInclusiveTool.NewVrtSecInclusiveConfig import SoftBFinderToolCfg
26  myargs["BVertexTool"] = acc.popToolsAndMerge(SoftBFinderToolCfg(flags,FillHist=False,v2tIniBDTCut=-0.3,v2tFinBDTCut=0.8,cosSVPVCut=0.4))
27  myargs["OutputLevel"] = INFO
28  myargs.setdefault("BVertexContainerName","NVSI_SecVrt_Tight")
29 
30  NVSI_Alg = CompFactory.Rec.NewVrtSecInclusiveAlg(algname, **myargs)
31  acc.addEventAlgo(NVSI_Alg)
32  return acc
33 
34 def NewVrtSecInclusiveAlgMediumCfg(flags, algname="NVSI_Alg_Medium"):
35 
36  acc = ComponentAccumulator()
37  myargs = {}
38  from NewVrtSecInclusiveTool.NewVrtSecInclusiveConfig import SoftBFinderToolCfg
39  myargs["BVertexTool"] = acc.popToolsAndMerge(SoftBFinderToolCfg(flags,FillHist=False,v2tIniBDTCut=-0.6,v2tFinBDTCut=0.2,cosSVPVCut=0.5))
40  myargs["OutputLevel"] = INFO
41  myargs.setdefault("BVertexContainerName","NVSI_SecVrt_Medium")
42 
43  NVSI_Alg = CompFactory.Rec.NewVrtSecInclusiveAlg(algname, **myargs)
44  acc.addEventAlgo(NVSI_Alg)
45  return acc
46 
47 def NewVrtSecInclusiveAlgLooseCfg(flags, algname="NVSI_Alg_Loose"):
48 
49  acc = ComponentAccumulator()
50  myargs = {}
51  from NewVrtSecInclusiveTool.NewVrtSecInclusiveConfig import SoftBFinderToolCfg
52  myargs["BVertexTool"] = acc.popToolsAndMerge(SoftBFinderToolCfg(flags,FillHist=False,v2tIniBDTCut=-0.4,v2tFinBDTCut=-0.3,cosSVPVCut=0.4))
53  myargs["OutputLevel"] = INFO
54  myargs.setdefault("BVertexContainerName","NVSI_SecVrt_Loose")
55 
56  NVSI_Alg = CompFactory.Rec.NewVrtSecInclusiveAlg(algname, **myargs)
57  acc.addEventAlgo(NVSI_Alg)
58  return acc
59 
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
NewVrtSecInclusiveAlgConfig.NewVrtSecInclusiveAlgCfg
def NewVrtSecInclusiveAlgCfg(flags, algname="NVSI_Alg")
Definition: NewVrtSecInclusiveAlgConfig.py:8
NewVrtSecInclusiveConfig.SoftBFinderToolCfg
def SoftBFinderToolCfg(flags, name="SoftBFinderTool", **myargs)
Definition: NewVrtSecInclusiveConfig.py:16
NewVrtSecInclusiveAlgConfig.NewVrtSecInclusiveAlgLooseCfg
def NewVrtSecInclusiveAlgLooseCfg(flags, algname="NVSI_Alg_Loose")
Definition: NewVrtSecInclusiveAlgConfig.py:47
NewVrtSecInclusiveAlgConfig.NewVrtSecInclusiveAlgMediumCfg
def NewVrtSecInclusiveAlgMediumCfg(flags, algname="NVSI_Alg_Medium")
Definition: NewVrtSecInclusiveAlgConfig.py:34
NewVrtSecInclusiveAlgConfig.NewVrtSecInclusiveAlgTightCfg
def NewVrtSecInclusiveAlgTightCfg(flags, algname="NVSI_Alg_Tight")
Definition: NewVrtSecInclusiveAlgConfig.py:21
Constants
some useful constants -------------------------------------------------—