ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
HyPERAnalysisAlgorithms
HyPERAnalysisAlgorithms
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
10
#include "
HyPERAnalysisAlgorithms/HyPERGraph.h
"
11
#include "
HyPERAnalysisAlgorithms/HyPERModel.h
"
12
13
namespace
EventReco
{
22
class
HyPERParser
{
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
HyPERGraph.h
HyPERModel.h
EventReco::HyPERGraph
Definition
HyPERGraph.h:21
EventReco::HyPERModel
Definition
HyPERModel.h:60
EventReco::HyPERParser::getONNXOutputs
virtual void getONNXOutputs(HyPERModel &hyperModel)=0
This method takes the information from the onnxruntime object and builds the outputs on the parser ob...
EventReco::HyPERParser::getScores
virtual std::vector< float > getScores()=0
EventReco::HyPERParser::getLabels
virtual std::vector< std::string > getLabels()=0
The following methods return the reconstruction labels, scores and related indices from the parser ob...
EventReco::HyPERParser::HyPERParser
HyPERParser()=default
EventReco::HyPERParser::buildONNXInputs
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...
EventReco::HyPERParser::clear
virtual void clear()=0
This method clears the parser object.
EventReco::HyPERParser::getIndices
virtual std::vector< std::vector< int > > getIndices()=0
EventReco::HyPERParser::printOutputsForValidation
virtual void printOutputsForValidation() const =0
EventReco::HyPERParser::getClassificationScore
virtual float getClassificationScore()=0
EventReco::HyPERParser::reconstructOutputs
virtual void reconstructOutputs(const HyPERGraph &hyperGraph)=0
This method implements the reconstruction of the outputs from the parser object into physcally meanin...
EventReco::HyPERParser::getIds
virtual std::vector< std::vector< int > > getIds()=0
EventReco::HyPERParser::~HyPERParser
virtual ~HyPERParser()=default
EventReco
Definition
GraphBase.h:14
Generated on
for ATLAS Offline Software by
1.17.0