CMS 3D CMS Logo

SiPixelClustersHost.h
Go to the documentation of this file.
1 #ifndef DataFormats_SiPixelClusterSoA_interface_SiPixelClustersHost_h
2 #define DataFormats_SiPixelClusterSoA_interface_SiPixelClustersHost_h
3 
4 #include <alpaka/alpaka.hpp>
8 
9 // TODO: The class is created via inheritance of the PortableCollection.
10 // This is generally discouraged, and should be done via composition.
11 // See: https://github.com/cms-sw/cmssw/pull/40465#discussion_r1067364306
12 class SiPixelClustersHost : public PortableHostCollection<SiPixelClustersSoA> {
13 public:
14  SiPixelClustersHost() = default;
15 
16  template <typename TQueue>
17  explicit SiPixelClustersHost(size_t maxModules, TQueue queue)
18  : PortableHostCollection<SiPixelClustersSoA>(maxModules + 1, queue) {}
19 
20  void setNClusters(uint32_t nClusters, int32_t offsetBPIX2) {
23  }
24 
25  uint32_t nClusters() const { return nClusters_h; }
26  int32_t offsetBPIX2() const { return offsetBPIX2_h; }
27 
28 private:
29  uint32_t nClusters_h = 0;
30  int32_t offsetBPIX2_h = 0;
31 };
32 
33 #endif // DataFormats_SiPixelClusterSoA_interface_SiPixelClustersHost_h
void setNClusters(uint32_t nClusters, int32_t offsetBPIX2)
uint32_t nClusters() const
int32_t offsetBPIX2() const
SiPixelClustersHost()=default
SiPixelClustersHost(size_t maxModules, TQueue queue)