Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-26 08:22:01

0001 /** TRACCC library, part of the ACTS project (R&D line)
0002  *
0003  * (c) 2021-2022 CERN for the benefit of the ACTS project
0004  *
0005  * Mozilla Public License Version 2.0
0006  */
0007 
0008 #pragma once
0009 
0010 #include "traccc/definitions/qualifiers.hpp"
0011 #include "traccc/edm/container.hpp"
0012 
0013 namespace traccc {
0014 
0015 /// location of spacepoint in internal spacepoint container
0016 struct sp_location {
0017   /// index of the bin of the spacepoint grid
0018   unsigned int bin_idx;
0019   /// index of the spacepoint in the bin
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 }  // namespace traccc