CMS 3D CMS Logo

HcalSiPMCharacteristicsGPU.h
Go to the documentation of this file.
1 #ifndef CondFormats_HcalObjects_interface_HcalSiPMCharacteristicsGPU_h
2 #define CondFormats_HcalObjects_interface_HcalSiPMCharacteristicsGPU_h
3 
7 
8 #ifndef __CUDACC__
11 #endif
12 
14 public:
15  struct Product {
23  };
24 
25 #ifndef __CUDACC__
26  // rearrange reco params
28 
29  // will trigger deallocation of Product thru ~Product
30  ~HcalSiPMCharacteristicsGPU() = default;
31 
32  // get device pointers
33  Product const &getProduct(cudaStream_t) const;
34 
35 private:
36  std::vector<int, cms::cuda::HostAllocator<int>> pixels_, auxi1_;
37  std::vector<float, cms::cuda::HostAllocator<float>> parLin1_, parLin2_, parLin3_, crossTalk_, auxi2_;
38 
40 #endif
41 };
42 
43 #endif
HcalSiPMCharacteristicsGPU::parLin2_
std::vector< float, cms::cuda::HostAllocator< float > > parLin2_
Definition: HcalSiPMCharacteristicsGPU.h:37
HcalSiPMCharacteristicsGPU::pixels_
std::vector< int, cms::cuda::HostAllocator< int > > pixels_
Definition: HcalSiPMCharacteristicsGPU.h:36
HcalSiPMCharacteristicsGPU::Product::auxi1
edm::propagate_const_array< cms::cuda::device::unique_ptr< int[]> > auxi1
Definition: HcalSiPMCharacteristicsGPU.h:21
HostAllocator.h
HcalSiPMCharacteristicsGPU::parLin1_
std::vector< float, cms::cuda::HostAllocator< float > > parLin1_
Definition: HcalSiPMCharacteristicsGPU.h:37
HcalSiPMCharacteristics.h
HcalSiPMCharacteristicsGPU::parLin3_
std::vector< float, cms::cuda::HostAllocator< float > > parLin3_
Definition: HcalSiPMCharacteristicsGPU.h:37
HcalSiPMCharacteristicsGPU::HcalSiPMCharacteristicsGPU
HcalSiPMCharacteristicsGPU(HcalSiPMCharacteristics const &)
Definition: HcalSiPMCharacteristicsGPU.cc:7
device_unique_ptr.h
HcalSiPMCharacteristicsGPU::Product::parLin1
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > parLin1
Definition: HcalSiPMCharacteristicsGPU.h:17
HcalSiPMCharacteristicsGPU::Product::parLin3
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > parLin3
Definition: HcalSiPMCharacteristicsGPU.h:19
HcalSiPMCharacteristicsGPU::auxi1_
std::vector< int, cms::cuda::HostAllocator< int > > auxi1_
Definition: HcalSiPMCharacteristicsGPU.h:36
cms::cuda::ESProduct
Definition: ESProduct.h:19
HcalSiPMCharacteristicsGPU::Product::parLin2
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > parLin2
Definition: HcalSiPMCharacteristicsGPU.h:18
HcalSiPMCharacteristicsGPU::Product
Definition: HcalSiPMCharacteristicsGPU.h:15
HcalSiPMCharacteristicsGPU::Product::auxi2
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > auxi2
Definition: HcalSiPMCharacteristicsGPU.h:22
HcalSiPMCharacteristicsGPU::Product::pixels
edm::propagate_const_array< cms::cuda::device::unique_ptr< int[]> > pixels
Definition: HcalSiPMCharacteristicsGPU.h:16
HcalSiPMCharacteristicsGPU
Definition: HcalSiPMCharacteristicsGPU.h:13
HcalSiPMCharacteristicsGPU::auxi2_
std::vector< float, cms::cuda::HostAllocator< float > > auxi2_
Definition: HcalSiPMCharacteristicsGPU.h:37
HcalSiPMCharacteristicsGPU::product_
cms::cuda::ESProduct< Product > product_
Definition: HcalSiPMCharacteristicsGPU.h:39
edm::propagate_const_array
Definition: propagate_const_array.h:61
propagate_const_array.h
HcalSiPMCharacteristicsGPU::crossTalk_
std::vector< float, cms::cuda::HostAllocator< float > > crossTalk_
Definition: HcalSiPMCharacteristicsGPU.h:37
HcalSiPMCharacteristicsGPU::~HcalSiPMCharacteristicsGPU
~HcalSiPMCharacteristicsGPU()=default
HcalSiPMCharacteristicsGPU::getProduct
const Product & getProduct(cudaStream_t) const
Definition: HcalSiPMCharacteristicsGPU.cc:38
ESProduct.h
HcalSiPMCharacteristicsGPU::Product::crossTalk
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > crossTalk
Definition: HcalSiPMCharacteristicsGPU.h:20
HcalSiPMCharacteristics
Definition: HcalSiPMCharacteristics.h:18