ATLAS Offline Software
Functions
python.InDetV0FinderConfig Namespace Reference

Functions

def InDetV0FinderToolCfg (flags, name="InDetV0FinderTool", **kwargs)
 
def IDTR2_V0FinderToolCfg (flags, name="IDTR2_V0FinderTool", **kwargs)
 
def V0MainDecoratorCfg (flags, name="V0Decorator", **kwargs)
 
def InDetV0FinderCfg (flags, name="InDetV0Finder", V0ContainerName="V0UnconstrVertices", KshortContainerName="V0KshortVertices", LambdaContainerName="V0LambdaVertices", LambdabarContainerName="V0LambdabarVertices", **kwargs)
 

Function Documentation

◆ IDTR2_V0FinderToolCfg()

def python.InDetV0FinderConfig.IDTR2_V0FinderToolCfg (   flags,
  name = "IDTR2_V0FinderTool",
**  kwargs 
)

Definition at line 85 of file InDetV0FinderConfig.py.

85 def IDTR2_V0FinderToolCfg(flags, name="IDTR2_V0FinderTool", **kwargs):
86  acc = ComponentAccumulator()
87 
88  if "TrackSelectorTool" not in kwargs:
89  from InDetConfig.InDetTrackSelectorToolConfig import (
90  InDetV0VxTrackSelectorLooseCfg)
91  TrackSelectorTool = acc.popToolsAndMerge(
93  acc.addPublicTool(TrackSelectorTool)
94  kwargs.setdefault("TrackSelectorTool", TrackSelectorTool)
95 
96  acc.setPrivateTools(
97  acc.popToolsAndMerge(InDetV0FinderToolCfg(flags, name, **kwargs)))
98 
99  return acc
100 

◆ InDetV0FinderCfg()

def python.InDetV0FinderConfig.InDetV0FinderCfg (   flags,
  name = "InDetV0Finder",
  V0ContainerName = "V0UnconstrVertices",
  KshortContainerName = "V0KshortVertices",
  LambdaContainerName = "V0LambdaVertices",
  LambdabarContainerName = "V0LambdabarVertices",
**  kwargs 
)

Definition at line 115 of file InDetV0FinderConfig.py.

115 def InDetV0FinderCfg(flags, name="InDetV0Finder",
116  V0ContainerName="V0UnconstrVertices",
117  KshortContainerName="V0KshortVertices",
118  LambdaContainerName="V0LambdaVertices",
119  LambdabarContainerName="V0LambdabarVertices",
120  **kwargs):
121  acc = ComponentAccumulator()
122 
123  if "InDetV0FinderToolName" not in kwargs:
124  from InDetConfig.InDetV0FinderConfig import InDetV0FinderToolCfg
125  kwargs.setdefault("InDetV0FinderToolName", acc.popToolsAndMerge(
127  flags,
128  V0ContainerName = V0ContainerName,
129  KshortContainerName = KshortContainerName,
130  LambdaContainerName = LambdaContainerName,
131  LambdabarContainerName = LambdabarContainerName)))
132 
133  if "Decorator" not in kwargs:
134  from InDetConfig.InDetV0FinderConfig import V0MainDecoratorCfg
135  kwargs.setdefault("Decorator", acc.popToolsAndMerge(
137  flags,
138  V0ContainerName = V0ContainerName,
139  KshortContainerName = KshortContainerName,
140  LambdaContainerName = LambdaContainerName,
141  LambdabarContainerName = LambdabarContainerName)))
142 
143  acc.addEventAlgo(CompFactory.InDet.InDetV0Finder(
144  name,
145  V0ContainerName = V0ContainerName,
146  KshortContainerName = KshortContainerName,
147  LambdaContainerName = LambdaContainerName,
148  LambdabarContainerName = LambdabarContainerName,
149  **kwargs))
150  return acc

◆ InDetV0FinderToolCfg()

def python.InDetV0FinderConfig.InDetV0FinderToolCfg (   flags,
  name = "InDetV0FinderTool",
**  kwargs 
)

Definition at line 6 of file InDetV0FinderConfig.py.

6 def InDetV0FinderToolCfg(flags, name="InDetV0FinderTool", **kwargs):
7 
9 
10  if "V0Tools" not in kwargs:
11  from TrkConfig.TrkVertexAnalysisUtilsConfig import V0ToolsCfg
12  kwargs.setdefault("V0Tools", acc.popToolsAndMerge(
13  V0ToolsCfg(flags, name+"_V0Tools")))
14  acc.addPublicTool(kwargs["V0Tools"])
15 
16  if "VertexPointEstimator" not in kwargs:
17  from InDetConfig.InDetConversionFinderToolsConfig import (
18  V0VertexPointEstimatorCfg)
19  kwargs.setdefault("VertexPointEstimator", acc.popToolsAndMerge(
21  acc.addPublicTool(kwargs["VertexPointEstimator"])
22 
23  if "VertexFitterTool" not in kwargs:
24  from TrkConfig.TrkV0FitterConfig import TrkV0VertexFitter_InDetExtrCfg
25  kwargs.setdefault("VertexFitterTool", acc.popToolsAndMerge(
27  acc.addPublicTool(kwargs["VertexFitterTool"])
28 
29  if "Extrapolator" not in kwargs:
30  from TrkConfig.AtlasExtrapolatorConfig import AtlasExtrapolatorCfg
31  kwargs.setdefault("Extrapolator", acc.popToolsAndMerge(
32  AtlasExtrapolatorCfg(flags)))
33  acc.addPublicTool(kwargs["Extrapolator"])
34 
35  if "TrackToVertexTool" not in kwargs:
36  from TrackToVertex.TrackToVertexConfig import InDetTrackToVertexCfg
37  kwargs.setdefault("TrackToVertexTool", acc.popToolsAndMerge(
38  InDetTrackToVertexCfg(flags)))
39  acc.addPublicTool(kwargs["TrackToVertexTool"])
40 
41  if "TrackSelectorTool" not in kwargs:
42  from InDetConfig.InDetTrackSelectorToolConfig import (
43  V0InDetConversionTrackSelectorToolCfg)
44  kwargs.setdefault("TrackSelectorTool", acc.popToolsAndMerge(
46  acc.addPublicTool(kwargs["TrackSelectorTool"])
47 
48  kwargs.setdefault("useV0Fitter", True)
49  kwargs.setdefault("doSimpleV0", False)
50  kwargs.setdefault("useVertexCollection", True)
51 
52  from TrkConfig.TrkVKalVrtFitterConfig import V0VKalVrtFitterCfg
53 
54  if "VKVertexFitterTool" not in kwargs:
55  kwargs.setdefault("VKVertexFitterTool", acc.popToolsAndMerge(
56  V0VKalVrtFitterCfg(flags, "_BPhysVKVFitter")))
57  if "KshortFitterTool" not in kwargs:
58  kwargs.setdefault("KshortFitterTool", acc.popToolsAndMerge(
59  V0VKalVrtFitterCfg(flags, "_BPhysVKKVFitter",
60  InputParticleMasses = [139.57,139.57],
61  MassForConstraint = 497.672)))
62  if "LambdaFitterTool" not in kwargs:
63  kwargs.setdefault("LambdaFitterTool", acc.popToolsAndMerge(
64  V0VKalVrtFitterCfg(flags, "_BPhysVKLFitter",
65  InputParticleMasses = [938.272,139.57],
66  MassForConstraint = 1115.68)))
67  if "LambdabarFitterTool" not in kwargs:
68  kwargs.setdefault("LambdabarFitterTool", acc.popToolsAndMerge(
69  V0VKalVrtFitterCfg(flags, "_BPhysVKLbFitter",
70  InputParticleMasses = [139.57,938.272],
71  MassForConstraint = 1115.68)))
72  if "GammaFitterTool" not in kwargs:
73  kwargs.setdefault("GammaFitterTool", acc.popToolsAndMerge(
74  V0VKalVrtFitterCfg(flags, "_BPhysVKGFitter",
75  Robustness = 6,
76  usePhiCnst = True,
77  useThetaCnst = True,
78  InputParticleMasses = [0.511,0.511])))
79 
80  from AthenaServices.PartPropSvcConfig import PartPropSvcCfg
81  kwargs.setdefault("PartPropSvc", acc.getPrimaryAndMerge(PartPropSvcCfg(flags)).name)
82  acc.setPrivateTools(CompFactory.InDet.InDetV0FinderTool(name, **kwargs))
83  return acc
84 

◆ V0MainDecoratorCfg()

def python.InDetV0FinderConfig.V0MainDecoratorCfg (   flags,
  name = "V0Decorator",
**  kwargs 
)

Definition at line 101 of file InDetV0FinderConfig.py.

101 def V0MainDecoratorCfg(flags, name="V0Decorator", **kwargs):
102  acc = ComponentAccumulator()
103 
104  if "V0Tools" not in kwargs:
105  from TrkConfig.TrkVertexAnalysisUtilsConfig import V0ToolsCfg
106  kwargs.setdefault("V0Tools", acc.popToolsAndMerge(
107  V0ToolsCfg(flags, name+"_V0Tools")))
108 
109  if "masses" not in kwargs or kwargs("masses") == 1:
110  from AthenaServices.PartPropSvcConfig import PartPropSvcCfg
111  kwargs.setdefault("PartPropSvc", acc.getPrimaryAndMerge(PartPropSvcCfg(flags)).name)
112  acc.setPrivateTools(CompFactory.InDet.V0MainDecorator(name, **kwargs))
113  return acc
114 
python.InDetV0FinderConfig.V0MainDecoratorCfg
def V0MainDecoratorCfg(flags, name="V0Decorator", **kwargs)
Definition: InDetV0FinderConfig.py:101
python.TrkV0FitterConfig.TrkV0VertexFitter_InDetExtrCfg
def TrkV0VertexFitter_InDetExtrCfg(flags, name="TrkV0VertexFitter_InDetExtr", **kwargs)
Definition: TrkV0FitterConfig.py:22
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.InDetV0FinderConfig.InDetV0FinderToolCfg
def InDetV0FinderToolCfg(flags, name="InDetV0FinderTool", **kwargs)
Definition: InDetV0FinderConfig.py:6
python.InDetTrackSelectorToolConfig.InDetV0VxTrackSelectorLooseCfg
def InDetV0VxTrackSelectorLooseCfg(flags, name='InDetV0VxTrackSelectorLoose', **kwargs)
Definition: InDetTrackSelectorToolConfig.py:59
CreateMisalignmentITk.kwargs
kwargs
Definition: CreateMisalignmentITk.py:136
python.TrkVertexAnalysisUtilsConfig.V0ToolsCfg
def V0ToolsCfg(flags, name="V0Tools", **kwargs)
Definition: TrkVertexAnalysisUtilsConfig.py:6
python.InDetV0FinderConfig.IDTR2_V0FinderToolCfg
def IDTR2_V0FinderToolCfg(flags, name="IDTR2_V0FinderTool", **kwargs)
Definition: InDetV0FinderConfig.py:85
python.AtlasExtrapolatorConfig.AtlasExtrapolatorCfg
def AtlasExtrapolatorCfg(flags, name='AtlasExtrapolator')
Definition: AtlasExtrapolatorConfig.py:63
python.InDetV0FinderConfig.InDetV0FinderCfg
def InDetV0FinderCfg(flags, name="InDetV0Finder", V0ContainerName="V0UnconstrVertices", KshortContainerName="V0KshortVertices", LambdaContainerName="V0LambdaVertices", LambdabarContainerName="V0LambdabarVertices", **kwargs)
Definition: InDetV0FinderConfig.py:115
python.PartPropSvcConfig.PartPropSvcCfg
def PartPropSvcCfg(flags, **kwargs)
Definition: PartPropSvcConfig.py:6
python.TrkVKalVrtFitterConfig.V0VKalVrtFitterCfg
def V0VKalVrtFitterCfg(flags, name="V0VKalVrtFitter", **kwargs)
Definition: TrkVKalVrtFitterConfig.py:57
TrackToVertexConfig.InDetTrackToVertexCfg
def InDetTrackToVertexCfg(flags, name='InDetTrackToVertex', **kwargs)
Definition: TrackToVertexConfig.py:14
python.InDetTrackSelectorToolConfig.V0InDetConversionTrackSelectorToolCfg
def V0InDetConversionTrackSelectorToolCfg(flags, name='InDetV0VxTrackSelector', **kwargs)
Definition: InDetTrackSelectorToolConfig.py:38
python.InDetConversionFinderToolsConfig.V0VertexPointEstimatorCfg
def V0VertexPointEstimatorCfg(flags, name="InDetV0VertexPointEstimator", **kwargs)
Definition: InDetConversionFinderToolsConfig.py:80