File indexing completed on 2025-07-01 07:53:10
0001
0002
0003
0004
0005
0006
0007
0008
0009 #pragma once
0010
0011 #include "ActsExamples/EventData/SimParticle.hpp"
0012 #include "ActsExamples/EventData/Track.hpp"
0013 #include "ActsExamples/Validation/TrackClassification.hpp"
0014
0015 #include <cstdint>
0016 #include <map>
0017 #include <optional>
0018 #include <vector>
0019
0020 namespace ActsExamples {
0021
0022 enum class TrackMatchClassification {
0023 Unknown = 0,
0024
0025 Matched,
0026
0027 Duplicate,
0028
0029 Fake,
0030 };
0031
0032 struct TrackMatchEntry {
0033 TrackMatchClassification classification{TrackMatchClassification::Unknown};
0034
0035 std::optional<SimBarcode> particle;
0036
0037
0038
0039 std::vector<ParticleHitCount> contributingParticles;
0040 };
0041
0042 struct ParticleMatchEntry {
0043 std::optional<TrackIndexType> track;
0044 std::uint32_t duplicates{};
0045 std::uint32_t fakes{};
0046 };
0047
0048 using TrackParticleMatching = std::map<TrackIndexType, TrackMatchEntry>;
0049 using ParticleTrackMatching = std::map<SimBarcode, ParticleMatchEntry>;
0050
0051 }