ATLAS Offline Software
Loading...
Searching...
No Matches
V0ToolConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
3from AthenaConfiguration.ComponentFactory import CompFactory
4
5def 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
25def 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
48def 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
BPHY_Reco_V0FinderCfg(flags, derivation="", suffix="", V0ContainerName="", KshortContainerName="", LambdaContainerName="", LambdabarContainerName="", CheckVertexContainers=[], **kwargs)
BPHY_V0MainDecoratorCfg(flags, derivation="", V0ContainerName="", KshortContainerName="", LambdaContainerName="", LambdabarContainerName="", **kwargs)
BPHY_InDetV0FinderToolCfg(flags, derivation="", V0ContainerName="", KshortContainerName="", LambdaContainerName="", LambdabarContainerName="", TrackParticleCollection="InDetTrackParticles", RelinkTracks=[], **kwargs)