File indexing completed on 2024-09-07 04:38:05
0001 #ifndef RecoVertex_PixelVertexFinding_plugins_PixelVertexWorkSpaceUtilities_h
0002 #define RecoVertex_PixelVertexFinding_plugins_PixelVertexWorkSpaceUtilities_h
0003
0004 #include <cuda_runtime.h>
0005 #include "DataFormats/SoATemplate/interface/SoALayout.h"
0006
0007
0008
0009 GENERATE_SOA_LAYOUT(PixelVertexWSSoALayout,
0010 SOA_COLUMN(uint16_t, itrk),
0011 SOA_COLUMN(float, zt),
0012 SOA_COLUMN(float, ezt2),
0013 SOA_COLUMN(float, ptt2),
0014 SOA_COLUMN(uint8_t, izt),
0015 SOA_COLUMN(int32_t, iv),
0016 SOA_SCALAR(uint32_t, ntrks),
0017 SOA_SCALAR(uint32_t, nvIntermediate))
0018
0019
0020 namespace gpuVertexFinder {
0021 namespace workSpace {
0022 using PixelVertexWorkSpaceSoALayout = PixelVertexWSSoALayout<>;
0023 using PixelVertexWorkSpaceSoAView = PixelVertexWSSoALayout<>::View;
0024 using PixelVertexWorkSpaceSoAConstView = PixelVertexWSSoALayout<>::ConstView;
0025
0026 namespace utilities {
0027 __host__ __device__ inline void init(PixelVertexWorkSpaceSoAView &workspace_view) {
0028 workspace_view.ntrks() = 0;
0029 workspace_view.nvIntermediate() = 0;
0030 }
0031 }
0032 }
0033 }
0034
0035 #endif