Skip to content
Snippets Groups Projects
Commit e0dfed38 authored by Frank Winklmeier's avatar Frank Winklmeier
Browse files

SGComps: remove custom merge semantics for SGInputLoader

Gaudi v36r4 automatically handles the merge semantics of sets correctly.
The "Load" property is of type `DataObjIDColl`, which is an
`unordered_set` and thus we no longer need to define our own merge
semantics for it.
parent e7823cda
No related branches found
No related tags found
5 merge requests!69091Fix correlated smearing bug in JER in JetUncertainties in 22.0,!58791DataQualityConfigurations: Modify L1Calo config for web display,!51674Fixing hotSpotInHIST for Run3 HIST,!50012RecExConfig: Adjust log message levels from GetRunNumber and GetLBNumber,!49926SGComps: remove custom merge semantics for SGInputLoader
# #
# Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration # Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
# #
from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator from AthenaConfiguration.ComponentAccumulator import ComponentAccumulator
from AthenaConfiguration.ComponentFactory import CompFactory from AthenaConfiguration.ComponentFactory import CompFactory
def SGInputLoaderCfg(flags, **kwargs): def SGInputLoaderCfg(flags, **kwargs):
sgil = CompFactory.SGInputLoader(**kwargs) sgil = CompFactory.SGInputLoader(**kwargs)
# Custom merge semantics to allow appending items to the Load list
def merge_sgil_types(a, b):
for item in b:
if item not in a:
a.append(item)
return a
sgil._descriptors['Load'].semantics.merge = merge_sgil_types
acc = ComponentAccumulator() acc = ComponentAccumulator()
acc.addEventAlgo(sgil, primary=True) acc.addEventAlgo(sgil, primary=True)
return acc return acc
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment