ATLAS Offline Software
Loading...
Searching...
No Matches
PVNNTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
7
8namespace InDetPVNNSelection {
9
10 PVNNTool::PVNNTool(const std::string& name):
11 asg::AsgTool(name) {}
12
13 PVNNTool::~PVNNTool() = default;
14
15 StatusCode PVNNTool::initialize() {
16
17 ATH_MSG_INFO("Initialize HS Tool (PVNN) from: " + m_nn_file);
18
19 m_pvnn = std::make_unique<const PVNN>(m_nn_file);
20
21 return StatusCode::SUCCESS;
22 }
23
24 float PVNNTool::decorate(const xAOD::Vertex& vertex) const {
25 return m_pvnn->decorate(vertex);
26 }
27
28}
#define ATH_MSG_INFO(x,...)
StatusCode initialize() override
Dummy implementation of the initialisation function.
Definition PVNNTool.cxx:15
Gaudi::Property< std::string > m_nn_file
Definition PVNNTool.h:50
PVNNTool(const std::string &name)
Definition PVNNTool.cxx:10
virtual float decorate(const xAOD::Vertex &vertex) const override
Method to decorate a vertex.
Definition PVNNTool.cxx:24
std::unique_ptr< const PVNN > m_pvnn
Definition PVNNTool.h:57
AsgTool(const std::string &name)
Constructor specifying the tool instance's name.
Definition AsgTool.cxx:58
Vertex_v1 Vertex
Define the latest version of the vertex class.