44 return StatusCode::SUCCESS;
58 std::unique_ptr<xAOD::VertexContainer> jpsiContainer = std::make_unique<xAOD::VertexContainer>();
59 std::unique_ptr<xAOD::VertexAuxContainer> jpsiAuxContainer = std::make_unique<xAOD::VertexAuxContainer>();
60 jpsiContainer->setStore(jpsiAuxContainer.get());
62 if( !
m_jpsiFinder->performSearch(ctx, *jpsiContainer).isSuccess() ) {
64 return StatusCode::FAILURE;
74 ATH_CHECK(whandle.
record(std::move(jpsiContainer), std::move(jpsiAuxContainer)));
76 return StatusCode::SUCCESS;
91 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
AthAlgorithm(const std::string &name, ISvcLocator *pSvcLocator)
Constructor.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
StatusCode finalize() override
ToolHandle< Analysis::ICandidateSearch > m_jpsiFinder
JpsiAlg(const std::string &name, ISvcLocator *pSvcLocator)
SG::WriteHandleKey< xAOD::VertexContainer > m_jpsiContainerName
Name of output container to store results.
StatusCode execute(const EventContext &ctx) override
Execute method.
StatusCode initialize() override
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.