CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HcalGainsGPU.h
Go to the documentation of this file.
1 #ifndef CondFormats_HcalObjects_interface_HcalGainsGPU_h
2 #define CondFormats_HcalObjects_interface_HcalGainsGPU_h
3 
7 
8 #ifndef __CUDACC__
11 #endif
12 
13 class HcalGainsGPU {
14 public:
15  struct Product {
17  };
18 
19 #ifndef __CUDACC__
20  // rearrange reco params
21  HcalGainsGPU(HcalGains const&);
22 
23  // will trigger deallocation of Product thru ~Product
24  ~HcalGainsGPU() = default;
25 
26  // get device pointers
27  Product const& getProduct(cudaStream_t) const;
28 
29 private:
31  std::vector<float, cms::cuda::HostAllocator<float>> values_;
32 
34 #endif
35 };
36 
37 #endif
Product const & getProduct(cudaStream_t) const
Definition: HcalGainsGPU.cc:33
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > values
Definition: HcalGainsGPU.h:16
~HcalGainsGPU()=default
cms::cuda::ESProduct< Product > product_
Definition: HcalGainsGPU.h:33
uint64_t totalChannels_
Definition: HcalGainsGPU.h:30
unsigned long long uint64_t
Definition: Time.h:13
HcalGainsGPU(HcalGains const &)
Definition: HcalGainsGPU.cc:7
std::vector< float, cms::cuda::HostAllocator< float > > values_
Definition: HcalGainsGPU.h:31