ATLAS Offline Software
Loading...
Searching...
No Matches
SiZvertexToolConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
2# Configuration of SiZvertexTool_xk package
3from AthenaConfiguration.ComponentFactory import CompFactory
4from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
5
6def SiZvertexMaker_xkCfg(flags, name="InDetZvertexMaker", **kwargs) :
7 acc = ComponentAccumulator()
8
9 kwargs.setdefault("Zmax", flags.Tracking.ActiveConfig.maxZImpact)
10 kwargs.setdefault("Zmin", -flags.Tracking.ActiveConfig.maxZImpact)
11 kwargs.setdefault("minRatio", 0.17)
12
13 if "SeedMakerTool" not in kwargs:
14 from InDetConfig.SiSpacePointsSeedToolConfig import (
15 SiSpacePointsSeedMakerCfg)
16 kwargs.setdefault("SeedMakerTool", acc.popToolsAndMerge(
17 SiSpacePointsSeedMakerCfg(flags)))
18
19 if flags.Tracking.ActiveConfig.extension == "HeavyIon":
20 kwargs.setdefault("HistSize", 2000)
21 kwargs.setdefault("minContent", 30)
22
23 acc.setPrivateTools(CompFactory.InDet.SiZvertexMaker_xk(
24 name+flags.Tracking.ActiveConfig.extension, **kwargs))
25 return acc
SiZvertexMaker_xkCfg(flags, name="InDetZvertexMaker", **kwargs)