CMS 3D CMS Logo

PixelVertexWorkSpaceUtilities.h
Go to the documentation of this file.
1 #ifndef RecoTracker_PixelVertexFinding_plugins_PixelVertexWorkSpaceUtilities_h
2 #define RecoTracker_PixelVertexFinding_plugins_PixelVertexWorkSpaceUtilities_h
3 
4 #include <cuda_runtime.h>
6 
7 // Intermediate data used in the vertex reco algos
8 // For internal use only
10  SOA_COLUMN(uint16_t, itrk), // index of original track
11  SOA_COLUMN(float, zt), // input track z at bs
12  SOA_COLUMN(float, ezt2), // input error^2 on the above
13  SOA_COLUMN(float, ptt2), // input pt^2 on the above
14  SOA_COLUMN(uint8_t, izt), // interized z-position of input tracks
15  SOA_COLUMN(int32_t, iv), // vertex index for each associated track
16  SOA_SCALAR(uint32_t, ntrks), // number of "selected tracks"
17  SOA_SCALAR(uint32_t, nvIntermediate)) // the number of vertices after splitting pruning etc.
18 
19 // Methods that operate on View and ConstView of the WorkSpaceSoALayout.
20 namespace gpuVertexFinder {
21  namespace workSpace {
25 
26  namespace utilities {
27  __host__ __device__ inline void init(PixelVertexWorkSpaceSoAView &workspace_view) {
28  workspace_view.ntrks() = 0;
29  workspace_view.nvIntermediate() = 0;
30  }
31  } // namespace utilities
32  } // namespace workSpace
33 } // namespace gpuVertexFinder
34 
35 #endif
int32_t *__restrict__ iv
#define __host__
PixelVertexWSSoALayout<>::View PixelVertexWorkSpaceSoAView
float const *__restrict__ zt
PixelVertexWSSoALayout<>::ConstView PixelVertexWorkSpaceSoAConstView
#define GENERATE_SOA_LAYOUT(CLASS,...)
Definition: SoALayout.h:426
#define SOA_SCALAR(TYPE, NAME)
Definition: SoACommon.h:553
float const *__restrict__ ezt2
__host__ __device__ void init(PixelVertexWorkSpaceSoAView &workspace_view)
float const *__restrict__ ptt2
Definition: gpuSortByPt2.h:22
#define __device__
#define SOA_COLUMN(TYPE, NAME)
Definition: SoACommon.h:554