ATLAS Offline Software
Loading...
Searching...
No Matches
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
8
10
12
13namespace MuonML {
14
21public:
22 using AthReentrantAlgorithm::AthReentrantAlgorithm;
23
24 StatusCode initialize() override;
25 StatusCode execute(const EventContext& ctx) const override;
26
27private:
28 ToolHandle<MuonML::DVInferenceToolBase> m_inferenceTool{
29 this, "InferenceTool", "MuonML::DVInferenceToolBase/DisplacedVertexInferenceTool"};
30
31 Gaudi::Property<bool> m_writeDVoutput{
32 this, "WriteDVoutput", false, "Whether to write the DV inference output into storegate"};
33
35 this, "TrigCompositeKey", "EF_MuonDVInferenceOutput", "Optional: Dummy xAOD::TrigComposite object to be decorated with DV inference outputs"};
36
37 Gaudi::Property<float> m_scoreThreshold{
38 this, "ScoreThreshold", 0.5f, "DV event score threshold used for the pass decision"};
39 Gaudi::Property<std::string> m_thresholdMode{
40 this, "ThresholdMode", "score", "Quantity compared to ScoreThreshold."};
41 Gaudi::Property<bool> m_printEveryEvent{
42 this, "PrintEveryEvent", false, "Print the DV inference result for every event at INFO level"};
43 bool m_useRawThreshold{false};
44 std::string m_thresholdModeName{"score"};
45};
46
47} // namespace MuonML
48
49#endif
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::WriteHandleKey< xAOD::TrigCompositeContainer > m_trigCompositeKey
Gaudi::Property< bool > m_writeDVoutput
ToolHandle< MuonML::DVInferenceToolBase > m_inferenceTool
Gaudi::Property< bool > m_printEveryEvent
std::string m_thresholdModeName
StatusCode initialize() override
StatusCode execute(const EventContext &ctx) const override
Gaudi::Property< float > m_scoreThreshold
Property holding a SG store/key/clid from which a WriteHandle is made.