ATLAS Offline Software
Loading...
Searching...
No Matches
SegmentTrackCandidateBuilderTool.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_SEGMENTTRACKCANDIDATEBUILDERTOOL_H
5#define MUONINFERENCE_SEGMENTTRACKCANDIDATEBUILDERTOOL_H
6
9#include "Gaudi/Property.h"
10
11namespace MuonML {
12 class SegmentTrackCandidateBuilderTool final : public extends<AthAlgTool, ISegmentTrackCandidateBuilderTool> {
13 public:
14 using base_class::base_class;
15 StatusCode buildCandidates(const EventContext& ctx,
16 const SegmentEdgeGraph& graph,
17 const std::vector<SegmentEdgeScore>& scores,
18 std::vector<std::vector<unsigned>>& candidateIdsPerSegment) const override;
19 private:
20 Gaudi::Property<float> m_edgeThreshold{
21 this, "EdgeThreshold", 0.25f,
22 "Loose edge probability threshold used for recall/recovery components"};
23
24 Gaudi::Property<float> m_overlapThreshold{
25 this, "OverlapThreshold", 0.8f,
26 "High-purity edge probability threshold used to build core components"};
27
28 Gaudi::Property<bool> m_useRecoveryComponents{
29 this, "UseRecoveryComponents", true,
30 "Add additional low-threshold connected components to recover true candidates missed by the high-purity core"};
31
32 Gaudi::Property<bool> m_symmetrizeDirectedEdges{
33 this, "SymmetrizeDirectedEdges", true,
34 "Use max(score i->j, score j->i) for undirected segment association"};
35
36 Gaudi::Property<bool> m_addAllSegmentsRecoveryCandidate{
37 this, "AddAllSegmentsRecoveryCandidate", false,
38 "Add one final candidate containing all graph nodes; use only for no-loss validation/debugging"};
39
40 Gaudi::Property<bool> m_keepIsolatedSegments{this, "KeepIsolatedSegments", false};
41 Gaudi::Property<unsigned> m_minCandidateSize{this, "MinCandidateSize", 2};
42 };
43}
44#endif
StatusCode buildCandidates(const EventContext &ctx, const SegmentEdgeGraph &graph, const std::vector< SegmentEdgeScore > &scores, std::vector< std::vector< unsigned > > &candidateIdsPerSegment) const override