4#ifndef MUONINFERENCE_DVINFERENCEALG_H
5#define MUONINFERENCE_DVINFERENCEALG_H
10#include "GaudiKernel/ToolHandle.h"
27 using AthReentrantAlgorithm::AthReentrantAlgorithm;
30 StatusCode
execute(
const EventContext& ctx)
const override;
34 this,
"InferenceTool",
"MuonML::DVInferenceToolBase/DisplacedVertexInferenceTool"};
37 this,
"EventInfoKey",
"EventInfo",
"Optional validation EventInfo object to decorate with DV inference output"};
40 this,
"DecorateEventInfo",
false,
"Opt-in: Decorate EventInfo with DV classifier outputs"};
43 this,
"ScoreDecoration",
"EventInfo.dv_score",
"Optional: Event-level DV signal probability"};
45 this,
"RawOutputDecoration",
"EventInfo.dv_rawOutput",
"Optional: Raw event-level DV ONNX output"};
47 this,
"PassDecoration",
"EventInfo.dv_pass",
"Optional: Whether DV score passes ScoreThreshold"};
49 this,
"NNodesDecoration",
"EventInfo.dv_nNodes",
"Optional: Number of nodes in the DV event graph"};
51 this,
"NEdgesDecoration",
"EventInfo.dv_nEdges",
"Optional: Number of directed edges in the DV event graph"};
54 this,
"ScoreThreshold", 0.5f,
"DV event score threshold used for the pass decision"};
56 this,
"ThresholdMode",
"score",
"Quantity compared to ScoreThreshold."};
58 this,
"PrintEveryEvent",
false,
"Print the DV inference result for every event at INFO level"};
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.
An algorithm that can be simultaneously executed in multiple threads.
Run the DV event classifier and publish one score per event.
Gaudi::Property< std::string > m_thresholdMode
SG::WriteDecorHandleKey< xAOD::EventInfo > m_nNodesDecorKey
Gaudi::Property< bool > m_decorateEventInfo
SG::ReadHandleKey< xAOD::EventInfo > m_eventInfoKey
SG::WriteDecorHandleKey< xAOD::EventInfo > m_scoreDecorKey
SG::WriteDecorHandleKey< xAOD::EventInfo > m_passDecorKey
ToolHandle< MuonML::DVInferenceToolBase > m_inferenceTool
Gaudi::Property< bool > m_printEveryEvent
std::string m_thresholdModeName
StatusCode initialize() override
SG::WriteDecorHandleKey< xAOD::EventInfo > m_rawDecorKey
SG::WriteDecorHandleKey< xAOD::EventInfo > m_nEdgesDecorKey
StatusCode execute(const EventContext &ctx) const override
Gaudi::Property< float > m_scoreThreshold
Property holding a SG store/key/clid from which a ReadHandle is made.
Property holding a SG store/key/clid/attr name from which a WriteDecorHandle is made.