2 from AthenaConfiguration.AccumulatorCache
import AccumulatorCache
3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from IOVDbSvc.IOVDbSvcConfig
import addFoldersSplitOnline
9 """Return a ComponentAccumulator for TRTAlignCondAlg algorithm"""
10 from TRT_GeoModel.TRT_GeoModelConfig
import TRT_GeoModelCfg
14 if flags.GeoModel.Align.Dynamic:
15 acc.merge(
addFoldersSplitOnline(flags,
"TRT",
"/TRT/Onl/AlignL1/TRT",
"/TRT/AlignL1/TRT", className=
"CondAttrListCollection"))
16 acc.merge(
addFoldersSplitOnline(flags,
"TRT",
"/TRT/Onl/AlignL2",
"/TRT/AlignL2", className=
"AlignableTransformContainer"))
17 kwargs.setdefault(
"ReadKeyDynamicGlobal",
"/TRT/AlignL1/TRT")
18 kwargs.setdefault(
"ReadKeyDynamicRegular",
"/TRT/AlignL2")
20 acc.merge(
addFoldersSplitOnline(flags,
"TRT",
"/TRT/Onl/Align",
"/TRT/Align", className=
"AlignableTransformContainer"))
22 kwargs.setdefault(
"UseDynamicFolders", flags.GeoModel.Align.Dynamic)
23 kwargs.setdefault(
"WriteKeyAlignStore",
"")
25 acc.addCondAlgo(CompFactory.TRTAlignCondAlg(name, **kwargs))
30 """Return a ComponentAccumulator for TRTStrawStatusCondAlg algorithm"""
33 onlineFolders = [
"/TRT/Onl/Cond/Status",
34 "/TRT/Onl/Cond/StatusPermanent",
35 "/TRT/Onl/Cond/StatusHT"],
36 offlineFolders = [
"/TRT/Cond/Status",
37 "/TRT/Cond/StatusPermanent",
38 "/TRT/Cond/StatusHT"],
39 className =
"TRTCond::StrawStatusMultChanContainer"))
41 acc.addCondAlgo(CompFactory.TRTStrawStatusCondAlg(name, **kwargs))
47 """Return a ComponentAccumulator for TRTStrawCondAlg algorithm"""
51 acc.addCondAlgo(CompFactory.TRTStrawCondAlg(name, **kwargs))
57 """Return a ComponentAccumulator for TRTActiveCondAlg algorithm"""
59 from TRT_ConditionsServices.TRT_ConditionsServicesConfig
import TRT_StrawStatusSummaryToolCfg
61 acc.addPublicTool(StrawStatusTool)
62 acc.merge(
addFoldersSplitOnline(flags,
"TRT",
"/TRT/Onl/Cond/Status",
"/TRT/Cond/Status", className=
"TRTCond::StrawStatusMultChanContainer"))
63 kwargs.setdefault(
"TRTStrawStatusSummaryTool", StrawStatusTool)
64 acc.addCondAlgo(CompFactory.TRTActiveCondAlg(name, **kwargs))
69 """Return a ComponentAccumulator for TRTPhaseCondAlg algorithm"""
71 from TRT_ConditionsServices.TRT_ConditionsServicesConfig
import TRT_CalDbToolCfg
73 acc.addPublicTool(CalDbTool)
74 kwargs.setdefault(
"TRTCalDbTool", CalDbTool)
77 className=
'TRTCond::StrawT0MultChanContainer'))
78 acc.addCondAlgo(CompFactory.TRTPhaseCondAlg(name, **kwargs))
83 """Return a ComponentAccumulator for TRTToTCondAlg algorithm"""
85 acc.merge(
addFoldersSplitOnline(flags,
"TRT",
"/TRT/Onl/Calib/ToT/ToTVectors",
"/TRT/Calib/ToT/ToTVectors", className=
"CondAttrListVec"))
86 acc.merge(
addFoldersSplitOnline(flags,
"TRT",
"/TRT/Onl/Calib/ToT/ToTValue",
"/TRT/Calib/ToT/ToTValue", className=
"CondAttrListCollection"))
88 kwargs.setdefault(
"ToTWriteKey",
"Dedxcorrection")
90 acc.addCondAlgo(CompFactory.TRTToTCondAlg(name, **kwargs))
95 """Return a ComponentAccumulator for TRTHTCondAlg algorithm"""
97 acc.merge(
addFoldersSplitOnline(flags,
"TRT",
"/TRT/Onl/Calib/PID_vector",
"/TRT/Calib/PID_vector", className=
"CondAttrListVec"))
98 kwargs.setdefault(
"HTWriteKey",
"HTcalculator")
99 acc.addCondAlgo(CompFactory.TRTHTCondAlg(name, **kwargs))
104 """Return a ComponentAccumulator for TRTHTCondAlg algorithm"""
106 acc.merge(
addFoldersSplitOnline(flags,
"TRT",
"/TRT/Onl/Calib/PID_NN",
"/TRT/Calib/PID_NN", className=
"CondAttrListCollection"))
108 from AthenaConfiguration.Enums
import LHCPeriod
109 if flags.GeoModel.Run
is LHCPeriod.Run1:
110 from IOVDbSvc.IOVDbSvcConfig
import addOverride
111 acc.merge(
addOverride(flags,
"/TRT/Calib/PID_NN",
"TRTCalibPID_NN_v1"))
112 acc.merge(
addOverride(flags,
"/TRT/Onl/Calib/PID_NN",
"TRTCalibPID_NN_v1"))
114 kwargs.setdefault(
"TRTPIDNNWriteKey",
"TRTPIDNN")
115 acc.addCondAlgo(CompFactory.TRTPIDNNCondAlg(name, **kwargs))
122 if "CalibInputFile" not in kwargs:
123 kwargs.setdefault(
"CalibInputFile",
"dummy.txt")
126 acc.addCondAlgo(CompFactory.TRTCondWrite(name, **kwargs))