File indexing completed on 2024-04-06 12:05:23
0001 #ifndef DataFormats_VertexSoA_interface_ZVertexSoA_h
0002 #define DataFormats_VertexSoA_interface_ZVertexSoA_h
0003
0004 #include <alpaka/alpaka.hpp>
0005
0006 #include <Eigen/Core>
0007
0008 #include "DataFormats/SoATemplate/interface/SoALayout.h"
0009
0010 namespace reco {
0011
0012 GENERATE_SOA_LAYOUT(ZVertexLayout,
0013 SOA_COLUMN(int16_t, idv),
0014 SOA_COLUMN(float, zv),
0015 SOA_COLUMN(float, wv),
0016 SOA_COLUMN(float, chi2),
0017 SOA_COLUMN(float, ptv2),
0018 SOA_COLUMN(int32_t, ndof),
0019 SOA_COLUMN(uint16_t, sortInd),
0020 SOA_SCALAR(uint32_t, nvFinal))
0021
0022
0023 using ZVertexSoA = ZVertexLayout<>;
0024 using ZVertexSoAView = ZVertexSoA::View;
0025 using ZVertexSoAConstView = ZVertexSoA::ConstView;
0026
0027 ALPAKA_FN_HOST_ACC ALPAKA_FN_INLINE void init(ZVertexSoAView &vertices) { vertices.nvFinal() = 0; }
0028
0029 }
0030
0031 #endif