ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
HyPERAnalysisAlgorithms
HyPERAnalysisAlgorithms
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
12
#include "
HyPERAnalysisAlgorithms/HyPERModel.h
"
13
14
namespace
EventReco
{
20
class
HyPERTtbarLJetsModel
:
public
HyPERModel
{
21
public
:
22
HyPERTtbarLJetsModel
(
const
AthOnnx::IOnnxRuntimeInferenceTool
* trainedOnEven,
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
HyPERModel.h
AthOnnx::IOnnxRuntimeInferenceTool
Interface class for creating Onnx Runtime sessions.
Definition
IOnnxRuntimeInferenceTool.h:48
EventReco::HyPERModel::HyPERModel
HyPERModel(const AthOnnx::IOnnxRuntimeInferenceTool *trainedOnEven, const AthOnnx::IOnnxRuntimeInferenceTool *trainedOnOdd, HyPERTopology topology)
Definition
HyPERModel.h:62
EventReco::HyPERTtbarLJetsModel::getInputNames
std::vector< std::string > getInputNames() const override
Input node names in the order the ONNX graph declares them.
Definition
HyPERTtbarLJetsModel.h:27
EventReco::HyPERTtbarLJetsModel::getModelOutputs
std::vector< HyPEROutputNode > getModelOutputs() const override
Every output node of the ONNX graph, in declaration order.
Definition
HyPERTtbarLJetsModel.h:37
EventReco::HyPERTtbarLJetsModel::getOutputNames
std::vector< std::string > getOutputNames() const override
Model-specific output names consumed by the parser.
Definition
HyPERTtbarLJetsModel.h:45
EventReco::HyPERTtbarLJetsModel::HyPERTtbarLJetsModel
HyPERTtbarLJetsModel(const AthOnnx::IOnnxRuntimeInferenceTool *trainedOnEven, const AthOnnx::IOnnxRuntimeInferenceTool *trainedOnOdd)
Definition
HyPERTtbarLJetsModel.h:22
EventReco
Definition
GraphBase.h:14
EventReco::HyPEROutputDim::Edges
@ Edges
Definition
HyPERModel.h:38
EventReco::HyPEROutputDim::HyperEdges
@ HyperEdges
Definition
HyPERModel.h:38
EventReco::HyPEROutputDim::Single
@ Single
Definition
HyPERModel.h:38
EventReco::HyPERTopology
HyPERTopology
Definition
HyPERModel.h:25
EventReco::HyPERTopology::TtbarLJets
@ TtbarLJets
Definition
HyPERModel.h:27
Generated on
for ATLAS Offline Software by
1.17.0