CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HcalConvertedPedestalsGPU.h
Go to the documentation of this file.
1 #ifndef CondFormats_HcalObjects_interface_HcalConvertedPedestalsGPU_h
2 #define CondFormats_HcalObjects_interface_HcalConvertedPedestalsGPU_h
3 
9 
10 #ifndef __CUDACC__
13 #endif
14 
16 public:
17  struct Product {
19  };
20 
21 #ifndef __CUDACC__
22  // order matters!
24 
25  // will trigger deallocation of Product thru ~Product
26  ~HcalConvertedPedestalsGPU() = default;
27 
28  // get device pointers
29  Product const& getProduct(cudaStream_t) const;
30 
31  uint32_t offsetForHashes() const { return offsetForHashes_; }
32 
33 protected:
35  uint32_t offsetForHashes_;
36  std::vector<float, cms::cuda::HostAllocator<float>> values_;
37 
39 #endif
40 };
41 
42 #endif
Product const & getProduct(cudaStream_t) const
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > values
~HcalConvertedPedestalsGPU()=default
cms::cuda::ESProduct< Product > product_
std::vector< float, cms::cuda::HostAllocator< float > > values_
unsigned long long uint64_t
Definition: Time.h:13
HcalConvertedPedestalsGPU(HcalPedestals const &, HcalQIEData const &, HcalQIETypes const &)