File indexing completed on 2026-07-26 08:22:01
0001
0002
0003
0004
0005
0006
0007
0008 #pragma once
0009
0010 #include "traccc/definitions/qualifiers.hpp"
0011 #include "traccc/edm/container.hpp"
0012
0013 namespace traccc {
0014
0015
0016 struct sp_location {
0017
0018 unsigned int bin_idx;
0019
0020 unsigned int sp_idx;
0021 };
0022
0023 inline TRACCC_HOST_DEVICE bool operator==(const sp_location& lhs,
0024 const sp_location& rhs) {
0025 return (lhs.bin_idx == rhs.bin_idx && lhs.sp_idx == rhs.sp_idx);
0026 }
0027
0028 inline TRACCC_HOST_DEVICE bool operator!=(const sp_location& lhs,
0029 const sp_location& rhs) {
0030 return (lhs.bin_idx != rhs.bin_idx || lhs.sp_idx != rhs.sp_idx);
0031 }
0032
0033 }