3 #ifdef ECAL_RECO_CUDA_DEBUG 51 desc.add<
bool>(
"containsTimingInformation",
false);
58 recHitsInEEToken_{consumes<InputProduct>(ps.getParameter<
edm::InputTag>(
"recHitsInLabelEE"))},
59 recHitsOutEBToken_{produces<OutputProduct>(ps.getParameter<
std::string>(
"recHitsOutLabelEB"))},
60 recHitsOutEEToken_{produces<OutputProduct>(ps.getParameter<
std::string>(
"recHitsOutLabelEE"))},
61 containsTimingInformation_{ps.getParameter<
bool>(
"containsTimingInformation")} {}
70 auto const& ebRecHits = ctx.get(ebRecHitsProduct);
71 auto const& eeRecHits = ctx.get(eeRecHitsProduct);
77 #ifdef ECAL_RECO_CUDA_DEBUG 78 std::cout <<
" [EcalCPURecHitProducer::acquire] ebRecHits.size = " << ebRecHits.size << std::endl;
79 std::cout <<
" [EcalCPURecHitProducer::acquire] eeRecHits.size = " << eeRecHits.size << std::endl;
86 cudaMemcpyDeviceToHost,
91 cudaMemcpyDeviceToHost,
98 ebRecHits.energy.get(),
100 cudaMemcpyDeviceToHost,
103 eeRecHits.energy.get(),
105 cudaMemcpyDeviceToHost,
109 ebRecHits.chi2.get(),
111 cudaMemcpyDeviceToHost,
114 eeRecHits.chi2.get(),
116 cudaMemcpyDeviceToHost,
120 ebRecHits.extra.get(),
122 cudaMemcpyDeviceToHost,
125 eeRecHits.extra.get(),
127 cudaMemcpyDeviceToHost,
131 ebRecHits.flagBits.get(),
133 cudaMemcpyDeviceToHost,
136 eeRecHits.flagBits.get(),
138 cudaMemcpyDeviceToHost,
141 #ifdef ECAL_RECO_CUDA_DEBUG 142 for (
unsigned int ieb = 0; ieb < ebRecHits.size; ieb++) {
148 for (
unsigned int ieb = 0; ieb < ebRecHits.size; ieb++) {
154 for (
unsigned int iee = 0; iee < eeRecHits.size; iee++) {
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
edm::EDGetTokenT< InputProduct > recHitsInEEToken_
void acquire(edm::Event const &, edm::EventSetup const &, edm::WaitingTaskWithArenaHolder) override
T getParameter(std::string const &) const
StoragePolicy::template StorageSelector< reco::StorageScalarType >::type chi2
edm::EDPutTokenT< OutputProduct > recHitsOutEBToken_
StoragePolicy::template StorageSelector< uint32_t >::type did
std::enable_if< std::is_same< U, ::calo::common::tags::Vec >::value, void >::type resize(size_t size)
static void fillDescriptions(edm::ConfigurationDescriptions &)
StoragePolicy::template StorageSelector< reco::StorageScalarType >::type energy
EcalCPURecHitProducer(edm::ParameterSet const &ps)
#define DEFINE_FWK_MODULE(type)
~EcalCPURecHitProducer() override=default
edm::EDPutTokenT< OutputProduct > recHitsOutEEToken_
edm::EDGetTokenT< InputProduct > recHitsInEBToken_
void produce(edm::Event &, edm::EventSetup const &) override
bool containsTimingInformation_
#define cudaCheck(ARG,...)
StoragePolicy::template StorageSelector< uint32_t >::type extra
StoragePolicy::template StorageSelector< uint32_t >::type flagBits