Skip to content
Snippets Groups Projects
Commit b4ad6c44 authored by Edward Moyse's avatar Edward Moyse
Browse files

Merge branch 'cluster_fix' into 'master'

JetRecTools: add the decoration of the orignal object

See merge request !37932
parents 1709c5d1 bc68cf3c
No related branches found
No related tags found
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!37932JetRecTools: add the decoration of the orignal object
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include "AsgTools/ToolHandleArray.h" #include "AsgTools/ToolHandleArray.h"
#include "xAODCore/ShallowCopy.h" #include "xAODCore/ShallowCopy.h"
#include "xAODBase/IParticleHelpers.h"
#include "xAODBase/IParticleContainer.h" #include "xAODBase/IParticleContainer.h"
#include "xAODCaloEvent/CaloClusterContainer.h" #include "xAODCaloEvent/CaloClusterContainer.h"
#include "xAODPFlow/TrackCaloClusterContainer.h" #include "xAODPFlow/TrackCaloClusterContainer.h"
...@@ -118,13 +119,15 @@ JetConstituentModSequence::copyModRecord(const SG::ReadHandleKey<T>& inKey, ...@@ -118,13 +119,15 @@ JetConstituentModSequence::copyModRecord(const SG::ReadHandleKey<T>& inKey,
std::pair< T*, xAOD::ShallowAuxContainer* > newconstit = std::pair< T*, xAOD::ShallowAuxContainer* > newconstit =
xAOD::shallowCopyContainer(*inHandle); xAOD::shallowCopyContainer(*inHandle);
newconstit.second->setShallowIO(m_saveAsShallow); newconstit.second->setShallowIO(m_saveAsShallow);
for (auto t : m_modifiers) {ATH_CHECK(t->process(newconstit.first));} for (auto t : m_modifiers) {ATH_CHECK(t->process(newconstit.first));}
auto handle = makeHandle(outKey); auto handle = makeHandle(outKey);
ATH_CHECK(handle.record(std::unique_ptr<T>(newconstit.first), ATH_CHECK(handle.record(std::unique_ptr<T>(newconstit.first),
std::unique_ptr<xAOD::ShallowAuxContainer>(newconstit.second))); std::unique_ptr<xAOD::ShallowAuxContainer>(newconstit.second)));
xAOD::setOriginalObjectLink(*inHandle, *handle);
return StatusCode::SUCCESS; return StatusCode::SUCCESS;
} }
......
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