Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
GraphData.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 #ifndef MUONINFERENCEINTERACES_GRAPHNODE_H
5 #define MUONINFERENCEINTERACES_GRAPHNODE_H
6 
7 #include <onnxruntime_cxx_api.h>
8 #include <vector>
9 #include <memory>
10 
11 namespace MuonML{
12  class NodeFeatureList;
13 
15  struct InferenceGraph {
17  std::vector<Ort::Value> dataTensor{};
20  std::vector<const char*> nameTensor{};
21  };
22 
25  struct GraphRawData {
26  using FeatureVec_t = std::vector<float>;
27  using NodeConnectVec_t = std::vector<int64_t>;
28  using EdgeCounterVec_t = std::vector<int64_t>;
40  std::unique_ptr<InferenceGraph> graph{};
41 
46  unsigned int nodeIndex{0};
47  };
48 }
49 
50 #endif
xAOD::iterator
JetConstituentVector::iterator iterator
Definition: JetConstituentVector.cxx:68
MuonML::InferenceGraph::nameTensor
std::vector< const char * > nameTensor
Vector of the input names.
Definition: GraphData.h:20
MuonML::GraphRawData::spacePointsInBucket
NodeConnectVec_t spacePointsInBucket
Vector keeping track of how many space points are in each parsed bucket.
Definition: GraphData.h:36
MuonML::GraphRawData::NodeConnectVec_t
std::vector< int64_t > NodeConnectVec_t
Definition: GraphData.h:27
MuonML::GraphRawData::graph
std::unique_ptr< InferenceGraph > graph
Pointer to the graph to be parsed to ONNX.
Definition: GraphData.h:40
MuonML::NodeFeatureList
Definition: NodeFeatureList.h:14
MuonML::GraphRawData::FeatureVec_t
std::vector< float > FeatureVec_t
Definition: GraphData.h:26
MuonML::GraphRawData::desEdges
EdgeCounterVec_t desEdges
Vect
Definition: GraphData.h:34
MuonML
Definition: GraphBucketFilterTool.cxx:9
MuonML::InferenceGraph
Helper struct containing all the information needed to process
Definition: GraphData.h:15
MuonML::GraphRawData::EdgeCounterVec_t
std::vector< int64_t > EdgeCounterVec_t
Definition: GraphData.h:28
MuonML::GraphRawData::srcEdges
EdgeCounterVec_t srcEdges
Vector encoding the source index of the.
Definition: GraphData.h:32
MuonML::GraphRawData::featureLeaves
FeatureVec_t featureLeaves
Vector containing all features.
Definition: GraphData.h:30
MuonML::GraphRawData
Helper struct to ship the Graph from the space point buckets to ONNX.
Definition: GraphData.h:25
MuonML::InferenceGraph::dataTensor
std::vector< Ort::Value > dataTensor
Vector of the inference input tensors.
Definition: GraphData.h:17
MuonML::GraphRawData::previousList
const NodeFeatureList * previousList
Pointer to the latest parsed NodeFeatureList.
Definition: GraphData.h:38
MuonML::GraphRawData::currLeave
std::vector< float >::iterator currLeave
The following variables are needed to fill the consistently the raw data for the Graph Building.
Definition: GraphData.h:44
MuonML::GraphRawData::nodeIndex
unsigned int nodeIndex
Number of the already filled nodes.
Definition: GraphData.h:46