21 m_eventCntr(0), m_jpsiCntr(0),
22 m_jpsiFinder(
"Analysis::JpsiFinder", this),
23 m_jpsiContainerName(
"JpsiCandidates")
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;