17 return StatusCode::SUCCESS;
28 return StatusCode::SUCCESS;
35 std::pair<xAOD::FlowElementContainer *, xAOD::ShallowAuxContainer *> shallowCopyPair =
xAOD::shallowCopyContainer(*chargedFEContainerReadHandle);
36 std::unique_ptr<xAOD::FlowElementContainer> chargedFEMLContainer{shallowCopyPair.first};
37 std::unique_ptr<xAOD::ShallowAuxContainer> chargedFEMLContainerAux{shallowCopyPair.second};
40 ATH_CHECK(chargedFEMLContainerWriteHandle.
record(std::move(chargedFEMLContainer), std::move(chargedFEMLContainerAux)));
42 return StatusCode::SUCCESS;
49 std::pair<xAOD::FlowElementContainer *, xAOD::ShallowAuxContainer *> shallowCopyPair =
xAOD::shallowCopyContainer(*neutralFEContainerReadHandle);
50 std::unique_ptr<xAOD::FlowElementContainer> neutralFEMLContainer{shallowCopyPair.first};
51 std::unique_ptr<xAOD::ShallowAuxContainer> neutralFEMLContainerAux{shallowCopyPair.second};
58 ATH_CHECK(neutralFEMLContainerWriteHandle.
record(std::move(neutralFEMLContainer), std::move(neutralFEMLContainerAux)));
60 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
StatusCode shallowCopyChargedFEContainer(const EventContext &ctx) const
SG::ReadHandleKey< xAOD::FlowElementContainer > m_neutralFEContainerReadHandleKey
ReadHandleKey for eflowCaloObjectContainer.
SG::WriteHandleKey< xAOD::FlowElementContainer > m_neutralFEMLContainerWriteHandleKey
WriteHandleKey for neutral FE.
StatusCode shallowCopyAndModifyNeutralFEContainer(const EventContext &ctx) const
ToolHandle< IPFOContainerCorrectionTool > m_correctionTool
SG::ReadHandleKey< xAOD::FlowElementContainer > m_chargedFEContainerReadHandleKey
SG::WriteHandleKey< xAOD::FlowElementContainer > m_chargedFEMLContainerWriteHandleKey
StatusCode execute(const EventContext &ctx) const
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
std::pair< std::unique_ptr< T >, std::unique_ptr< ShallowAuxContainer > > shallowCopyContainer(const T &cont, const EventContext &ctx)
Function making a shallow copy of a constant container.