ATLAS Offline Software
Loading...
Searching...
No Matches
PVNNTool.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef PVNN_TOOL_H
6#define PVNN_TOOL_H
7
8// Tool includes
9#include "AsgTools/AsgTool.h"
10#include "IVertexDecorator.h"
11
12// EDM includes
15
16#include <memory>
17#include <string>
18#include <map>
19
32
33namespace InDetPVNNSelection {
34
35 class PVNNTool : public asg::AsgTool,
36 virtual public IVertexDecorator
37 {
38
40
41 public:
42 PVNNTool(const std::string& name);
44
45 StatusCode initialize() override;
46
47 virtual float decorate(const xAOD::Vertex& vertex) const override;
48
49 private:
50 Gaudi::Property<std::string> m_nn_file {
51 this,
52 "nnFile",
53 "InDetGNNHardScatterSelection/v0/HSGN2_export_090824.onnx",
54 "the path to the netowrk file used to run inference"
55 };
56
57 std::unique_ptr<const PVNN> m_pvnn;
58 };
59}
60#endif
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
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
Base class for the dual-use tool implementation classes.
Definition AsgTool.h:47
Vertex_v1 Vertex
Define the latest version of the vertex class.