Loading [MathJax]/extensions/tex2jax.js
ATLAS Offline Software
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
InferenceAlg.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3 */
4 #include "InferenceAlg.h"
5 
7 
8 namespace MuonML{
10  if (m_inferenceTools.empty()) {
11  ATH_MSG_ERROR("Provide at least one inference tool");
12  return StatusCode::FAILURE;
13  }
14  ATH_CHECK(m_inferenceTools.retrieve());
15  return StatusCode::SUCCESS;
16  }
17  StatusCode InferenceAlg::execute(const EventContext& ctx) const {
18  GraphRawData graphData{};
19  for (const auto& infTool : m_inferenceTools) {
20  ATH_CHECK(infTool->runGraphInference(ctx, graphData));
21  }
22  return StatusCode::SUCCESS;
23  }
24 }
MuonML::InferenceAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override final
Definition: InferenceAlg.cxx:17
MuonML::InferenceAlg::m_inferenceTools
ToolHandleArray< IGraphInferenceTool > m_inferenceTools
Definition: InferenceAlg.h:18
InferenceAlg.h
MuonML::InferenceAlg::initialize
virtual StatusCode initialize() override final
Definition: InferenceAlg.cxx:9
MuonML
Definition: GraphBucketFilterTool.cxx:9
ATH_MSG_ERROR
#define ATH_MSG_ERROR(x)
Definition: AthMsgStreamMacros.h:33
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ATH_CHECK
#define ATH_CHECK
Definition: AthCheckMacros.h:40
MuonML::GraphRawData
Helper struct to ship the Graph from the space point buckets to ONNX.
Definition: GraphData.h:25
GraphData.h