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