1 """Define functions to configure PLR conditions algorithms
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 IOVDbSvc.IOVDbSvcConfig
import addFoldersSplitOnline
11 """Return a ComponentAccumulator with configured PixelConfigCondAlg for PLR"""
12 kwargs.setdefault(
"WriteKey",
"PLR_ModuleData")
14 from PixelConditionsAlgorithms.PixelConditionsConfig
import PixelConfigCondAlgCfg
19 """Return a ComponentAccumulator with configured PixelAlignCondAlg for PLR"""
22 if flags.GeoModel.Align.Dynamic:
23 raise RuntimeError(
"Dynamic alignment not supported for PLR yet")
25 acc.merge(
addFoldersSplitOnline(flags,
"INDET",
"/Indet/Onl/Align",
"/Indet/Align", className=
"AlignableTransformContainer"))
27 kwargs.setdefault(
"DetManagerName",
"PLR")
28 kwargs.setdefault(
"UseDynamicAlignFolders", flags.GeoModel.Align.Dynamic)
29 kwargs.setdefault(
"ReadKeyStatic",
"/Indet/Align")
33 kwargs.setdefault(
"ReadKeyIBLDist",
"")
34 kwargs.setdefault(
"WriteKey",
"PLR_AlignmentStore")
36 acc.addCondAlgo(CompFactory.PixelAlignCondAlg(name, **kwargs))
41 """Return a ComponentAccumulator with configured PixelChargeCalibCondAlg for PLR"""
47 from PLRGeoModelXml.PLR_GeoModelConfig
import PLR_ReadoutGeometryCfg
50 kwargs.setdefault(
"PixelIDName",
"PLR_ID")
51 kwargs.setdefault(
"PixelDetEleCollKey",
"PLR_DetectorElementCollection")
52 kwargs.setdefault(
"PixelModuleData",
"PLR_ModuleData")
53 kwargs.setdefault(
"ReadKey", folderName)
54 kwargs.setdefault(
"WriteKey",
"PLR_ChargeCalibCondData")
55 acc.addCondAlgo(CompFactory.PixelChargeLUTCalibCondAlg(name, **kwargs))
60 """Return a ComponentAccumulator with configured PixelDCSCondHVAlg for PLR"""
63 kwargs.setdefault(
"ReadKey",
"")
64 kwargs.setdefault(
"PixelModuleData",
"PLR_ModuleData")
65 kwargs.setdefault(
"WriteKey",
"PLR_DCSHVCondData")
66 acc.addCondAlgo(CompFactory.PixelDCSCondHVAlg(name, **kwargs))
71 """Return a ComponentAccumulator with configured PixelDCSCondTempAlg for PLR"""
74 kwargs.setdefault(
"ReadKey",
"")
75 kwargs.setdefault(
"WriteKey",
"PLR_DCSTempCondData")
76 acc.addCondAlgo(CompFactory.PixelDCSCondTempAlg(name, **kwargs))
81 """Return a ComponentAccumulator with configured PixelDetectorElementCondAlg for PLR"""
84 kwargs.setdefault(
"DetManagerName",
"PLR")
85 kwargs.setdefault(
"PixelAlignmentStore",
"PLR_AlignmentStore")
86 kwargs.setdefault(
"WriteKey",
"PLR_DetectorElementCollection")
87 acc.addCondAlgo(CompFactory.PixelDetectorElementCondAlg(name, **kwargs))
92 """Return a ComponentAccumulator with configured PixelDistortionAlg for PLR"""
95 acc.merge(
addFoldersSplitOnline(flags,
"INDET",
"/Indet/Onl/PixelDist",
"/Indet/PixelDist", className=
"DetCondCFloat"))
96 kwargs.setdefault(
"ReadKey",
"/Indet/PixelDist")
97 kwargs.setdefault(
"WriteKey",
"PLR_DistortionData")
98 acc.addCondAlgo(CompFactory.PixelDistortionAlg(name, **kwargs))