diff --git a/PhysicsAnalysis/DerivationFramework/DerivationFrameworkCore/python/ContentHandler.py b/PhysicsAnalysis/DerivationFramework/DerivationFrameworkCore/python/ContentHandler.py index 5c4ebc5b73499d1bfb5e9fde0c41fe51dd496092..898d991d6c06d8c734c4634425d71f742c7a0b03 100644 --- a/PhysicsAnalysis/DerivationFramework/DerivationFrameworkCore/python/ContentHandler.py +++ b/PhysicsAnalysis/DerivationFramework/DerivationFrameworkCore/python/ContentHandler.py @@ -15,7 +15,8 @@ class ContentHandler: self.ContainersForExpansion = ContainersForExpansion def mainContainerLine(self,containerName): - theDictionary = dict(list(self.NamesAndTypes.items()) + list(self.AppendToDictionary.items())) + theDictionary = self.NamesAndTypes.copy() + theDictionary.update (self.AppendToDictionary) line = '' if containerName in theDictionary.keys(): line = theDictionary[containerName]+"#"+containerName diff --git a/PhysicsAnalysis/DerivationFramework/DerivationFrameworkCore/python/SlimmingHelper.py b/PhysicsAnalysis/DerivationFramework/DerivationFrameworkCore/python/SlimmingHelper.py index c67cd00f1f4c9bffd841bf6cc4482426e0981462..38393d5a747485cba1df5b7a0cca311431dae09c 100644 --- a/PhysicsAnalysis/DerivationFramework/DerivationFrameworkCore/python/SlimmingHelper.py +++ b/PhysicsAnalysis/DerivationFramework/DerivationFrameworkCore/python/SlimmingHelper.py @@ -232,7 +232,8 @@ class SlimmingHelper: for item in mainEntries: Stream.AddItem(item) for item in auxEntries.keys(): - theDictionary = dict(list(self.NamesAndTypes.items()) + list(self.AppendToDictionary.items())) + theDictionary = self.NamesAndTypes.copy() + theDictionary.update (self.AppendToDictionary) if item in theDictionary.keys(): if (theDictionary[item]=='xAOD::JetAuxContainer'): entry = "xAOD::JetAuxContainer#"+item+"."