File indexing completed on 2026-07-26 08:21:58
0001
0002
0003
0004
0005
0006
0007
0008 #pragma once
0009
0010
0011 #include <ostream>
0012
0013 namespace traccc::edm {
0014
0015
0016
0017
0018
0019
0020 struct track_constituent_link {
0021
0022 enum constituent_type : unsigned short {
0023 measurement = 0,
0024 track_state = 1
0025 };
0026
0027 unsigned short type;
0028 unsigned int index;
0029
0030
0031
0032
0033
0034 bool operator==(const track_constituent_link&) const = default;
0035
0036 private:
0037
0038 TRACCC_HOST
0039 friend std::ostream& operator<<(std::ostream& os,
0040 const track_constituent_link& l) {
0041 if (l.type == constituent_type::measurement) {
0042 os << "measurement index: " << l.index;
0043 } else if (l.type == constituent_type::track_state) {
0044 os << "track state index: " << l.index;
0045 } else {
0046 os << "ERROR: Unknown link type!";
0047 }
0048
0049 return os;
0050 }
0051
0052 };
0053
0054 }