|
11 | 11 | #include "DataFormats/Portable/interface/PortableHostCollection.h"
|
12 | 12 |
|
13 | 13 | // This alias is needed to call the SET_PORTABLEHOSTMULTICOLLECTION_READ_RULES macro without commas.
|
14 |
| -using ZVertexHostSoABase = PortableHostCollection2<reco::ZVertexSoA, reco::ZVertexTracksSoA>; |
| 14 | +using ZVertexHostBase = PortableHostCollection2<reco::ZVertexSoA, reco::ZVertexTracksSoA>; |
15 | 15 |
|
16 |
| -template <int32_t NVTX, int32_t NTRK> |
17 |
| -class ZVertexHostSoA : public ZVertexHostSoABase { |
| 16 | +class ZVertexHost : public ZVertexHostBase { |
18 | 17 | public:
|
19 |
| - ZVertexHostSoA() = default; |
| 18 | + ZVertexHost() = default; // necessary for ROOT dictionaries |
20 | 19 |
|
21 | 20 | // Constructor which specifies the queue
|
22 | 21 | template <typename TQueue>
|
23 |
| - explicit ZVertexHostSoA(TQueue queue) |
24 |
| - : PortableHostCollection2<reco::ZVertexSoA, reco::ZVertexTracksSoA>({{NVTX, NTRK}}, queue) {} |
| 22 | + explicit ZVertexHost(TQueue queue) |
| 23 | + : PortableHostCollection2<reco::ZVertexSoA, reco::ZVertexTracksSoA>({{zVertex::MAXVTX, zVertex::MAXTRACKS}}, |
| 24 | + queue) {} |
25 | 25 |
|
26 | 26 | // Constructor which specifies the DevHost
|
27 |
| - explicit ZVertexHostSoA(alpaka_common::DevHost const& host) |
28 |
| - : PortableHostCollection2<reco::ZVertexSoA, reco::ZVertexTracksSoA>({{NVTX, NTRK}}, host) {} |
| 27 | + explicit ZVertexHost(alpaka_common::DevHost const& host) |
| 28 | + : PortableHostCollection2<reco::ZVertexSoA, reco::ZVertexTracksSoA>({{zVertex::MAXVTX, zVertex::MAXTRACKS}}, |
| 29 | + host) {} |
29 | 30 | };
|
30 | 31 |
|
31 |
| -using ZVertexHost = ZVertexHostSoA<zVertex::MAXVTX, zVertex::MAXTRACKS>; |
32 |
| - |
33 | 32 | #endif // DataFormats_VertexSoA_ZVertexHost_H
|
0 commit comments