ATLAS Offline Software
Loading...
Searching...
No Matches
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 ATH_CHECK(m_inferenceTools.retrieve());
8 return StatusCode::SUCCESS;
9}
10
11StatusCode MuonML::InferenceAlg::execute(const EventContext& ctx) const {
12 // Fresh, per-event graph workspace for THIS alg instance
13 MuonML::GraphRawData graphData{};
14
15 // This alg has one tool, but loop is fine.
16 for (const auto& tool : m_inferenceTools) {
17 ATH_CHECK(tool->runGraphInference(ctx, graphData));
18 }
19 return StatusCode::SUCCESS;
20}
#define ATH_CHECK
Evaluate an expression and check for errors.
virtual StatusCode execute(const EventContext &ctx) const override
ToolHandleArray< MuonML::IGraphInferenceTool > m_inferenceTools
virtual StatusCode initialize() override
Helper struct to ship the Graph from the space point buckets to ONNX.
Definition GraphData.h:25