|
|
Go to the documentation of this file.
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++) {
~EcalCPURecHitProducer() override=default
edm::EDGetTokenT< InputProduct > recHitsInEBToken_
StoragePolicy::template StorageSelector< reco::StorageScalarType >::type chi2
#define DEFINE_FWK_MODULE(type)
StoragePolicy::template StorageSelector< uint32_t >::type flagBits
EcalCPURecHitProducer(edm::ParameterSet const &ps)
StoragePolicy::template StorageSelector< reco::StorageScalarType >::type energy
edm::EDPutTokenT< OutputProduct > recHitsOutEEToken_
StoragePolicy::template StorageSelector< uint32_t >::type extra
#define cudaCheck(ARG,...)
edm::EDGetTokenT< InputProduct > recHitsInEEToken_
void acquire(edm::Event const &, edm::EventSetup const &, edm::WaitingTaskWithArenaHolder) override
std::enable_if< std::is_same< U, ::calo::common::tags::Vec >::value, void >::type resize(size_t size)
T getParameter(std::string const &) const
bool containsTimingInformation_
edm::EDPutTokenT< OutputProduct > recHitsOutEBToken_
StoragePolicy::template StorageSelector< uint32_t >::type did
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &)
void produce(edm::Event &, edm::EventSetup const &) override