1 """Define methods to configure ITkStrip SiProperties
3 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
5 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
6 from AthenaConfiguration.ComponentFactory
import CompFactory
7 from SCT_ConditionsTools.ITkStripConditionsToolsConfig
import ITkStripSiliconConditionsCfg
8 from StripGeoModelXml.ITkStripGeoModelConfig
import ITkStripReadoutGeometryCfg
12 """Return configured ComponentAccumulator and tool for ITkStripSiProperties
14 SiConditionsTool and/or DCSConditionsTool may be provided in kwargs
20 if not kwargs.get(
"SiConditionsTool"):
23 kwargs.setdefault(
"SCTDetEleCollKey",
"ITkStripDetectorElementCollection")
24 kwargs.setdefault(
"WriteKey",
"ITkStripSiliconPropertiesVector")
25 kwargs.setdefault(
"ForceUseGeoModel",
True)
27 acc.addCondAlgo(CompFactory.SCTSiPropertiesCondAlg(name, **kwargs))
32 """Return a SiPropertiesTool configured for ITk Strip"""
33 SiConditionsTool = kwargs.pop(
"SiConditionsTool",
None)
35 kwargs.setdefault(
"DetectorName",
"SCT")
36 kwargs.setdefault(
"ReadKey",
"ITkStripSiliconPropertiesVector")
37 acc.setPrivateTools(CompFactory.SiPropertiesTool(name, **kwargs))