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