12 return StatusCode::SUCCESS;
20 ATH_MSG_FATAL(
"Failed to retrieve InDetCandidates from storegate "<<key.fullKey());
21 return StatusCode::FAILURE;
23 merged.
insert(merged.
end(), readHandle->begin(), readHandle->end());
25 std::unique_ptr<InDetCandidateCollection> output_coll = std::make_unique<InDetCandidateCollection>(*merged.
asDataVector());
28 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
DataVector adapter that acts like it holds const pointers.
An algorithm that can be simultaneously executed in multiple threads.
DataVector adapter that acts like it holds const pointers.
iterator end() noexcept
Return an iterator pointing past the end of the collection.
iterator insert(iterator position, value_type pElem)
Add a new element to the collection.
const DV * asDataVector() const
Return a pointer to this object, as a const DataVector.
StatusCode initialize() override
StatusCode execute(const EventContext &ctx) const override
MuonInDetExtensionMergerAlg(const std::string &name, ISvcLocator *pSvcLocator)
SG::ReadHandleKeyArray< InDetCandidateCollection > m_inputCandidates
SG::WriteHandleKey< InDetCandidateCollection > m_writeKey
Output Key.
Property holding a SG store/key/clid from which a ReadHandle is made.
virtual bool isValid() override final
Can the handle be successfully dereferenced?
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.
@ VIEW_ELEMENTS
this data object is a view, it does not own its elmts