CMS 3D CMS Logo

HcalSiPMParametersGPU.h
Go to the documentation of this file.
1 #ifndef CondFormats_HcalObjects_interface_HcalSiPMParametersGPU_h
2 #define CondFormats_HcalObjects_interface_HcalSiPMParametersGPU_h
3 
7 
8 #ifndef __CUDACC__
11 #endif
12 
14 public:
15  struct Product {
21  };
22 
23 #ifndef __CUDACC__
24  // rearrange reco params
26 
27  // will trigger deallocation of Product thru ~Product
28  ~HcalSiPMParametersGPU() = default;
29 
30  // get device pointers
31  Product const &getProduct(cudaStream_t) const;
32 
33 private:
35  std::vector<int, cms::cuda::HostAllocator<int>> type_, auxi1_;
36  std::vector<float, cms::cuda::HostAllocator<float>> fcByPE_, darkCurrent_, auxi2_;
37 
39 #endif // __CUDACC__
40 };
41 
42 #endif // RecoLocalCalo_HcalRecAlgos_interface_HcalSiPMParametersGPU_h
HcalSiPMParametersGPU
Definition: HcalSiPMParametersGPU.h:13
HcalSiPMParametersGPU::Product::auxi1
edm::propagate_const_array< cms::cuda::device::unique_ptr< int[]> > auxi1
Definition: HcalSiPMParametersGPU.h:17
HcalSiPMParametersGPU::fcByPE_
std::vector< float, cms::cuda::HostAllocator< float > > fcByPE_
Definition: HcalSiPMParametersGPU.h:36
HostAllocator.h
HcalSiPMParametersGPU::Product
Definition: HcalSiPMParametersGPU.h:15
device_unique_ptr.h
HcalSiPMParametersGPU::getProduct
const Product & getProduct(cudaStream_t) const
Definition: HcalSiPMParametersGPU.cc:40
HcalSiPMParametersGPU::Product::darkCurrent
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > darkCurrent
Definition: HcalSiPMParametersGPU.h:19
HcalSiPMParametersGPU::Product::type
edm::propagate_const_array< cms::cuda::device::unique_ptr< int[]> > type
Definition: HcalSiPMParametersGPU.h:16
HcalSiPMParametersGPU::Product::auxi2
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > auxi2
Definition: HcalSiPMParametersGPU.h:20
cms::cuda::ESProduct
Definition: ESProduct.h:19
HcalSiPMParametersGPU::totalChannels_
uint64_t totalChannels_
Definition: HcalSiPMParametersGPU.h:34
HcalSiPMParameters.h
HcalSiPMParametersGPU::product_
cms::cuda::ESProduct< Product > product_
Definition: HcalSiPMParametersGPU.h:38
HcalSiPMParametersGPU::~HcalSiPMParametersGPU
~HcalSiPMParametersGPU()=default
HcalSiPMParametersGPU::darkCurrent_
std::vector< float, cms::cuda::HostAllocator< float > > darkCurrent_
Definition: HcalSiPMParametersGPU.h:36
HcalSiPMParametersGPU::HcalSiPMParametersGPU
HcalSiPMParametersGPU(HcalSiPMParameters const &)
Definition: HcalSiPMParametersGPU.cc:6
edm::propagate_const_array
Definition: propagate_const_array.h:61
HcalSiPMParametersGPU::Product::fcByPE
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > fcByPE
Definition: HcalSiPMParametersGPU.h:18
propagate_const_array.h
cond::uint64_t
unsigned long long uint64_t
Definition: Time.h:13
HcalSiPMParametersGPU::type_
std::vector< int, cms::cuda::HostAllocator< int > > type_
Definition: HcalSiPMParametersGPU.h:35
HcalSiPMParametersGPU::auxi1_
std::vector< int, cms::cuda::HostAllocator< int > > auxi1_
Definition: HcalSiPMParametersGPU.h:35
HcalSiPMParameters
Definition: HcalSiPMParameters.h:8
ESProduct.h
HcalSiPMParametersGPU::auxi2_
std::vector< float, cms::cuda::HostAllocator< float > > auxi2_
Definition: HcalSiPMParametersGPU.h:36