diff --git a/Reconstruction/Jet/JetRec/JetRec/JetCopier.h b/Reconstruction/Jet/JetRec/JetRec/JetCopier.h index 8d1b6d2c9870c52c4a101a5eec547436c7e2a3c3..5d6f7f9855c4ce7ab7dad90e8cf15b36bfc16916 100644 --- a/Reconstruction/Jet/JetRec/JetRec/JetCopier.h +++ b/Reconstruction/Jet/JetRec/JetRec/JetCopier.h @@ -41,9 +41,13 @@ class JetCopier // Called in parent initialize() virtual StatusCode initialize() override; + +#ifndef XAOD_ANALYSIS // Needed to initialise the ShallowCopyDecorDeps object, which propagates // decorations on the original into the copy in StoreGate. + // Override interface implementation in Athena only virtual StatusCode initWithOutput(const SG::WriteHandleKey<xAOD::JetContainer>& outputJets) override; +#endif // Called during execution virtual StatusCode getAndRecordJets(SG::WriteHandle<xAOD::JetContainer>& jetHandle) const override; diff --git a/Reconstruction/Jet/JetRec/Root/JetCopier.cxx b/Reconstruction/Jet/JetRec/Root/JetCopier.cxx index e92ce06177e00fb639c7dab58839beba3471b8e9..07297e9e3787ebbdc43af43af0827671695a6e59 100644 --- a/Reconstruction/Jet/JetRec/Root/JetCopier.cxx +++ b/Reconstruction/Jet/JetRec/Root/JetCopier.cxx @@ -36,14 +36,12 @@ StatusCode JetCopier::initialize() { } +#ifndef XAOD_ANALYSIS // Setup helper to propagate decorations from original to copy StatusCode JetCopier::initWithOutput(const SG::WriteHandleKey<xAOD::JetContainer>& outputJets) { -#ifndef XAOD_ANALYSIS return m_decorDeps.initialize(m_inputJets, outputJets) ; -#else - return StatusCode::SUCCESS; -#endif } +#endif StatusCode JetCopier::getAndRecordJets(SG::WriteHandle<xAOD::JetContainer>& jetHandle) const {