ATLAS Offline Software
Loading...
Searching...
No Matches
InDetPoolReadConfig.py
Go to the documentation of this file.
1# Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2
3from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4
5def InDetPoolReadCfg(flags) -> ComponentAccumulator:
6 acc = ComponentAccumulator()
7
8 from AthenaPoolCnvSvc.PoolReadConfig import PoolReadCfg
9 acc.merge(PoolReadCfg(flags))
10
11 # Schedule reader algorithms for xAOD::SpacePoint collections
12 from InDetConfig.InDetMeasurementsUtilitiesConfig import xAODSpacePointReaderAlgCfg
13 typedCollections = flags.Input.TypedCollections
14 for typedCollection in typedCollections:
15 [colType, colName] = typedCollection.split('#')
16
17 # Space Point Collections
18 if colType == "xAOD::SpacePointContainer":
19 acc.merge(xAODSpacePointReaderAlgCfg(flags,
20 name=f"{colName}ReaderAlg",
21 SpacePointKey=colName))
22 continue
23
24 return acc
ComponentAccumulator InDetPoolReadCfg(flags)