CondFormats
EcalObjects
interface
EcalPulseCovariancesGPU.h
Go to the documentation of this file.
1
#ifndef CondFormats_EcalObjects_interface_EcalPulseCovariancesGPU_h
2
#define CondFormats_EcalObjects_interface_EcalPulseCovariancesGPU_h
3
4
#include "
CondFormats/EcalObjects/interface/EcalPulseCovariances.h
"
5
6
#ifndef __CUDACC__
7
#include "
HeterogeneousCore/CUDAUtilities/interface/HostAllocator.h
"
8
#include "
HeterogeneousCore/CUDACore/interface/ESProduct.h
"
9
#endif // __CUDACC__
10
11
class
EcalPulseCovariancesGPU
{
12
public
:
13
struct
Product
{
14
~Product
();
15
EcalPulseCovariance
*
values
=
nullptr
;
16
};
17
18
#ifndef __CUDACC__
19
// rearrange pedestals
20
EcalPulseCovariancesGPU
(
EcalPulseCovariances
const
&);
21
22
// will call dealloation for Product thru ~Product
23
~EcalPulseCovariancesGPU
() =
default
;
24
25
// get device pointers
26
Product
const
&
getProduct
(cudaStream_t)
const
;
27
28
//
29
static
std::string
name
() {
return
std::string
{
"ecalPulseCovariancesGPU"
}; }
30
31
private
:
32
// reuse original vectors (although with default allocator)
33
std::vector<EcalPulseCovariance>
const
&
valuesEB_
;
34
std::vector<EcalPulseCovariance>
const
&
valuesEE_
;
35
36
cms::cuda::ESProduct<Product>
product_
;
37
#endif // __CUDACC__
38
};
39
40
#endif // CondFormats_EcalObjects_interface_EcalPulseCovariancesGPU_h
EcalPulseCovariances.h
HostAllocator.h
EcalPulseCovariancesGPU::Product::~Product
~Product()
Definition:
EcalPulseCovariancesGPU.cc:9
EcalCondObjectContainer
Definition:
EcalCondObjectContainer.h:13
EcalPulseCovariancesGPU::EcalPulseCovariancesGPU
EcalPulseCovariancesGPU(EcalPulseCovariances const &)
Definition:
EcalPulseCovariancesGPU.cc:6
EcalPulseCovariancesGPU::Product::values
EcalPulseCovariance * values
Definition:
EcalPulseCovariancesGPU.h:15
EcalPulseCovariancesGPU::Product
Definition:
EcalPulseCovariancesGPU.h:13
cms::cuda::ESProduct
Definition:
ESProduct.h:19
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
EcalPulseCovariancesGPU::~EcalPulseCovariancesGPU
~EcalPulseCovariancesGPU()=default
EcalPulseCovariancesGPU::valuesEE_
std::vector< EcalPulseCovariance > const & valuesEE_
Definition:
EcalPulseCovariancesGPU.h:34
EcalPulseCovariancesGPU::name
static std::string name()
Definition:
EcalPulseCovariancesGPU.h:29
EcalPulseCovariancesGPU::product_
cms::cuda::ESProduct< Product > product_
Definition:
EcalPulseCovariancesGPU.h:36
EcalPulseCovariance
Definition:
EcalPulseCovariances.h:9
EcalPulseCovariancesGPU
Definition:
EcalPulseCovariancesGPU.h:11
EcalPulseCovariancesGPU::getProduct
Product const & getProduct(cudaStream_t) const
Definition:
EcalPulseCovariancesGPU.cc:14
ESProduct.h
EcalPulseCovariancesGPU::valuesEB_
std::vector< EcalPulseCovariance > const & valuesEB_
Definition:
EcalPulseCovariancesGPU.h:33
Generated for CMSSW Reference Manual by
1.8.16