ATLAS Offline Software
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
#include "
MuonInferenceInterfaces/GraphData.h
"
7
8
namespace
MuonML
{
9
StatusCode
InferenceAlg::initialize
() {
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
Generated on Mon Sep 29 2025 21:11:53 for ATLAS Offline Software by
1.8.18