15 for (
unsigned int i = 0;
i <
values.getLaserMap().barrelItems().size();
i++) {
23 auto const offset_laser =
values.getLaserMap().barrelItems().size();
24 for (
unsigned int i = 0;
i <
values.getLaserMap().endcapItems().size();
i++) {
25 p1_[offset_laser +
i] =
values.getLaserMap().endcapItems()[
i].p1;
26 p2_[offset_laser +
i] =
values.getLaserMap().endcapItems()[
i].p2;
27 p3_[offset_laser +
i] =
values.getLaserMap().endcapItems()[
i].p3;
32 for (
unsigned int i = 0;
i <
values.getTimeMap().size();
i++) {
40 auto const& product =
product_.dataForCurrentDeviceAsync(
43 product.
p1 = cms::cuda::make_device_unique<float[]>(
p1_.size(), cudaStream);
44 product.
p2 = cms::cuda::make_device_unique<float[]>(
p2_.size(), cudaStream);
45 product.
p3 = cms::cuda::make_device_unique<float[]>(
p3_.size(), cudaStream);
46 product.
t1 = cms::cuda::make_device_unique<edm::TimeValue_t[]>(
t1_.size(), cudaStream);
47 product.
t2 = cms::cuda::make_device_unique<edm::TimeValue_t[]>(
t2_.size(), cudaStream);
48 product.
t3 = cms::cuda::make_device_unique<edm::TimeValue_t[]>(
t3_.size(), cudaStream);
std::vector< edm::TimeValue_t, cms::cuda::HostAllocator< edm::TimeValue_t > > t1_
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > p1
std::vector< edm::TimeValue_t, cms::cuda::HostAllocator< edm::TimeValue_t > > t2_
edm::propagate_const_array< cms::cuda::device::unique_ptr< edm::TimeValue_t[]> > t1
std::vector< float, cms::cuda::HostAllocator< float > > p2_
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > p3
std::vector< edm::TimeValue_t, cms::cuda::HostAllocator< edm::TimeValue_t > > t3_
void copyAsync(device::unique_ptr< T > &dst, const host::unique_ptr< T > &src, cudaStream_t stream)
cms::cuda::ESProduct< Product > product_
Product const & getProduct(cudaStream_t) const
std::vector< float, cms::cuda::HostAllocator< float > > p1_
#define TYPELOOKUP_DATA_REG(_dataclass_)
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > p2
EcalLaserAPDPNRatiosGPU(EcalLaserAPDPNRatios const &)
std::vector< float, cms::cuda::HostAllocator< float > > p3_
edm::propagate_const_array< cms::cuda::device::unique_ptr< edm::TimeValue_t[]> > t2
edm::propagate_const_array< cms::cuda::device::unique_ptr< edm::TimeValue_t[]> > t3