CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HcalQIECodersGPU.h
Go to the documentation of this file.
1 #ifndef CondFormats_HcalObjects_interface_HcalQIECodersGPU_h
2 #define CondFormats_HcalObjects_interface_HcalQIECodersGPU_h
3 
7 
8 #ifndef __CUDACC__
11 #endif
12 
14 public:
15  static constexpr uint32_t numValuesPerChannel = 16;
16 
17  struct Product {
20  };
21 
22 #ifndef __CUDACC__
23  // rearrange reco params
25 
26  // will trigger deallocation of Product thru ~Product
27  ~HcalQIECodersGPU() = default;
28 
29  // get device pointers
30  Product const &getProduct(cudaStream_t) const;
31 
32 private:
34  std::vector<float, cms::cuda::HostAllocator<float>> offsets_;
35  std::vector<float, cms::cuda::HostAllocator<float>> slopes_;
36 
38 #endif
39 };
40 
41 #endif
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > offsets
static constexpr uint32_t numValuesPerChannel
std::vector< float, cms::cuda::HostAllocator< float > > offsets_
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > slopes
Product const & getProduct(cudaStream_t) const
cms::cuda::ESProduct< Product > product_
unsigned long long uint64_t
Definition: Time.h:13
HcalQIECodersGPU(HcalQIEData const &)
std::vector< float, cms::cuda::HostAllocator< float > > slopes_
~HcalQIECodersGPU()=default