Skip to content

Commit 143f9db

Browse files
committed
Embed bottom and middle spacepoint in triplet
Right now, we store only the top spacepoint in the device triplet which is technically all that is required, but this makes it very difficult and time-consuming to retrieve the bottom and middle spacepoint. This commit embeds the locations of those spacepoints in the triplet, making life easier for a lot of the planned seeding changes.
1 parent 327189d commit 143f9db

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

device/common/include/traccc/edm/device/device_triplet.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ namespace traccc::device {
1717
/// Triplets of bottom, middle and top spacepoints
1818
struct device_triplet {
1919
// top spacepoint location in internal spacepoint container
20-
sp_location spT;
20+
sp_location spB, spM, spT;
2121

2222
using link_type = device::triplet_counter_collection_types::host::size_type;
2323
/// Link to triplet counter where the middle and bottom spacepoints are

device/common/include/traccc/seeding/device/impl/find_triplets.ipp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ inline void find_triplets(
110110

111111
// Add triplet to jagged vector
112112
triplets.at(posTriplets++) = device_triplet(
113-
{spT_loc, globalIndex, curvature,
113+
{spB_loc, spM_loc, spT_loc, globalIndex, curvature,
114114
-impact_parameter * filter_config.impactWeightFactor,
115115
lb.Zo()});
116116
}

0 commit comments

Comments
 (0)