20 std::pair< xAOD::FlowElementContainer*, xAOD::ShallowAuxContainer* > shallowCopyPair =
xAOD::shallowCopyContainer(*neutralFEContainerReadHandle);
21 std::unique_ptr<xAOD::FlowElementContainer> neutralFELCContainer{shallowCopyPair.first};
22 std::unique_ptr<xAOD::ShallowAuxContainer> neutralFELCContainerAux{shallowCopyPair.second};
24 ATH_CHECK( neutralFELCContainerWriteHandle.
record(std::move(neutralFELCContainer),std::move(neutralFELCContainerAux)));
26 for(
unsigned int counter = 0; counter < (*neutralFEContainerReadHandle).size(); counter++){
35 theCopiedFE->
setP4((*clusElementLink)->pt(), (*clusElementLink)->rawEta(), (*clusElementLink)->rawPhi(), (*clusElementLink)->m());
39 return StatusCode::SUCCESS;
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.