CMS 3D CMS Logo

HcalMahiPulseOffsetsGPU.h
Go to the documentation of this file.
1 #ifndef RecoLocalCalo_HcalRecAlgos_interface_HcalMahiPulseOffsetsGPU_h
2 #define RecoLocalCalo_HcalRecAlgos_interface_HcalMahiPulseOffsetsGPU_h
3 
5 
6 #ifndef __CUDACC__
9 #endif
10 
12 public:
13  struct Product {
14  ~Product();
15  int* values;
16  };
17 
18 #ifndef __CUDACC__
19  // rearrange reco params
21 
22  // will trigger deallocation of Product thru ~Product
23  ~HcalMahiPulseOffsetsGPU() = default;
24 
25  std::vector<int, cms::cuda::HostAllocator<int>> const& getValues() const { return values_; }
26 
27  // get device pointers
28  Product const& getProduct(cudaStream_t) const;
29 
30 private:
31  std::vector<int, cms::cuda::HostAllocator<int>> values_;
32 
34 #endif
35 };
36 
37 #endif
HcalMahiPulseOffsetsGPU(edm::ParameterSet const &)
std::vector< int, cms::cuda::HostAllocator< int > > const & getValues() const
cms::cuda::ESProduct< Product > product_
~HcalMahiPulseOffsetsGPU()=default
Product const & getProduct(cudaStream_t) const
std::vector< int, cms::cuda::HostAllocator< int > > values_