ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
InDetVKalVxInJetToolConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
2 # Configuration of InDetVKalVxInJetTool package
3 
4 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5 from AthenaConfiguration.ComponentFactory import CompFactory
6 from AthenaConfiguration.Enums import LHCPeriod
7 
8 def TCTDecorCheckInToolCfg(flags, name="TCTDecorCheckInTool", **kwargs):
10 
11  kwargs.setdefault("JetContainer", "AntiKt4EMPFlowJets")
12  kwargs.setdefault("TrackClassificationTool",acc.popToolsAndMerge(
13  InDetTrkInJetTypeCfg(flags, JetCollection=kwargs["JetContainer"])))
14 
15  acc.addEventAlgo(CompFactory.TCTDecorCheckInTool(name, **kwargs))
16  return acc
17 
18 def InDetTrkInJetTypeCfg(flags, name="TrkInJetType", **kwargs):
19  acc = ComponentAccumulator()
20  kwargs.setdefault("trkSctHits", 4 if flags.GeoModel.Run <= LHCPeriod.Run3 else -1)
21  kwargs.setdefault("useFivePtJetBinVersion", flags.BTagging.TrkClassFiveBinMode)
22 
23  if "VertexFitterTool" not in kwargs:
24  from TrkConfig.TrkVKalVrtFitterConfig import TrkVKalVrtFitterCfg
25  kwargs.setdefault("VertexFitterTool", acc.popToolsAndMerge(
26  TrkVKalVrtFitterCfg(flags,"VKalVrtFitter")))
27 
28  acc.setPrivateTools(CompFactory.InDet.InDetTrkInJetType(name, **kwargs))
29  return acc
30 
31 def InDetVKalVxInJetToolCfg(flags, name="InDetVKalVxInJetTool", **kwargs):
32  acc = ComponentAccumulator()
33 
34  from TrkConfig.TrkVKalVrtFitterConfig import BTAG_TrkVKalVrtFitterCfg
35  VertexFitter = acc.popToolsAndMerge(BTAG_TrkVKalVrtFitterCfg(flags,"VKalVrtFitter"))
36 
37  if "TrackClassTool" not in kwargs:
38  kwargs.setdefault("TrackClassTool", acc.popToolsAndMerge(
39  InDetTrkInJetTypeCfg(flags,VertexFitterTool=VertexFitter)))
40 
41  kwargs.setdefault("ExistIBL", flags.GeoModel.Run in [LHCPeriod.Run2, LHCPeriod.Run3])
42  kwargs.setdefault("getNegativeTag", "Flip" in name)
43  kwargs.setdefault("UseFrozenVersion", True)
44  kwargs.setdefault("VertexFitterTool", VertexFitter)
45 
46  if flags.GeoModel.Run >= LHCPeriod.Run4:
47  from InDetConfig.InDetEtaDependentCutsConfig import IDEtaDependentCuts_SV1_SvcCfg
48  acc.merge(IDEtaDependentCuts_SV1_SvcCfg(flags, name="IDEtaDepCutsSvc_" + name))
49  kwargs.setdefault("InDetEtaDependentCutsSvc", acc.getService("IDEtaDepCutsSvc_" + name))
50  kwargs.setdefault("useVertexCleaningPix", False) # Would use hardcoded InDet Pixel geometry
51  kwargs.setdefault("useITkMaterialRejection", True)
52 
53  acc.setPrivateTools(CompFactory.InDet.InDetVKalVxInJetTool(name,**kwargs))
54  return acc
55 
56 def MSV_InDetVKalVxInJetToolCfg(flags, name="IDVKalMultiVxInJet", **kwargs):
57  kwargs.setdefault("getNegativeTail", False)
58  kwargs.setdefault("ConeForTag", 1.0)
59  kwargs.setdefault("MultiVertex", True)
60  return InDetVKalVxInJetToolCfg(flags, name, **kwargs)
61 
62 def InDetVKalVxInHiPtJetToolCfg(flags, name="InDetVKalVxInHiPtJetTool", **kwargs):
63  kwargs.setdefault("CutSharedHits", 0)
64  kwargs.setdefault("Sel2VrtChi2Cut", 4.)
65  kwargs.setdefault("CutBVrtScore", 0.002)
66  return InDetVKalVxInJetToolCfg(flags, name, **kwargs)
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.InDetVKalVxInJetToolConfig.InDetVKalVxInJetToolCfg
def InDetVKalVxInJetToolCfg(flags, name="InDetVKalVxInJetTool", **kwargs)
Definition: InDetVKalVxInJetToolConfig.py:31
python.InDetVKalVxInJetToolConfig.TCTDecorCheckInToolCfg
def TCTDecorCheckInToolCfg(flags, name="TCTDecorCheckInTool", **kwargs)
Definition: InDetVKalVxInJetToolConfig.py:8
python.InDetVKalVxInJetToolConfig.InDetTrkInJetTypeCfg
def InDetTrkInJetTypeCfg(flags, name="TrkInJetType", **kwargs)
Definition: InDetVKalVxInJetToolConfig.py:18
python.TrkVKalVrtFitterConfig.TrkVKalVrtFitterCfg
def TrkVKalVrtFitterCfg(flags, name="TrkVKalVrtFitter", **kwargs)
Definition: TrkVKalVrtFitterConfig.py:7
python.InDetEtaDependentCutsConfig.IDEtaDependentCuts_SV1_SvcCfg
def IDEtaDependentCuts_SV1_SvcCfg(flags, name="IDEtaDepCutsSvc_SV1", **kwargs)
Definition: InDetEtaDependentCutsConfig.py:73
python.InDetVKalVxInJetToolConfig.InDetVKalVxInHiPtJetToolCfg
def InDetVKalVxInHiPtJetToolCfg(flags, name="InDetVKalVxInHiPtJetTool", **kwargs)
Definition: InDetVKalVxInJetToolConfig.py:62
python.InDetVKalVxInJetToolConfig.MSV_InDetVKalVxInJetToolCfg
def MSV_InDetVKalVxInJetToolCfg(flags, name="IDVKalMultiVxInJet", **kwargs)
Definition: InDetVKalVxInJetToolConfig.py:56
python.TrkVKalVrtFitterConfig.BTAG_TrkVKalVrtFitterCfg
def BTAG_TrkVKalVrtFitterCfg(flags, name="BTAG_TrkVKalVrtFitter", **kwargs)
Definition: TrkVKalVrtFitterConfig.py:65