CondFormats
HcalObjects
interface
HcalConvertedPedestalWidthsGPU.h
Go to the documentation of this file.
1
#ifndef CondFormats_HcalObjects_interface_HcalConvertedPedestalWidthsGPU_h
2
#define CondFormats_HcalObjects_interface_HcalConvertedPedestalWidthsGPU_h
3
4
#include "
CondFormats/HcalObjects/interface/HcalPedestalWidths.h
"
5
#include "
CondFormats/HcalObjects/interface/HcalPedestals.h
"
6
#include "
CondFormats/HcalObjects/interface/HcalQIEData.h
"
7
#include "
CondFormats/HcalObjects/interface/HcalQIETypes.h
"
8
#include "
FWCore/Utilities/interface/propagate_const_array.h
"
9
#include "
HeterogeneousCore/CUDAUtilities/interface/device_unique_ptr.h
"
10
11
#ifndef __CUDACC__
12
#include "
HeterogeneousCore/CUDAUtilities/interface/HostAllocator.h
"
13
#include "
HeterogeneousCore/CUDACore/interface/ESProduct.h
"
14
#endif
15
16
class
HcalConvertedPedestalWidthsGPU
{
17
public
:
18
struct
Product
{
19
edm::propagate_const_array<cms::cuda::device::unique_ptr<float[]>
>
values
;
20
};
21
22
#ifndef __CUDACC__
23
// order matters!
24
HcalConvertedPedestalWidthsGPU
(
HcalPedestals
const
&,
25
HcalPedestalWidths
const
&,
26
HcalQIEData
const
&,
27
HcalQIETypes
const
&);
28
29
// will trigger deallocation of Product thru ~Product
30
~HcalConvertedPedestalWidthsGPU
() =
default
;
31
32
// get device pointers
33
Product
const
&
getProduct
(cudaStream_t)
const
;
34
35
private
:
36
uint64_t
totalChannels_
;
37
std::vector<float, cms::cuda::HostAllocator<float>>
values_
;
38
39
cms::cuda::ESProduct<Product>
product_
;
40
#endif
41
};
42
43
#endif
HcalConvertedPedestalWidthsGPU::Product::values
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > values
Definition:
HcalConvertedPedestalWidthsGPU.h:19
HostAllocator.h
HcalConvertedPedestalWidthsGPU::product_
cms::cuda::ESProduct< Product > product_
Definition:
HcalConvertedPedestalWidthsGPU.h:39
HcalPedestals.h
HcalQIETypes.h
device_unique_ptr.h
HcalPedestalWidths
Definition:
HcalPedestalWidths.h:17
HcalPedestals
Definition:
HcalPedestals.h:20
HcalConvertedPedestalWidthsGPU::values_
std::vector< float, cms::cuda::HostAllocator< float > > values_
Definition:
HcalConvertedPedestalWidthsGPU.h:37
cms::cuda::ESProduct
Definition:
ESProduct.h:20
HcalQIEData.h
HcalConvertedPedestalWidthsGPU::Product
Definition:
HcalConvertedPedestalWidthsGPU.h:18
HcalConvertedPedestalWidthsGPU::HcalConvertedPedestalWidthsGPU
HcalConvertedPedestalWidthsGPU(HcalPedestals const &, HcalPedestalWidths const &, HcalQIEData const &, HcalQIETypes const &)
Definition:
HcalConvertedPedestalWidthsGPU.cc:22
HcalConvertedPedestalWidthsGPU
Definition:
HcalConvertedPedestalWidthsGPU.h:16
HcalConvertedPedestalWidthsGPU::totalChannels_
uint64_t totalChannels_
Definition:
HcalConvertedPedestalWidthsGPU.h:36
HcalQIETypes
Definition:
HcalQIETypes.h:17
HcalPedestalWidths.h
HcalQIEData
Definition:
HcalQIEData.h:24
edm::propagate_const_array
Definition:
propagate_const_array.h:61
HcalConvertedPedestalWidthsGPU::getProduct
Product const & getProduct(cudaStream_t) const
Definition:
HcalConvertedPedestalWidthsGPU.cc:137
propagate_const_array.h
HcalConvertedPedestalWidthsGPU::~HcalConvertedPedestalWidthsGPU
~HcalConvertedPedestalWidthsGPU()=default
cond::uint64_t
unsigned long long uint64_t
Definition:
Time.h:13
ESProduct.h
Generated for CMSSW Reference Manual by
1.8.16