3 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
4 from AthenaConfiguration.ComponentFactory
import CompFactory
5 from AthenaConfiguration.AthConfigFlags
import AthConfigFlags
9 """Return a ComponentAccumulator for TRT_CablingSvc service"""
12 acc.addPublicTool(CompFactory.TRT_FillCablingData_DC3(RealData=
not flags.Input.isMC))
14 acc.addService(CompFactory.TRT_CablingSvc())
19 """Return a ComponentAccumulator for TRT ROD decoder"""
21 kwargs.setdefault(
"SortCollections", flags.Overlay.ByteStream)
22 acc.setPrivateTools(CompFactory.TRT_RodDecoder(name, **kwargs))
27 """Return a ComponentAccumulator for TRT raw data provider tool"""
30 kwargs.setdefault(
"LVL1IDKey",
"TRT_LVL1ID")
31 kwargs.setdefault(
"BCIDKey",
"TRT_BCID")
35 acc.setPrivateTools(CompFactory.TRTRawDataProviderTool(name, **kwargs))
40 """Return a ComponentAccumulator for TRT raw data provider"""
43 if not flags.Input.isMC:
44 from IOVDbSvc.IOVDbSvcConfig
import addFolders
45 acc.merge(
addFolders(flags,
"/TRT/Onl/ROD/Compress",
"TRT_ONL", className=
"CondAttrListCollection"))
47 if 'ProviderTool' not in kwargs:
50 from RegionSelector.RegSelToolConfig
import regSelTool_TRT_Cfg
53 if flags.Overlay.ByteStream:
54 kwargs.setdefault(
"RDOKey", f
"{flags.Overlay.BkgPrefix}TRT_RDOs")
56 acc.addEventAlgo(CompFactory.TRTRawDataProvider(name, **kwargs))
63 suffix = flags.Tracking.ActiveConfig.input_name
64 providerToolName = f
"TrigTRTRawDataProviderTool_{suffix}"
65 providerName = f
"TrigTRTRawDataProvider_{suffix}"
67 providerTool = acc.popToolsAndMerge(
69 name=providerToolName,
70 StoreInDetTimeCollections=
False)
73 kwargs.setdefault(
"ProviderTool", providerTool)
74 kwargs.setdefault(
'isRoI_Seeded',
True)
75 kwargs.setdefault(
'RoIs', RoIs)
76 kwargs.setdefault(
'RDOKey',
'TRT_RDOs_TRIG')
77 kwargs.setdefault(
'RDOCacheKey', flags.Trigger.InDetTracking.TRTRDOCacheKey)