4#ifndef MUONINFERENCE_SEGMENTEDGECLASSIFIERTOOL_H
5#define MUONINFERENCE_SEGMENTEDGECLASSIFIERTOOL_H
10#include "Gaudi/Property.h"
18#include <unordered_set>
67 using BucketInferenceToolBase::BucketInferenceToolBase;
90 std::vector<SegmentEdgeScore>&
scores)
const override;
98 const std::vector<SegmentEdgeScore>&
scores)
const;
105 const std::unordered_set<const xAOD::MuonSegment*>& bucketRetained,
111 "Number of muon sectors used when applying wrap-around sector distance"};
113 "Keep at most this many quality-ranked segments per (sector, chamber, eta) bucket before inference; 0 keeps all"};
115 "Keep at most this many geometrical neighbour pairs per node before ONNX inference; 0 keeps all"};
117 this,
"MaxEdgesPerTargetChamberBeforeInference", 0,
118 "Keep at most this many pre-ONNX neighbours from one target chamber per node; 0 keeps all"};
120 "Drop same-chamber segment pairs before ONNX inference"};
122 "Remove nodes without a retained pre-ONNX edge before creating ONNX tensors"};
126 Gaudi::Property<std::string>
m_outputName{
this,
"OutputName",
"logits"};
130 this,
"EnableTruthDiagnostics",
false,
131 "MC-only: fill SegmentEdgeGraph's truth diagnostics."};
133 this,
"TruthLinkKey",
"MuonSegmentsFromR4.truthParticleLink"};
std::vector< std::vector< float > > scores
Generic feature definitions and utilities shared across ML inference tools.
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
Property holding a SG store/key/clid/attr name from which a ReadDecorHandle is made.
MuonSegmentContainer_v1 MuonSegmentContainer
Definition of the current "MuonSegment container version".
Segment features derived from or stored in bucket metadata.
int chamberIndex
Muon chamber index of the segment.
int sector
Sector number (typically 0–15).
int layers
Total number of active layers in the segment.
int nSegments
Count of segments in the same chamber/sector/eta group.
Helper struct to ship the Graph from the space point buckets to ONNX.