◆ InputProduct
◆ OutputProduct
◆ EcalUncalibRecHitPhase2WeightsProducerGPU()
EcalUncalibRecHitPhase2WeightsProducerGPU::EcalUncalibRecHitPhase2WeightsProducerGPU |
( |
edm::ParameterSet const & |
ps | ) |
|
|
explicit |
Definition at line 36 of file EcalUncalibRecHitPhase2WeightsProducerGPU.cc.
References createJobs::tmp.
38 weights_([
tmp = ps.getParameter<std::vector<double>>(
"weights")] {
39 return std::vector<double, cms::cuda::HostAllocator<double>>(tmp.begin(), tmp.end());
const std::vector< double, cms::cuda::HostAllocator< double > > weights_
const edm::EDGetTokenT< InputProduct > digisToken_
const edm::EDPutTokenT< OutputProduct > recHitsToken_
◆ ~EcalUncalibRecHitPhase2WeightsProducerGPU()
EcalUncalibRecHitPhase2WeightsProducerGPU::~EcalUncalibRecHitPhase2WeightsProducerGPU |
( |
| ) |
|
|
overridedefault |
◆ fillDescriptions()
◆ produce()
Definition at line 72 of file EcalUncalibRecHitPhase2WeightsProducerGPU.cc.
References ecal::weights::EventOutputDataGPU::allocate(), cudaCheck, digisToken_, eventOutputDataGPU_, cms::cuda::impl::ScopedContextGetterBase::get(), EcalDataFrame_Ph2::MAXSAMPLES, eostools::move(), ecal::weights::phase2Weights(), ecal::weights::EventOutputDataGPU::recHits, recHitsToken_, findQualityFiles::size, and weights_.
79 auto const &digis = ctx.
get(digisProduct);
81 const uint32_t
size = digis.size;
87 cudaCheck(cudaMemcpyAsync(weights_d.get(),
90 cudaMemcpyHostToDevice,
const std::vector< double, cms::cuda::HostAllocator< double > > weights_
const edm::EDGetTokenT< InputProduct > digisToken_
UncalibratedRecHit<::calo::common::DevStoragePolicy > recHits
void phase2Weights(ecal::DigisCollection< calo::common::DevStoragePolicy > const &, EventOutputDataGPU &, cms::cuda::device::unique_ptr< double[]> &, cudaStream_t)
static constexpr int MAXSAMPLES
const edm::EDPutTokenT< OutputProduct > recHitsToken_
void allocate(uint32_t digi_size, cudaStream_t cudaStream)
ecal::weights::EventOutputDataGPU eventOutputDataGPU_
#define cudaCheck(ARG,...)
const T & get(const Product< T > &data)
◆ digisToken_
◆ eventOutputDataGPU_
◆ recHitsToken_
◆ weights_