24 const IInterface*
p) :
26 declareInterface<DerivationFramework::IAugmentationTool>(
this);
52 return StatusCode::SUCCESS;
61 bool callJpsiFinder =
true;
62 const EventContext& ctx = Gaudi::Hive::currentContext();
65 if (!vertContainer.isValid()){
67 return StatusCode::FAILURE;
69 if(vertContainer->size() == 0) {
70 callJpsiFinder =
false;
71 ATH_MSG_DEBUG(
"Container VertexContainer (" << vertContainer.key() <<
") is empty");
78 std::unique_ptr<xAOD::VertexContainer> vtxContainer = std::make_unique<xAOD::VertexContainer>();
79 std::unique_ptr<xAOD::VertexAuxContainer> vtxAuxContainer = std::make_unique<xAOD::VertexAuxContainer>();
80 vtxContainer->setStore(vtxAuxContainer.get());
82 std::unique_ptr<xAOD::VertexContainer> refPvContainer =std::make_unique<xAOD::VertexContainer>();
83 std::unique_ptr<xAOD::VertexAuxContainer> refPvAuxContainer = std::make_unique<xAOD::VertexAuxContainer>();
84 refPvContainer->setStore(refPvAuxContainer.get());
97 if (!pvContainer.isValid()){
99 return StatusCode::FAILURE;
124 ATH_CHECK(out_handle.record(std::move(vtxContainer), std::move(vtxAuxContainer)));
127 ATH_CHECK(refitHandle.record(std::move(refPvContainer), std::move(refPvAuxContainer)));
130 return StatusCode::SUCCESS;