Skip to content

Commit 304563f

Browse files
committed
Fixed miscounting of MDs
1 parent 4a70830 commit 304563f

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

RecoTracker/LSTCore/src/alpaka/LSTEvent.dev.cc

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,21 +1047,14 @@ void LSTEvent::addMiniDoubletsToEventExplicit() {
10471047
cms::alpakatools::make_device_view(queue_, modules.layers(), nLowerModules_); // only lower modules
10481048
alpaka::memcpy(queue_, module_layers_buf, module_layers_view, nLowerModules_);
10491049

1050-
auto module_hitRanges_buf = cms::alpakatools::make_host_buffer<ArrayIx2[]>(queue_, nLowerModules_);
1051-
auto hits = hitsDC_->view<HitsRangesSoA>();
1052-
auto hitRanges_view =
1053-
cms::alpakatools::make_device_view(queue_, hits.hitRanges(), nLowerModules_); // only lower modules
1054-
alpaka::memcpy(queue_, module_hitRanges_buf, hitRanges_view, nLowerModules_);
1055-
10561050
alpaka::wait(queue_); // wait for inputs before using them
10571051

10581052
auto const* nMDsCPU = nMDsCPU_buf.data();
10591053
auto const* module_subdets = module_subdets_buf.data();
10601054
auto const* module_layers = module_layers_buf.data();
1061-
auto const* module_hitRanges = module_hitRanges_buf.data();
10621055

10631056
for (unsigned int i = 0; i < nLowerModules_; i++) {
1064-
if (!(nMDsCPU[i] == 0 or module_hitRanges[i][0] == -1)) {
1057+
if (nMDsCPU[i] != 0) {
10651058
if (module_subdets[i] == Barrel) {
10661059
n_minidoublets_by_layer_barrel_[module_layers[i] - 1] += nMDsCPU[i];
10671060
} else {

0 commit comments

Comments
 (0)