ATLAS Offline Software
Loading...
Searching...
No Matches
OnnxNNCondAlg.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef SICLUSTERIZATIONTOOL_ONNXNNCONDALG_H
6#define SICLUSTERIZATIONTOOL_ONNXNNCONDALG_H
7
9#include "GaudiKernel/ServiceHandle.h"
13#include <onnxruntime_cxx_api.h>
14
15namespace InDet {
16
18public:
20 virtual ~OnnxNNCondAlg() = default;
21
22 virtual StatusCode initialize() override;
23 virtual StatusCode execute(const EventContext& ctx) const override;
24 virtual bool isReEntrant() const override { return false; }
25
26private:
27 std::unique_ptr<Ort::Session> createSession(const std::string& modelPath) const;
28
30 this, "OnnxRuntimeSvc", "AthOnnx::OnnxRuntimeSvc",
31 "Handle to the ONNX Runtime service"};
32
34 this, "WriteKey", "PixelClusterNNONNX",
35 "Output conditions key for ONNX NN collection"};
36
37 Gaudi::Property<std::string> m_numberNetworkPath{
38 this, "NumberNetworkPath", "",
39 "Path to ONNX model for number network"};
40
41 Gaudi::Property<std::string> m_posNetwork1Path{
42 this, "PositionNetwork1Path", "",
43 "Path to ONNX model for 1-particle position network"};
44
45 Gaudi::Property<std::string> m_posNetwork2Path{
46 this, "PositionNetwork2Path", "",
47 "Path to ONNX model for 2-particle position network"};
48
49 Gaudi::Property<std::string> m_posNetwork3Path{
50 this, "PositionNetwork3Path", "",
51 "Path to ONNX model for 3-particle position network"};
52
53};
54
55} // namespace InDet
56
57#endif
An algorithm that can be simultaneously executed in multiple threads.
Gaudi::Property< std::string > m_numberNetworkPath
std::unique_ptr< Ort::Session > createSession(const std::string &modelPath) const
Gaudi::Property< std::string > m_posNetwork1Path
virtual bool isReEntrant() const override
virtual StatusCode execute(const EventContext &ctx) const override
SG::WriteCondHandleKey< OnnxNNCollection > m_writeKey
virtual ~OnnxNNCondAlg()=default
Gaudi::Property< std::string > m_posNetwork3Path
virtual StatusCode initialize() override
Gaudi::Property< std::string > m_posNetwork2Path
ServiceHandle< AthOnnx::IOnnxRuntimeSvc > m_onnxSvc
Primary Vertex Finder.