ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
MuonSpectrometer
MuonPhaseII
MuonLearning
MuonInference
src
DVInferenceAlg.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
#ifndef MUONINFERENCE_DVINFERENCEALG_H
5
#define MUONINFERENCE_DVINFERENCEALG_H
6
7
#include <string>
8
9
#include "
AthenaBaseComps/AthReentrantAlgorithm.h
"
10
#include "GaudiKernel/ToolHandle.h"
11
#include "
StoreGate/ReadHandleKey.h
"
12
#include "
StoreGate/WriteDecorHandleKey.h
"
13
14
#include "
xAODEventInfo/EventInfo.h
"
15
16
#include "
DVInferenceToolBase.h
"
17
18
namespace
MuonML
{
19
25
class
DVInferenceAlg
final :
public
AthReentrantAlgorithm
{
26
public
:
27
using
AthReentrantAlgorithm::AthReentrantAlgorithm;
28
29
StatusCode
initialize
()
override
;
30
StatusCode
execute
(
const
EventContext& ctx)
const override
;
31
32
private
:
33
ToolHandle<MuonML::DVInferenceToolBase>
m_inferenceTool
{
34
this
,
"InferenceTool"
,
"MuonML::DVInferenceToolBase/DisplacedVertexInferenceTool"
};
35
36
SG::ReadHandleKey<xAOD::EventInfo>
m_eventInfoKey
{
37
this
,
"EventInfoKey"
,
"EventInfo"
,
"Optional validation EventInfo object to decorate with DV inference output"
};
38
39
Gaudi::Property<bool>
m_decorateEventInfo
{
40
this
,
"DecorateEventInfo"
,
false
,
"Opt-in: Decorate EventInfo with DV classifier outputs"
};
41
42
SG::WriteDecorHandleKey<xAOD::EventInfo>
m_scoreDecorKey
{
43
this
,
"ScoreDecoration"
,
"EventInfo.dv_score"
,
"Optional: Event-level DV signal probability"
};
44
SG::WriteDecorHandleKey<xAOD::EventInfo>
m_rawDecorKey
{
45
this
,
"RawOutputDecoration"
,
"EventInfo.dv_rawOutput"
,
"Optional: Raw event-level DV ONNX output"
};
46
SG::WriteDecorHandleKey<xAOD::EventInfo>
m_passDecorKey
{
47
this
,
"PassDecoration"
,
"EventInfo.dv_pass"
,
"Optional: Whether DV score passes ScoreThreshold"
};
48
SG::WriteDecorHandleKey<xAOD::EventInfo>
m_nNodesDecorKey
{
49
this
,
"NNodesDecoration"
,
"EventInfo.dv_nNodes"
,
"Optional: Number of nodes in the DV event graph"
};
50
SG::WriteDecorHandleKey<xAOD::EventInfo>
m_nEdgesDecorKey
{
51
this
,
"NEdgesDecoration"
,
"EventInfo.dv_nEdges"
,
"Optional: Number of directed edges in the DV event graph"
};
52
53
Gaudi::Property<float>
m_scoreThreshold
{
54
this
,
"ScoreThreshold"
, 0.5f,
"DV event score threshold used for the pass decision"
};
55
Gaudi::Property<std::string>
m_thresholdMode
{
56
this
,
"ThresholdMode"
,
"score"
,
"Quantity compared to ScoreThreshold."
};
57
Gaudi::Property<bool>
m_printEveryEvent
{
58
this
,
"PrintEveryEvent"
,
false
,
"Print the DV inference result for every event at INFO level"
};
59
bool
m_useRawThreshold
{
false
};
60
std::string
m_thresholdModeName
{
"score"
};
61
};
62
63
}
// namespace MuonML
64
65
#endif
AthReentrantAlgorithm.h
DVInferenceToolBase.h
ReadHandleKey.h
Property holding a SG store/key/clid from which a ReadHandle is made.
WriteDecorHandleKey.h
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
AthReentrantAlgorithm
An algorithm that can be simultaneously executed in multiple threads.
Definition
AthReentrantAlgorithm.h:74
MuonML::DVInferenceAlg
Run the DV event classifier and publish one score per event.
Definition
DVInferenceAlg.h:25
MuonML::DVInferenceAlg::m_thresholdMode
Gaudi::Property< std::string > m_thresholdMode
Definition
DVInferenceAlg.h:55
MuonML::DVInferenceAlg::m_nNodesDecorKey
SG::WriteDecorHandleKey< xAOD::EventInfo > m_nNodesDecorKey
Definition
DVInferenceAlg.h:48
MuonML::DVInferenceAlg::m_decorateEventInfo
Gaudi::Property< bool > m_decorateEventInfo
Definition
DVInferenceAlg.h:39
MuonML::DVInferenceAlg::m_eventInfoKey
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
Definition
DVInferenceAlg.h:36
MuonML::DVInferenceAlg::m_scoreDecorKey
SG::WriteDecorHandleKey< xAOD::EventInfo > m_scoreDecorKey
Definition
DVInferenceAlg.h:42
MuonML::DVInferenceAlg::m_useRawThreshold
bool m_useRawThreshold
Definition
DVInferenceAlg.h:59
MuonML::DVInferenceAlg::m_passDecorKey
SG::WriteDecorHandleKey< xAOD::EventInfo > m_passDecorKey
Definition
DVInferenceAlg.h:46
MuonML::DVInferenceAlg::m_inferenceTool
ToolHandle< MuonML::DVInferenceToolBase > m_inferenceTool
Definition
DVInferenceAlg.h:33
MuonML::DVInferenceAlg::m_printEveryEvent
Gaudi::Property< bool > m_printEveryEvent
Definition
DVInferenceAlg.h:57
MuonML::DVInferenceAlg::m_thresholdModeName
std::string m_thresholdModeName
Definition
DVInferenceAlg.h:60
MuonML::DVInferenceAlg::initialize
StatusCode initialize() override
Definition
DVInferenceAlg.cxx:11
MuonML::DVInferenceAlg::m_rawDecorKey
SG::WriteDecorHandleKey< xAOD::EventInfo > m_rawDecorKey
Definition
DVInferenceAlg.h:44
MuonML::DVInferenceAlg::m_nEdgesDecorKey
SG::WriteDecorHandleKey< xAOD::EventInfo > m_nEdgesDecorKey
Definition
DVInferenceAlg.h:50
MuonML::DVInferenceAlg::execute
StatusCode execute(const EventContext &ctx) const override
Definition
DVInferenceAlg.cxx:37
MuonML::DVInferenceAlg::m_scoreThreshold
Gaudi::Property< float > m_scoreThreshold
Definition
DVInferenceAlg.h:53
SG::ReadHandleKey
Property holding a SG store/key/clid from which a ReadHandle is made.
Definition
StoreGate/StoreGate/ReadHandleKey.h:40
SG::WriteDecorHandleKey
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
Definition
StoreGate/StoreGate/WriteDecorHandleKey.h:90
MuonML
Definition
BucketGraphUtils.h:19
EventInfo.h
Generated on
for ATLAS Offline Software by
1.17.0