Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
V0ToolConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
3 from AthenaConfiguration.ComponentFactory import CompFactory
4 
5 def BPHY_InDetV0FinderToolCfg(flags, derivation="",
6  V0ContainerName="",
7  KshortContainerName="",
8  LambdaContainerName="",
9  LambdabarContainerName="",
10  TrackParticleCollection="InDetTrackParticles",
11  RelinkTracks=[],
12  **kwargs):
13 
14  from InDetConfig.InDetV0FinderConfig import InDetV0FinderToolCfg
15  return InDetV0FinderToolCfg(
16  flags, name = derivation + "_InDetV0FinderTool",
17  TrackParticleCollection = TrackParticleCollection,
18  V0ContainerName = V0ContainerName,
19  KshortContainerName = KshortContainerName,
20  LambdaContainerName = LambdaContainerName,
21  LambdabarContainerName = LambdabarContainerName,
22  RelinkTracks = RelinkTracks,
23  **kwargs)
24 
25 def BPHY_V0MainDecoratorCfg(flags, derivation="",
26  V0ContainerName="",
27  KshortContainerName="",
28  LambdaContainerName="",
29  LambdabarContainerName="",
30  **kwargs):
31  acc = ComponentAccumulator()
32 
33  if "V0Tools" not in kwargs:
34  from DerivationFrameworkBPhys.commonBPHYMethodsCfg import BPHY_V0ToolCfg
35  kwargs.setdefault("V0Tools", acc.popToolsAndMerge(
36  BPHY_V0ToolCfg(flags, derivation)))
37 
38  from InDetConfig.InDetV0FinderConfig import V0MainDecoratorCfg
39  acc.setPrivateTools(acc.popToolsAndMerge(V0MainDecoratorCfg(
40  flags, name = derivation + "V0Decorator",
41  V0ContainerName = V0ContainerName,
42  KshortContainerName = KshortContainerName,
43  LambdaContainerName = LambdaContainerName,
44  LambdabarContainerName = LambdabarContainerName,
45  **kwargs)))
46  return acc
47 
48 def BPHY_Reco_V0FinderCfg(flags, derivation="", suffix="",
49  V0ContainerName="",
50  KshortContainerName="",
51  LambdaContainerName="",
52  LambdabarContainerName="",
53  CheckVertexContainers=[],
54  **kwargs):
55  acc = ComponentAccumulator()
56 
57  if "V0FinderTool" not in kwargs:
58  kwargs.setdefault("V0FinderTool", acc.popToolsAndMerge(
60  flags, derivation,
61  V0ContainerName = V0ContainerName,
62  KshortContainerName = KshortContainerName,
63  LambdaContainerName = LambdaContainerName,
64  LambdabarContainerName = LambdabarContainerName)))
65 
66  if "Decorator" not in kwargs:
67  kwargs.setdefault("Decorator", acc.popToolsAndMerge(
69  flags, derivation,
70  V0ContainerName = V0ContainerName,
71  KshortContainerName = KshortContainerName,
72  LambdaContainerName = LambdaContainerName,
73  LambdabarContainerName = LambdabarContainerName)))
74 
75  acc.setPrivateTools(CompFactory.DerivationFramework.Reco_V0Finder(
76  name = derivation + "_Reco_V0Finder" + suffix,
77  V0ContainerName = V0ContainerName,
78  KshortContainerName = KshortContainerName,
79  LambdaContainerName = LambdaContainerName,
80  LambdabarContainerName = LambdabarContainerName,
81  CheckVertexContainers = CheckVertexContainers,
82  **kwargs))
83  return acc
python.InDetV0FinderConfig.V0MainDecoratorCfg
def V0MainDecoratorCfg(flags, name="V0Decorator", **kwargs)
Definition: InDetV0FinderConfig.py:101
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.InDetV0FinderConfig.InDetV0FinderToolCfg
def InDetV0FinderToolCfg(flags, name="InDetV0FinderTool", **kwargs)
Definition: InDetV0FinderConfig.py:6
V0ToolConfig.BPHY_Reco_V0FinderCfg
def BPHY_Reco_V0FinderCfg(flags, derivation="", suffix="", V0ContainerName="", KshortContainerName="", LambdaContainerName="", LambdabarContainerName="", CheckVertexContainers=[], **kwargs)
Definition: V0ToolConfig.py:48
V0ToolConfig.BPHY_V0MainDecoratorCfg
def BPHY_V0MainDecoratorCfg(flags, derivation="", V0ContainerName="", KshortContainerName="", LambdaContainerName="", LambdabarContainerName="", **kwargs)
Definition: V0ToolConfig.py:25
commonBPHYMethodsCfg.BPHY_V0ToolCfg
def BPHY_V0ToolCfg(flags, BPHYDerivationName)
Definition: commonBPHYMethodsCfg.py:11
V0ToolConfig.BPHY_InDetV0FinderToolCfg
def BPHY_InDetV0FinderToolCfg(flags, derivation="", V0ContainerName="", KshortContainerName="", LambdaContainerName="", LambdabarContainerName="", TrackParticleCollection="InDetTrackParticles", RelinkTracks=[], **kwargs)
Definition: V0ToolConfig.py:5