ATLAS Offline Software
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 
13  from InDetConfig.InDetV0FinderConfig import InDetV0FinderToolCfg
14  return InDetV0FinderToolCfg(
15  flags, name = derivation + "_InDetV0FinderTool",
16  TrackParticleCollection = TrackParticleCollection,
17  V0ContainerName = V0ContainerName,
18  KshortContainerName = KshortContainerName,
19  LambdaContainerName = LambdaContainerName,
20  LambdabarContainerName = LambdabarContainerName,
21  RelinkTracks = RelinkTracks)
22 
23 def BPHY_V0MainDecoratorCfg(flags, derivation="",
24  V0ContainerName="",
25  KshortContainerName="",
26  LambdaContainerName="",
27  LambdabarContainerName="",
28  **kwargs):
29  acc = ComponentAccumulator()
30 
31  if "V0Tools" not in kwargs:
32  from DerivationFrameworkBPhys.commonBPHYMethodsCfg import BPHY_V0ToolCfg
33  kwargs.setdefault("V0Tools", acc.popToolsAndMerge(
34  BPHY_V0ToolCfg(flags, derivation)))
35 
36  from InDetConfig.InDetV0FinderConfig import V0MainDecoratorCfg
37  acc.setPrivateTools(acc.popToolsAndMerge(V0MainDecoratorCfg(
38  flags, name = derivation + "V0Decorator",
39  V0ContainerName = V0ContainerName,
40  KshortContainerName = KshortContainerName,
41  LambdaContainerName = LambdaContainerName,
42  LambdabarContainerName = LambdabarContainerName,
43  **kwargs)))
44  return acc
45 
46 def BPHY_Reco_V0FinderCfg(flags, derivation="", suffix="",
47  V0ContainerName="",
48  KshortContainerName="",
49  LambdaContainerName="",
50  LambdabarContainerName="",
51  CheckVertexContainers=[],
52  **kwargs):
53  acc = ComponentAccumulator()
54 
55  if "V0FinderTool" not in kwargs:
56  kwargs.setdefault("V0FinderTool", acc.popToolsAndMerge(
58  flags, derivation,
59  V0ContainerName = V0ContainerName,
60  KshortContainerName = KshortContainerName,
61  LambdaContainerName = LambdaContainerName,
62  LambdabarContainerName = LambdabarContainerName)))
63 
64  if "Decorator" not in kwargs:
65  kwargs.setdefault("Decorator", acc.popToolsAndMerge(
67  flags, derivation,
68  V0ContainerName = V0ContainerName,
69  KshortContainerName = KshortContainerName,
70  LambdaContainerName = LambdaContainerName,
71  LambdabarContainerName = LambdabarContainerName)))
72 
73  acc.setPrivateTools(CompFactory.DerivationFramework.Reco_V0Finder(
74  name = derivation + "_Reco_V0Finder" + suffix,
75  V0ContainerName = V0ContainerName,
76  KshortContainerName = KshortContainerName,
77  LambdaContainerName = LambdaContainerName,
78  LambdabarContainerName = LambdabarContainerName,
79  CheckVertexContainers = CheckVertexContainers,
80  **kwargs))
81  return acc
python.InDetV0FinderConfig.V0MainDecoratorCfg
def V0MainDecoratorCfg(flags, name="V0Decorator", **kwargs)
Definition: InDetV0FinderConfig.py:99
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:46
V0ToolConfig.BPHY_V0MainDecoratorCfg
def BPHY_V0MainDecoratorCfg(flags, derivation="", V0ContainerName="", KshortContainerName="", LambdaContainerName="", LambdabarContainerName="", **kwargs)
Definition: V0ToolConfig.py:23
V0ToolConfig.BPHY_InDetV0FinderToolCfg
def BPHY_InDetV0FinderToolCfg(flags, derivation="", V0ContainerName="", KshortContainerName="", LambdaContainerName="", LambdabarContainerName="", TrackParticleCollection="InDetTrackParticles", RelinkTracks=[])
Definition: V0ToolConfig.py:5
commonBPHYMethodsCfg.BPHY_V0ToolCfg
def BPHY_V0ToolCfg(flags, BPHYDerivationName)
Definition: commonBPHYMethodsCfg.py:11