ATLAS Offline Software
Loading...
Searching...
No Matches
EventReco::HyPERParser Class Referenceabstract

This class is in charge of parsing the information from: Graph object -> onnxruntime object. More...

#include <HyPERParser.h>

Inheritance diagram for EventReco::HyPERParser:
Collaboration diagram for EventReco::HyPERParser:

Public Member Functions

 HyPERParser ()=default
virtual ~HyPERParser ()=default
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 object.
virtual void getONNXOutputs (HyPERModel &hyperModel)=0
 This method takes the information from the onnxruntime object and builds the outputs on the parser object.
virtual void reconstructOutputs (const HyPERGraph &hyperGraph)=0
 This method implements the reconstruction of the outputs from the parser object into physcally meaningful quantities.
virtual std::vector< std::string > getLabels ()=0
 The following methods return the reconstruction labels, scores and related indices from the parser object.
virtual std::vector< float > getScores ()=0
virtual std::vector< std::vector< int > > getIndices ()=0
virtual std::vector< std::vector< int > > getIds ()=0
virtual float getClassificationScore ()=0
virtual void clear ()=0
 This method clears the parser object.
virtual void printOutputsForValidation () const =0

Detailed Description

This class is in charge of parsing the information from: Graph object -> onnxruntime object.

onnxruntime object -> Parser object (for the outputs). Reconstruct the objects from the outputs. It is a pure virtual class, and it must be implemented for each topology.

Definition at line 22 of file HyPERParser.h.

Constructor & Destructor Documentation

◆ HyPERParser()

EventReco::HyPERParser::HyPERParser ( )
default

◆ ~HyPERParser()

virtual EventReco::HyPERParser::~HyPERParser ( )
virtualdefault

Member Function Documentation

◆ buildONNXInputs()

virtual void EventReco::HyPERParser::buildONNXInputs ( const HyPERGraph & hyperGraph,
HyPERModel & hyperModel )
pure virtual

This method takes the information from the graph object and builds the inputs for the onnxruntime object.

Implemented in EventReco::HyPERTtbarAllHadronicParser, EventReco::HyPERTtbarDiLeptonParser, and EventReco::HyPERTtbarLJetsParser.

◆ clear()

virtual void EventReco::HyPERParser::clear ( )
pure virtual

◆ getClassificationScore()

virtual float EventReco::HyPERParser::getClassificationScore ( )
pure virtual

◆ getIds()

virtual std::vector< std::vector< int > > EventReco::HyPERParser::getIds ( )
pure virtual

◆ getIndices()

virtual std::vector< std::vector< int > > EventReco::HyPERParser::getIndices ( )
pure virtual

◆ getLabels()

virtual std::vector< std::string > EventReco::HyPERParser::getLabels ( )
pure virtual

The following methods return the reconstruction labels, scores and related indices from the parser object.

This should be used after the reconstructOutputs method.

Implemented in EventReco::HyPERTtbarAllHadronicParser, EventReco::HyPERTtbarDiLeptonParser, and EventReco::HyPERTtbarLJetsParser.

◆ getONNXOutputs()

virtual void EventReco::HyPERParser::getONNXOutputs ( HyPERModel & hyperModel)
pure virtual

This method takes the information from the onnxruntime object and builds the outputs on the parser object.

Implemented in EventReco::HyPERTtbarAllHadronicParser, EventReco::HyPERTtbarDiLeptonParser, and EventReco::HyPERTtbarLJetsParser.

◆ getScores()

virtual std::vector< float > EventReco::HyPERParser::getScores ( )
pure virtual

◆ printOutputsForValidation()

virtual void EventReco::HyPERParser::printOutputsForValidation ( ) const
pure virtual

◆ reconstructOutputs()

virtual void EventReco::HyPERParser::reconstructOutputs ( const HyPERGraph & hyperGraph)
pure virtual

This method implements the reconstruction of the outputs from the parser object into physcally meaningful quantities.

Implemented in EventReco::HyPERTtbarAllHadronicParser, EventReco::HyPERTtbarDiLeptonParser, and EventReco::HyPERTtbarLJetsParser.


The documentation for this class was generated from the following file: