CMS 3D CMS Logo

ZVertexUtilities.h
Go to the documentation of this file.
1 #ifndef CUDADataFormats_Vertex_ZVertexUtilities_h
2 #define CUDADataFormats_Vertex_ZVertexUtilities_h
3 
4 #include <cuda_runtime.h>
6 
8  SOA_COLUMN(int16_t, idv),
9  SOA_COLUMN(float, zv),
10  SOA_COLUMN(float, wv),
11  SOA_COLUMN(float, chi2),
12  SOA_COLUMN(float, ptv2),
13  SOA_COLUMN(int32_t, ndof),
14  SOA_COLUMN(uint16_t, sortInd),
15  SOA_SCALAR(uint32_t, nvFinal))
16 
17 // Previous ZVertexSoA class methods.
18 // They operate on View and ConstView of the ZVertexSoA.
19 namespace zVertex {
20  // Common types for both Host and Device code
24 
25  namespace utilities {
26 
27  static constexpr uint32_t MAXTRACKS = 128 * 1024;
28  static constexpr uint32_t MAXVTX = 1024;
29 
30  __host__ __device__ inline void init(ZVertexSoAView &vertices) { vertices.nvFinal() = 0; }
31 
32  } // namespace utilities
33 } // namespace zVertex
34 
35 #endif
#define __host__
float *__restrict__ ptv2
Definition: gpuSortByPt2.h:26
static constexpr uint32_t MAXVTX
float *__restrict__ wv
float *__restrict__ zv
int init
Definition: HydjetWrapper.h:66
ZVertexSoAHeterogeneousLayout<>::View ZVertexSoAView
#define GENERATE_SOA_LAYOUT(CLASS,...)
Definition: SoALayout.h:426
#define SOA_SCALAR(TYPE, NAME)
Definition: SoACommon.h:553
uint16_t *__restrict__ sortInd
Definition: gpuSortByPt2.h:27
ZVertexSoAHeterogeneousLayout<>::ConstView ZVertexSoAConstView
#define __device__
#define SOA_COLUMN(TYPE, NAME)
Definition: SoACommon.h:554
static constexpr uint32_t MAXTRACKS