32 return StatusCode::FAILURE;
37 return StatusCode::SUCCESS;
48 ATH_CHECK(outputVertices.
record(std::unique_ptr<xAOD::VertexContainer>(vertexContainerPair.first),std::unique_ptr<xAOD::VertexAuxContainer>(vertexContainerPair.second)));
50 if(msgLevel()==MSG::VERBOSE) {
51 for(
size_t ivx=0; ivx<inputVertices->size(); ++ivx) {
53 "Ntracks for original (resorted) vertex " << ivx <<
": "
54 << inputVertices->at(ivx)->nTrackParticles()
55 <<
"(" << outputVertices->at(ivx)->nTrackParticles() <<
")"
60 return StatusCode::SUCCESS;
#define ATH_CHECK
Evaluate an expression and check for errors.
#define ATH_MSG_VERBOSE(x)
An algorithm that can be simultaneously executed in multiple threads.
virtual StatusCode execute(const EventContext &ctx) const override
SG::ReadHandleKey< xAOD::VertexContainer > m_verticesInKey
ToolHandle< Trk::IVertexCollectionSortingTool > m_VertexCollectionSortingTool
virtual StatusCode initialize() override
InDetPriVxResorter(const std::string &name, ISvcLocator *pSvcLocator)
SG::WriteHandleKey< xAOD::VertexContainer > m_verticesOutKey
StatusCode record(std::unique_ptr< T > data)
Record a const object to the store.