From 3ff7404ea3cd1862feb817dc37745681f06a1c46 Mon Sep 17 00:00:00 2001 From: christos <christos@cern.ch> Date: Tue, 15 Dec 2020 15:14:11 +0100 Subject: [PATCH] Egamma Super Cluster Builders pass the EventContext to the ElementLinks --- .../egamma/egammaAlgs/src/electronSuperClusterBuilder.cxx | 2 +- .../egamma/egammaAlgs/src/photonSuperClusterBuilder.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Reconstruction/egamma/egammaAlgs/src/electronSuperClusterBuilder.cxx b/Reconstruction/egamma/egammaAlgs/src/electronSuperClusterBuilder.cxx index 0ba40bd73d3..80dee18d0c8 100644 --- a/Reconstruction/egamma/egammaAlgs/src/electronSuperClusterBuilder.cxx +++ b/Reconstruction/egamma/egammaAlgs/src/electronSuperClusterBuilder.cxx @@ -173,7 +173,7 @@ electronSuperClusterBuilder::execute(const EventContext& ctx) const // Push back the new cluster into the output container. outputClusterContainer->push_back(std::move(newClus)); ElementLink<xAOD::CaloClusterContainer> clusterLink(*outputClusterContainer, - outputClusterContainer->size() - 1); + outputClusterContainer->size() - 1,ctx); std::vector<ElementLink<xAOD::CaloClusterContainer>> elClusters{ clusterLink }; // Make egammaRec object, and push it back into output container. diff --git a/Reconstruction/egamma/egammaAlgs/src/photonSuperClusterBuilder.cxx b/Reconstruction/egamma/egammaAlgs/src/photonSuperClusterBuilder.cxx index 48631293196..69acee220f3 100644 --- a/Reconstruction/egamma/egammaAlgs/src/photonSuperClusterBuilder.cxx +++ b/Reconstruction/egamma/egammaAlgs/src/photonSuperClusterBuilder.cxx @@ -162,7 +162,7 @@ photonSuperClusterBuilder::execute(const EventContext& ctx) const // Add the cluster link to the super cluster ElementLink<xAOD::CaloClusterContainer> clusterLink(*outputClusterContainer, - outputClusterContainer->size() - 1); + outputClusterContainer->size() - 1,ctx); std::vector<ElementLink<xAOD::CaloClusterContainer>> phCluster{ clusterLink }; /////////////////////////////////////////////////////// -- GitLab