1"""Define methods to configure SCT SiProperties
3Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
6from AthenaConfiguration.ComponentFactory
import CompFactory
7from SCT_ConditionsTools.SCT_ConditionsToolsConfig
import SCT_SiliconConditionsCfg
8from SCT_GeoModel.SCT_GeoModelConfig
import SCT_ReadoutGeometryCfg
12 """Return configured ComponentAccumulator and tool for SCT_SiProperties
14 SiConditionsTool and/or DCSConditionsTool may be provided in kwargs
16 acc = ComponentAccumulator()
20 if not kwargs.get(
"SiConditionsTool"):
21 kwargs[
"SiConditionsTool"] = acc.popToolsAndMerge(SCT_SiliconConditionsCfg(flags))
24 acc.merge(SCT_ReadoutGeometryCfg(flags))
25 acc.addCondAlgo(CompFactory.SCTSiPropertiesCondAlg(name, **kwargs))
30 """Return configured ComponentAccumulator and tool for SCT_SiProperties
32 SiConditionsTool and/or DCSConditionsTool may be provided in kwargs
34 SiConditionsTool = kwargs.pop(
"SiConditionsTool",
None)
36 kwargs.setdefault(
"DetectorName",
"SCT")
37 kwargs.setdefault(
"ReadKey",
"SCTSiliconPropertiesVector")
38 acc.setPrivateTools(CompFactory.SiPropertiesTool(name, **kwargs))
SCT_SiPropertiesToolCfg(flags, name="SCT_SiPropertiesTool", **kwargs)
SCT_SiPropertiesCondAlgCfg(flags, name="SCTSiPropertiesCondAlg", **kwargs)