RecoLocalCalo
HcalRecAlgos
interface
HcalMahiPulseOffsetsGPU.h
Go to the documentation of this file.
1
#ifndef RecoLocalCalo_HcalRecAlgos_interface_HcalMahiPulseOffsetsGPU_h
2
#define RecoLocalCalo_HcalRecAlgos_interface_HcalMahiPulseOffsetsGPU_h
3
4
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
5
6
#ifndef __CUDACC__
7
#include "
HeterogeneousCore/CUDAUtilities/interface/HostAllocator.h
"
8
#include "
HeterogeneousCore/CUDACore/interface/ESProduct.h
"
9
#endif
10
11
class
HcalMahiPulseOffsetsGPU
{
12
public
:
13
struct
Product
{
14
~Product
();
15
int
*
values
;
16
};
17
18
#ifndef __CUDACC__
19
// rearrange reco params
20
HcalMahiPulseOffsetsGPU
(
edm::ParameterSet
const
&);
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
33
cms::cuda::ESProduct<Product>
product_
;
34
#endif
35
};
36
37
#endif
HcalMahiPulseOffsetsGPU::values_
std::vector< int, cms::cuda::HostAllocator< int > > values_
Definition:
HcalMahiPulseOffsetsGPU.h:31
HostAllocator.h
HcalMahiPulseOffsetsGPU::HcalMahiPulseOffsetsGPU
HcalMahiPulseOffsetsGPU(edm::ParameterSet const &)
Definition:
HcalMahiPulseOffsetsGPU.cc:7
HcalMahiPulseOffsetsGPU::Product::values
int * values
Definition:
HcalMahiPulseOffsetsGPU.h:15
HcalMahiPulseOffsetsGPU::Product::~Product
~Product()
Definition:
HcalMahiPulseOffsetsGPU.cc:13
cms::cuda::ESProduct
Definition:
ESProduct.h:20
HcalMahiPulseOffsetsGPU::getValues
std::vector< int, cms::cuda::HostAllocator< int > > const & getValues() const
Definition:
HcalMahiPulseOffsetsGPU.h:25
HcalMahiPulseOffsetsGPU::product_
cms::cuda::ESProduct< Product > product_
Definition:
HcalMahiPulseOffsetsGPU.h:33
edm::ParameterSet
Definition:
ParameterSet.h:47
HcalMahiPulseOffsetsGPU::getProduct
Product const & getProduct(cudaStream_t) const
Definition:
HcalMahiPulseOffsetsGPU.cc:18
HcalMahiPulseOffsetsGPU::Product
Definition:
HcalMahiPulseOffsetsGPU.h:13
HcalMahiPulseOffsetsGPU
Definition:
HcalMahiPulseOffsetsGPU.h:11
HcalMahiPulseOffsetsGPU::~HcalMahiPulseOffsetsGPU
~HcalMahiPulseOffsetsGPU()=default
ParameterSet.h
ESProduct.h
Generated for CMSSW Reference Manual by
1.8.16