15 return StatusCode::SUCCESS;
21 if (!muonTrackParticles.
isValid()) {
23 return StatusCode::FAILURE;
27 return StatusCode::SUCCESS;
30 ATH_CHECK(muonCandidates.
record(std::make_unique<MuonCandidateCollection>()));
35 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_WARNING(x)
An algorithm that can be simultaneously executed in multiple threads.
SG::WriteHandleKey< MuonCandidateCollection > m_candidateCollectionName
SG::ReadHandleKey< xAOD::TrackParticleContainer > m_muonTrackParticleLocation
MuonCombinedMuonCandidateAlg(const std::string &name, ISvcLocator *pSvcLocator)
StatusCode execute(const EventContext &ctx) const override
StatusCode initialize() override
SG::WriteHandleKey< TrackCollection > m_msOnlyTracks
ToolHandle< MuonCombined::IMuonCandidateTool > m_muonCandidateTool
virtual bool isValid() override final
Can the handle be successfully dereferenced?
bool isPresent() const
Is the referenced object present in SG?
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.