ATLAS Offline Software
InDetPoolReadConfig.py
Go to the documentation of this file.
1 # Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
2 
3 from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
4 
5 def InDetPoolReadCfg(flags) -> 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
python.JetAnalysisCommon.ComponentAccumulator
ComponentAccumulator
Definition: JetAnalysisCommon.py:302
python.InDetPoolReadConfig.InDetPoolReadCfg
ComponentAccumulator InDetPoolReadCfg(flags)
Definition: InDetPoolReadConfig.py:5
python.InDetMeasurementsUtilitiesConfig.xAODSpacePointReaderAlgCfg
ComponentAccumulator xAODSpacePointReaderAlgCfg(flags, str name, **dict kwargs)
Definition: InDetMeasurementsUtilitiesConfig.py:6
python.PoolReadConfig.PoolReadCfg
def PoolReadCfg(flags)
Definition: PoolReadConfig.py:69