43 auto const inputClusters_v = deviceInputClusters.view();
46 auto device_numclusters = cms::alpakatools::make_device_view<const unsigned int>(
47 alpaka::getDev(
iEvent.queue()), inputClusters_v.numberOfClustersScalar());
48 auto host_numclusters = cms::alpakatools::make_host_view<unsigned int>(
num_clusters_);
49 alpaka::memcpy(
iEvent.queue(), host_numclusters, device_numclusters);
55 auto const inputRechits_v = deviceInputRecHits.view();
62 auto const inputClusters_v = deviceInputClusters.view();
65 auto output_v =
output.view();
68 auto output_workspace_v = outputWorkspace.view();
85 desc.add<
double>(
"thresholdW0", 2.9);
86 desc.add<
double>(
"positionDeltaRho2", 1.69);
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
device::EDGetToken< HGCalSoARecHitsDeviceCollection > const getTokenDeviceRecHits_
device::EDPutToken< HGCalSoAClustersDeviceCollection > const deviceTokenSoAClusters_
void produce(device::Event &iEvent, device::EventSetup const &iSetup) override
unsigned int num_clusters_
PortableCollection< HGCalSoAClustersExtra > HGCalSoAClustersExtraDeviceCollection
PortableCollection< HGCalSoAClusters > HGCalSoAClustersDeviceCollection
device::EDGetToken< HGCalSoARecHitsExtraDeviceCollection > const getTokenDeviceClusters_
~HGCalSoALayerClustersProducer() override=default
void acquire(device::Event const &iEvent, device::EventSetup const &iSetup) override
auto produces(std::string instanceName) noexcept
declare what type of product will make and with which optional label
HGCalLayerClustersSoAAlgoWrapper algo_
#define DEFINE_FWK_ALPAKA_MODULE(name)
HGCalSoALayerClustersProducer(edm::ParameterSet const &config)