CMS 3D CMS Logo

SiPixelClustersDevice.h
Go to the documentation of this file.
1 #ifndef DataFormats_SiPixelClusterSoA_interface_SiPixelClustersDevice_h
2 #define DataFormats_SiPixelClusterSoA_interface_SiPixelClustersDevice_h
3 
4 #include <cstdint>
5 #include <alpaka/alpaka.hpp>
11 
12 template <typename TDev>
13 class SiPixelClustersDevice : public PortableDeviceCollection<SiPixelClustersSoA, TDev> {
14 public:
15  SiPixelClustersDevice() = default;
16 
17  template <typename TQueue>
18  explicit SiPixelClustersDevice(size_t maxModules, TQueue queue)
19  : PortableDeviceCollection<SiPixelClustersSoA, TDev>(maxModules + 1, queue) {}
20 
21  // Constructor which specifies the SoA size
22  explicit SiPixelClustersDevice(size_t maxModules, TDev const &device)
23  : PortableDeviceCollection<SiPixelClustersSoA, TDev>(maxModules + 1, device) {}
24 
25  void setNClusters(uint32_t nClusters, int32_t offsetBPIX2) {
28  }
29 
30  uint32_t nClusters() const { return nClusters_h; }
31  int32_t offsetBPIX2() const { return offsetBPIX2_h; }
32 
33 private:
34  uint32_t nClusters_h = 0;
35  int32_t offsetBPIX2_h = 0;
36 };
37 
38 #endif // DataFormats_SiPixelClusterSoA_interface_SiPixelClustersDevice_h
SiPixelClustersDevice()=default
SiPixelClustersDevice(size_t maxModules, TQueue queue)
SiPixelClustersDevice(size_t maxModules, TDev const &device)
void setNClusters(uint32_t nClusters, int32_t offsetBPIX2)