8from PixelConditionsAlgorithms.PixelConditionsConfig
import PixelCablingCondAlgCfg, PixelHitDiscCnfgAlgCfg
12 acc = ComponentAccumulator()
13 decoder = CompFactory.PixelRodDecoder(CheckDuplicatedPixel =
False if "data15" in flags.Input.ProjectName
else True)
14 acc.setPrivateTools(CompFactory.PixelRawDataProviderTool(Decoder = decoder, StoreInDetTimeCollections = storeInDetTimeCollections))
19 """ Main function to configure Pixel raw data decoding """
20 acc = PixelCablingCondAlgCfg(flags)
21 acc.merge(PixelHitDiscCnfgAlgCfg(flags))
23 if flags.Common.ProductionStep
is ProductionStep.MinbiasPreprocessing:
24 kwargs.setdefault(
"RDOKey", f
"{flags.Overlay.BkgPrefix}PixelRDOs")
26 kwargs.setdefault(
"RDOKey",
"PixelRDOs")
28 from PixelReadoutGeometry.PixelReadoutGeometryConfig
import PixelReadoutManagerCfg
29 acc.merge (PixelReadoutManagerCfg(flags))
31 from RegionSelector.RegSelToolConfig
import regSelTool_Pixel_Cfg
32 regSelTool = acc.popToolsAndMerge(regSelTool_Pixel_Cfg(flags))
33 storeInDetTimeCollections = kwargs.pop(
"StoreInDetTimeCollections",
True)
35 prefix = kwargs.pop(
"prefix",
"")
36 suffix = kwargs.pop(
"suffix",
"")
38 acc.addEventAlgo(CompFactory.PixelRawDataProvider(RegSelTool = regSelTool,
39 ProviderTool = providerTool,