ATLAS Offline Software
Loading...
Searching...
No Matches
HyPERTtbarLJetsModel.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_HYPERTTBARLJETSMODEL_H
6#define HYPERANALYSISALGORITHMS_HYPERTTBARLJETSMODEL_H
7
8#include <string>
9#include <vector>
10
11// HyPER includes
13
14namespace EventReco {
21 public:
23 const AthOnnx::IOnnxRuntimeInferenceTool* trainedOnOdd)
24 : HyPERModel(trainedOnEven, trainedOnOdd, HyPERTopology::TtbarLJets) {}
25
26 // Input nodes in the order declared by the ONNX graph.
27 std::vector<std::string> getInputNames() const override {
28 return std::vector<std::string>{"x_s", "edge_index",
29 "edge_attr_s", "u_s",
30 "batch", "edge_index_h",
31 "batch_hyperedge"};
32 }
33
34 // Every output of the ONNX graph, in declaration order. Note that
35 // "batch_hyperedge" is passed straight through by the model and is not
36 // consumed by the parser, but it still has to be bound.
37 std::vector<HyPEROutputNode> getModelOutputs() const override {
38 return std::vector<HyPEROutputNode>{
39 {"hyperedge_prime", true, HyPEROutputDim::HyperEdges, true},
40 {"batch_hyperedge", false, HyPEROutputDim::HyperEdges, false},
41 {"edge_prime", true, HyPEROutputDim::Edges, true},
42 {"classification_score", true, HyPEROutputDim::Single, true}};
43 }
44
45 std::vector<std::string> getOutputNames() const override {
46 return std::vector<std::string>{"hyperedge_prime", "edge_prime",
47 "classification_score"};
48 }
49};
50} // namespace EventReco
51
52#endif // HYPERANALYSISALGORITHMS_HYPERTTBARLJETSMODEL_H
Interface class for creating Onnx Runtime sessions.
HyPERModel(const AthOnnx::IOnnxRuntimeInferenceTool *trainedOnEven, const AthOnnx::IOnnxRuntimeInferenceTool *trainedOnOdd, HyPERTopology topology)
Definition HyPERModel.h:62
std::vector< std::string > getInputNames() const override
Input node names in the order the ONNX graph declares them.
std::vector< HyPEROutputNode > getModelOutputs() const override
Every output node of the ONNX graph, in declaration order.
std::vector< std::string > getOutputNames() const override
Model-specific output names consumed by the parser.
HyPERTtbarLJetsModel(const AthOnnx::IOnnxRuntimeInferenceTool *trainedOnEven, const AthOnnx::IOnnxRuntimeInferenceTool *trainedOnOdd)