CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HGCUncalibRecHitDevice.h
Go to the documentation of this file.
1 #ifndef CUDADAtaFormats_HGCal_HGCUncalibRecHitDevice_H
2 #define CUDADAtaFormats_HGCal_HGCUncalibRecHitDevice_H
3 
4 #include <cassert>
5 #include <numeric>
6 
10 
12 public:
13  HGCUncalibRecHitDevice() = default;
14  explicit HGCUncalibRecHitDevice(uint32_t nhits, const cudaStream_t &stream);
15  ~HGCUncalibRecHitDevice() = default;
16 
21 
23  HGCUncalibRecHitSoA get() const { return soa_; }
24  uint32_t nHits() const { return nhits_; }
25  uint32_t pad() const { return pad_; }
26  uint32_t nBytes() const { return size_tot_; }
27 
28 private:
31  static constexpr std::array<int, memory::npointers::ntypes_hgcuncalibrechits_soa> sizes_ = {
34 
35  uint32_t pad_;
36  uint32_t nhits_;
37  uint32_t size_tot_;
38 };
39 
40 #endif //CUDADAtaFormats_HGCal_HGCUncalibRecHitDevice_H
cms::cuda::device::unique_ptr< std::byte[]> ptr_
HGCUncalibRecHitDevice()=default
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
std::unique_ptr< T, impl::DeviceDeleter > unique_ptr
HGCUncalibRecHitDevice & operator=(const HGCUncalibRecHitDevice &)=delete
constexpr unsigned uint32_hgcuncalibrechits_soa
static constexpr std::array< int, memory::npointers::ntypes_hgcuncalibrechits_soa > sizes_
~HGCUncalibRecHitDevice()=default
constexpr unsigned float_hgcuncalibrechits_soa