|
template<typename TAcc , typename = std::enable_if_t<alpaka::isAccelerator<TAcc>>> |
ALPAKA_FN_ACC void | operator() (TAcc const &acc, const unsigned int numer_of_clusters, float thresholdW0, float positionDeltaRho2, const HGCalSoARecHitsDeviceCollection::ConstView input_rechits_soa, const HGCalSoARecHitsExtraDeviceCollection::ConstView input_clusters_soa, HGCalSoAClustersDeviceCollection::View outputs, HGCalSoAClustersExtraDeviceCollection::View outputs_service) const |
|
◆ operator()()
template<typename TAcc , typename = std::enable_if_t<alpaka::isAccelerator<TAcc>>>
ALPAKA_FN_ACC void ALPAKA_ACCELERATOR_NAMESPACE::HGCalLayerClustersSoAAlgoKernelPositionByHits2::operator() |
( |
TAcc const & |
acc, |
|
|
const unsigned int |
numer_of_clusters, |
|
|
float |
thresholdW0, |
|
|
float |
positionDeltaRho2, |
|
|
const HGCalSoARecHitsDeviceCollection::ConstView |
input_rechits_soa, |
|
|
const HGCalSoARecHitsExtraDeviceCollection::ConstView |
input_clusters_soa, |
|
|
HGCalSoAClustersDeviceCollection::View |
outputs, |
|
|
HGCalSoAClustersExtraDeviceCollection::View |
outputs_service |
|
) |
| const |
|
inline |
Definition at line 87 of file HGCalLayerClustersSoAAlgoWrapper.dev.cc.
References cms::cudacompat::atomicAdd(), d1, f, hgcal::constants::kInvalidCluster, dqm-mbProfile::log, SiStripPI::max, PatBasicFWLiteJetAnalyzer_Selector_cfg::outputs, hltHgcalLayerClustersEE_cfi::positionDeltaRho2, hltHgcalLayerClustersEE_cfi::thresholdW0, cms::alpakatools::uniform_elements(), mps_merge::weight, and x.
96 for (int32_t hit_index :
uniform_elements(acc, input_rechits_soa.metadata().size())) {
97 const int cluster_index = input_clusters_soa[hit_index].clusterIndex();
103 const int max_energy_index = outputs_service[cluster_index].maxEnergyIndex();
106 const float d1 = input_rechits_soa[hit_index].dim1() - input_rechits_soa[max_energy_index].dim1();
107 const float d2 = input_rechits_soa[hit_index].dim2() - input_rechits_soa[max_energy_index].dim2();
112 outputs_service[cluster_index].total_weight()),
static constexpr int kInvalidCluster
static constexpr float d1
T1 atomicAdd(T1 *a, T2 b)