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