ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonPhaseII
MuonLearning
MuonInference
src
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
6
StatusCode
MuonML::InferenceAlg::initialize
() {
7
ATH_CHECK
(
m_inferenceTools
.retrieve());
8
return
StatusCode::SUCCESS;
9
}
10
11
StatusCode
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
}
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
InferenceAlg.h
MuonML::InferenceAlg::execute
virtual StatusCode execute(const EventContext &ctx) const override
Definition
InferenceAlg.cxx:11
MuonML::InferenceAlg::m_inferenceTools
ToolHandleArray< MuonML::IGraphInferenceTool > m_inferenceTools
Definition
InferenceAlg.h:23
MuonML::InferenceAlg::initialize
virtual StatusCode initialize() override
Definition
InferenceAlg.cxx:6
MuonML::GraphRawData
Helper struct to ship the Graph from the space point buckets to ONNX.
Definition
GraphData.h:25
Generated on
for ATLAS Offline Software by
1.17.0