3 """Define methods to configure ITkPixelLorentzAngleTool
5 from AthenaConfiguration.ComponentFactory
import CompFactory
6 from MagFieldServices.MagFieldServicesConfig
import AtlasFieldCacheCondAlgCfg
7 from PixelConditionsAlgorithms.ITkPixelConditionsConfig
import (
8 ITkPixelDCSCondHVAlgCfg, ITkPixelDCSCondTempAlgCfg
10 from PixelGeoModelXml.ITkPixelGeoModelConfig
import ITkPixelReadoutGeometryCfg
11 from SiPropertiesTool.ITkPixelSiPropertiesConfig
import ITkPixelSiPropertiesToolCfg
15 """Return a SiLorentzAngleTool configured for ITk Pixel"""
17 kwargs.setdefault(
"DetectorName",
"Pixel")
18 kwargs.setdefault(
"SiLorentzAngleCondData",
"ITkPixelSiLorentzAngleCondData")
19 kwargs.setdefault(
"DetEleCollKey",
"ITkPixelDetectorElementCollection")
20 kwargs.setdefault(
"UseMagFieldCache",
True)
21 acc.setPrivateTools(CompFactory.SiLorentzAngleTool(name, **kwargs))
31 kwargs.setdefault(
"UseMagFieldCache",
True)
32 kwargs.setdefault(
"UseMagFieldDcs",
not flags.Common.isOnline)
33 kwargs.setdefault(
"Disable3DCorrection",
True)
34 kwargs.setdefault(
"ReadKeyeTemp",
"ITkPixelDCSTempCondData")
35 kwargs.setdefault(
"ReadKeyHV",
"ITkPixelDCSHVCondData")
36 kwargs.setdefault(
"PixelDetEleCollKey",
"ITkPixelDetectorElementCollection")
37 kwargs.setdefault(
"WriteKey",
"ITkPixelSiLorentzAngleCondData")
38 acc.addCondAlgo(CompFactory.PixelSiLorentzAngleCondAlg(name, **kwargs))