5 from AthenaConfiguration.ComponentAccumulator
import ComponentAccumulator
6 from AthenaConfiguration.ComponentFactory
import CompFactory
7 from PixelConditionsAlgorithms.PixelConditionsConfig
import PixelCablingCondAlgCfg, PixelHitDiscCnfgAlgCfg
12 decoder = CompFactory.PixelRodDecoder(CheckDuplicatedPixel =
False if "data15" in flags.Input.ProjectName
else True)
13 acc.setPrivateTools(CompFactory.PixelRawDataProviderTool(Decoder = decoder, StoreInDetTimeCollections = storeInDetTimeCollections))
18 """ Main function to configure Pixel raw data decoding """
22 if flags.Overlay.ByteStream:
23 kwargs.setdefault(
"RDOKey", f
"{flags.Overlay.BkgPrefix}PixelRDOs")
25 kwargs.setdefault(
"RDOKey",
"PixelRDOs")
27 from PixelReadoutGeometry.PixelReadoutGeometryConfig
import PixelReadoutManagerCfg
30 from RegionSelector.RegSelToolConfig
import regSelTool_Pixel_Cfg
32 storeInDetTimeCollections = kwargs.pop(
"StoreInDetTimeCollections",
True)
34 prefix = kwargs.pop(
"prefix",
"")
35 suffix = kwargs.pop(
"suffix",
"")
37 acc.addEventAlgo(CompFactory.PixelRawDataProvider(RegSelTool = regSelTool,
38 ProviderTool = providerTool,
44 kwargs.setdefault(
'name',
'TrigPixelRawDataProvider'+suffix)
45 kwargs.setdefault(
'prefix',
"Trig")
46 kwargs.setdefault(
'suffix', suffix)
47 kwargs.setdefault(
'RoIs', RoIs)
48 kwargs.setdefault(
'isRoI_Seeded',
True)
49 kwargs.setdefault(
'RDOCacheKey', flags.Trigger.InDetTracking.PixRDOCacheKey)
50 kwargs.setdefault(
'BSErrorsCacheKey', flags.Trigger.InDetTracking.PixBSErrCacheKey)
51 kwargs.setdefault(
'StoreInDetTimeCollections',
False)