|
template<typename TAcc , typename = std::enable_if_t<alpaka::isAccelerator<TAcc>>> |
ALPAKA_FN_ACC void | operator() (const TAcc &acc, reco::PFClusteringVarsDeviceCollection::View pfClusteringVars, const reco::PFClusterParamsDeviceCollection::ConstView pfClusParams, const reco::PFRecHitHCALTopologyDeviceCollection::ConstView topology, const reco::PFRecHitHostCollection::ConstView pfRecHits, reco::PFClusterDeviceCollection::View clusterView, uint32_t *__restrict__ nSeeds) const |
|
◆ operator()()
template<typename TAcc , typename = std::enable_if_t<alpaka::isAccelerator<TAcc>>>
ALPAKA_FN_ACC void ALPAKA_ACCELERATOR_NAMESPACE::SeedingTopoThresh::operator() |
( |
const TAcc & |
acc, |
|
|
reco::PFClusteringVarsDeviceCollection::View |
pfClusteringVars, |
|
|
const reco::PFClusterParamsDeviceCollection::ConstView |
pfClusParams, |
|
|
const reco::PFRecHitHCALTopologyDeviceCollection::ConstView |
topology, |
|
|
const reco::PFRecHitHostCollection::ConstView |
pfRecHits, |
|
|
reco::PFClusterDeviceCollection::View |
clusterView, |
|
|
uint32_t *__restrict__ |
nSeeds |
|
) |
| const |
|
inline |
Definition at line 1087 of file PFClusterSoAProducerKernel.dev.cc.
References cms::cudacompat::atomicAdd(), hcalRecHitTable_cff::energy, PFLayer::HCAL_BARREL1, PFLayer::HCAL_ENDCAP, mps_fire::i, dqmdumpme::k, cms::alpakatools::once_per_grid(), HLT_2024v14_cff::pfRecHits, HLT_2024v14_cff::pt2, HLT_2024v14_cff::topology, and cms::alpakatools::uniform_elements().
1097 clusterView.size() = nRH;
1102 pfClusteringVars[
i].pfrh_isSeed() = 0;
1103 pfClusteringVars[
i].rhCount() = 0;
1104 pfClusteringVars[
i].topoSeedCount() = 0;
1105 pfClusteringVars[
i].topoRHCount() = 0;
1106 pfClusteringVars[
i].seedFracOffsets() = -1;
1107 pfClusteringVars[
i].topoSeedOffsets() = -1;
1108 pfClusteringVars[
i].topoSeedList() = -1;
1109 clusterView[
i].seedRHIdx() = -1;
1115 float seedThreshold = 9999.;
1116 float topoThreshold = 9999.;
1123 seedThreshold = pfClusParams.seedEThresholdHB_vec()[depthOffset];
1124 topoThreshold = pfClusParams.topoEThresholdHB_vec()[depthOffset];
1126 seedThreshold = pfClusParams.seedEThresholdHE_vec()[depthOffset];
1127 topoThreshold = pfClusParams.topoEThresholdHE_vec()[depthOffset];
1137 pfClusteringVars[
i].pfrh_isSeed() = 1;
1138 for (
int k = 0;
k < 4;
k++) {
1142 pfClusteringVars[
i].pfrh_isSeed() = 0;
1146 if (pfClusteringVars[
i].pfrh_isSeed())
1153 pfClusteringVars[
i].pfrh_passTopoThresh() =
true;
1154 pfClusteringVars[
i].pfrh_topoId() =
i;
1156 pfClusteringVars[
i].pfrh_passTopoThresh() =
false;
1157 pfClusteringVars[
i].pfrh_topoId() = -1;
T1 atomicAdd(T1 *a, T2 b)