14 return StatusCode::SUCCESS;
28 ATH_CHECK( neutralFELCContainerWriteHandle.
record(std::move(shallowCopyPair.first),std::move(shallowCopyPair.second)));
30 for(
unsigned int counter = 0; counter < (*neutralFEContainerReadHandle).size(); counter++){
39 theCopiedFE->
setP4((*clusElementLink)->pt(), (*clusElementLink)->rawEta(), (*clusElementLink)->rawPhi(), (*clusElementLink)->m());
43 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
ElementLink implementation for ROOT usage.
StatusCode execute(const EventContext &ctx) const
SG::WriteHandleKey< xAOD::FlowElementContainer > m_neutralFELCContainerWriteHandleKey
WriteHandleKey for neutral FE.
SG::ReadHandleKey< xAOD::FlowElementContainer > m_neutralFEContainerReadHandleKey
ReadHandleKey for eflowCaloObjectContainer.
Helper class to provide type-safe access to aux data.
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
void setP4(float pt, float eta, float phi, float m)
typename ShallowCopyResult< T >::type ShallowCopyResult_t
Return type of xAOD::shallowCopy.
FlowElement_v1 FlowElement
Definition of the current "pfo version".
ShallowCopyResult_t< T > shallowCopy(const T &cont, const EventContext &ctx)
Create a shallow copy of an existing container.