@@ -169,17 +169,18 @@ GTEST_TEST(detray_intersection, intersection_kernel_ray) {
169
169
170
170
if (sfi_init[i].sf_desc .mask ().id () == e_rectangle2) {
171
171
global =
172
- rect.to_global_frame (transform_store[ 0 ] , sfi_init[i].local );
172
+ rect.to_global_frame (transform_store. at ( 0 ) , sfi_init[i].local );
173
173
} else if (sfi_init[i].sf_desc .mask ().id () == e_trapezoid2) {
174
174
global =
175
- trap.to_global_frame (transform_store[ 1 ] , sfi_init[i].local );
175
+ trap.to_global_frame (transform_store. at ( 1 ) , sfi_init[i].local );
176
176
} else if (sfi_init[i].sf_desc .mask ().id () == e_annulus2) {
177
177
global =
178
- annl.to_global_frame (transform_store[ 2 ] , sfi_init[i].local );
178
+ annl.to_global_frame (transform_store. at ( 2 ) , sfi_init[i].local );
179
179
} else if (sfi_init[i].sf_desc .mask ().id () == e_cylinder2) {
180
- global = cyl.to_global_frame (transform_store[3 ], sfi_init[i].local );
180
+ global =
181
+ cyl.to_global_frame (transform_store.at (3 ), sfi_init[i].local );
181
182
} else if (sfi_init[i].sf_desc .mask ().id () == e_cylinder2_portal) {
182
- global = cyl_portal.to_global_frame (transform_store[ 4 ] ,
183
+ global = cyl_portal.to_global_frame (transform_store. at ( 4 ) ,
183
184
sfi_init[i].local );
184
185
}
185
186
@@ -284,13 +285,13 @@ GTEST_TEST(detray_intersection, intersection_kernel_helix) {
284
285
285
286
if (surface.mask ().id () == e_rectangle2) {
286
287
global =
287
- rect.to_global_frame (transform_store[ 0 ] , sfi_helix[0 ].local );
288
+ rect.to_global_frame (transform_store. at ( 0 ) , sfi_helix[0 ].local );
288
289
} else if (surface.mask ().id () == e_trapezoid2) {
289
290
global =
290
- trap.to_global_frame (transform_store[ 1 ] , sfi_helix[0 ].local );
291
+ trap.to_global_frame (transform_store. at ( 1 ) , sfi_helix[0 ].local );
291
292
} else if (surface.mask ().id () == e_annulus2) {
292
293
global =
293
- annl.to_global_frame (transform_store[ 2 ] , sfi_helix[0 ].local );
294
+ annl.to_global_frame (transform_store. at ( 2 ) , sfi_helix[0 ].local );
294
295
}
295
296
296
297
ASSERT_NEAR (global[0 ], expected_points[sf_idx][0 ], is_close);
0 commit comments