3 """Define methods to configure SCTLorentzAngleTool
5 from SiPropertiesTool.PixelSiPropertiesConfig
import PixelSiPropertiesToolCfg
6 from AthenaConfiguration.ComponentFactory
import CompFactory
7 from MagFieldServices.MagFieldServicesConfig
import AtlasFieldCacheCondAlgCfg
8 from PixelConditionsAlgorithms.PixelConditionsConfig
import (
9 PixelDCSCondHVAlgCfg, PixelDCSCondTempAlgCfg
11 from PixelGeoModel.PixelGeoModelConfig
import PixelReadoutGeometryCfg
14 """Return a SiLorentzAngleTool configured for Pixel"""
16 kwargs.setdefault(
"DetectorName",
"Pixel")
17 kwargs.setdefault(
"SiLorentzAngleCondData",
"PixelSiLorentzAngleCondData")
18 kwargs.setdefault(
"DetEleCollKey",
"PixelDetectorElementCollection")
19 kwargs.setdefault(
"UseMagFieldCache",
True)
20 acc.setPrivateTools(CompFactory.SiLorentzAngleTool(name, **kwargs))
29 kwargs.setdefault(
"UseMagFieldCache",
True)
30 kwargs.setdefault(
"UseMagFieldDcs",
not flags.Common.isOnline)
31 acc.addCondAlgo(CompFactory.PixelSiLorentzAngleCondAlg(name, **kwargs))