ATLAS Offline Software
Loading...
Searching...
No Matches
HyPERParser.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 HYPERANALYSISALGORITHMS_HYPERPARSER_H
6#define HYPERANALYSISALGORITHMS_HYPERPARSER_H
7
8#include <memory>
9
12
13namespace EventReco {
23 public:
24 HyPERParser() = default;
25 virtual ~HyPERParser() = default;
26
31 virtual void buildONNXInputs(const HyPERGraph& hyperGraph,
32 HyPERModel& hyperModel) = 0;
33
38 virtual void getONNXOutputs(HyPERModel& hyperModel) = 0;
39
44 virtual void reconstructOutputs(const HyPERGraph& hyperGraph) = 0;
45
51 virtual std::vector<std::string> getLabels() = 0;
52 virtual std::vector<float> getScores() = 0;
53 virtual std::vector<std::vector<int>> getIndices() = 0;
54 virtual std::vector<std::vector<int>> getIds() = 0;
55 virtual float getClassificationScore() = 0;
56
60 virtual void clear() = 0;
61 virtual void printOutputsForValidation() const = 0;
62};
63} // namespace EventReco
64
65#endif // HYPERANALYSISALGORITHMS_HYPERPARSER_H
virtual void getONNXOutputs(HyPERModel &hyperModel)=0
This method takes the information from the onnxruntime object and builds the outputs on the parser ob...
virtual std::vector< float > getScores()=0
virtual std::vector< std::string > getLabels()=0
The following methods return the reconstruction labels, scores and related indices from the parser ob...
virtual void buildONNXInputs(const HyPERGraph &hyperGraph, HyPERModel &hyperModel)=0
This method takes the information from the graph object and builds the inputs for the onnxruntime obj...
virtual void clear()=0
This method clears the parser object.
virtual std::vector< std::vector< int > > getIndices()=0
virtual void printOutputsForValidation() const =0
virtual float getClassificationScore()=0
virtual void reconstructOutputs(const HyPERGraph &hyperGraph)=0
This method implements the reconstruction of the outputs from the parser object into physcally meanin...
virtual std::vector< std::vector< int > > getIds()=0
virtual ~HyPERParser()=default