CMS 3D CMS Logo

EcalLaserAPDPNRatiosRefGPU.h
Go to the documentation of this file.
1 #ifndef CondFormats_EcalObjects_interface_EcalLaserAPDPNRatiosRefGPU_h
2 #define CondFormats_EcalObjects_interface_EcalLaserAPDPNRatiosRefGPU_h
3 
7 
8 #ifndef __CUDACC__
11 #endif // __CUDACC__
12 
14 public:
15  struct Product {
17  };
18 
19 #ifndef __CUDACC__
20  //
22 
23  // will call dealloation for Product thru ~Product
24  ~EcalLaserAPDPNRatiosRefGPU() = default;
25 
26  // get device pointers
27  Product const& getProduct(cudaStream_t) const;
28 
29  // TODO: do this centrally
30  // get offset for hashes. equals number of barrel items
31  uint32_t getOffset() const { return offset_; }
32  uint32_t offset_;
33 
34  //
35  static std::string name() { return std::string{"ecalLaserAPDPNRatiosRefGPU"}; }
36 
37 private:
38  std::vector<float, cms::cuda::HostAllocator<float>> values_;
39 
41 #endif // __CUDACC__
42 };
43 
44 #endif // CondFormats_EcalObjects_interface_EcalLaserAPDPNRatiosRefGPU_h
HostAllocator.h
EcalLaserAPDPNRatiosRef.h
EcalLaserAPDPNRatiosRefGPU::name
static std::string name()
Definition: EcalLaserAPDPNRatiosRefGPU.h:35
device_unique_ptr.h
EcalCondObjectContainer
Definition: EcalCondObjectContainer.h:13
cms::cuda::ESProduct
Definition: ESProduct.h:19
EcalLaserAPDPNRatiosRefGPU::getOffset
uint32_t getOffset() const
Definition: EcalLaserAPDPNRatiosRefGPU.h:31
EcalLaserAPDPNRatiosRefGPU::EcalLaserAPDPNRatiosRefGPU
EcalLaserAPDPNRatiosRefGPU(EcalLaserAPDPNRatiosRef const &)
Definition: EcalLaserAPDPNRatiosRefGPU.cc:6
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EcalLaserAPDPNRatiosRefGPU
Definition: EcalLaserAPDPNRatiosRefGPU.h:13
EcalLaserAPDPNRatiosRefGPU::product_
cms::cuda::ESProduct< Product > product_
Definition: EcalLaserAPDPNRatiosRefGPU.h:40
EcalLaserAPDPNRatiosRefGPU::values_
std::vector< float, cms::cuda::HostAllocator< float > > values_
Definition: EcalLaserAPDPNRatiosRefGPU.h:38
EcalLaserAPDPNRatiosRefGPU::getProduct
Product const & getProduct(cudaStream_t) const
Definition: EcalLaserAPDPNRatiosRefGPU.cc:13
edm::propagate_const_array
Definition: propagate_const_array.h:61
propagate_const_array.h
EcalLaserAPDPNRatiosRefGPU::Product::values
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > values
Definition: EcalLaserAPDPNRatiosRefGPU.h:16
EcalLaserAPDPNRatiosRefGPU::offset_
uint32_t offset_
Definition: EcalLaserAPDPNRatiosRefGPU.h:32
EcalLaserAPDPNRatiosRefGPU::~EcalLaserAPDPNRatiosRefGPU
~EcalLaserAPDPNRatiosRefGPU()=default
EcalLaserAPDPNRatiosRefGPU::Product
Definition: EcalLaserAPDPNRatiosRefGPU.h:15
ESProduct.h