5def InDetPoolReadCfg(flags) -> ComponentAccumulator:
6 acc = ComponentAccumulator()
7
8 from AthenaPoolCnvSvc.PoolReadConfig import PoolReadCfg
9 acc.merge(PoolReadCfg(flags))
10
11
12 from InDetConfig.InDetMeasurementsUtilitiesConfig import xAODSpacePointReaderAlgCfg
13 typedCollections = flags.Input.TypedCollections
14 for typedCollection in typedCollections:
15 [colType, colName] = typedCollection.split('#')
16
17
18 if colType == "xAOD::SpacePointContainer":
19 acc.merge(xAODSpacePointReaderAlgCfg(flags,
20 name=f"{colName}ReaderAlg",
21 SpacePointKey=colName))
22 continue
23
24 return acc