@@ -46,14 +46,17 @@ using algebra_t = test::algebra;
46
46
// dummy propagator state
47
47
template <typename stepping_t , typename navigation_t >
48
48
struct prop_state {
49
+ using context_t = typename navigation_t ::detector_type::geometry_context;
49
50
50
51
stepping_t _stepping;
51
52
navigation_t _navigation;
53
+ context_t _context;
52
54
53
55
template <typename track_t , typename field_type>
54
56
prop_state (const track_t &t_in, const field_type &field,
55
- const typename navigation_t ::detector_type &det)
56
- : _stepping(t_in, field), _navigation(det) {}
57
+ const typename navigation_t ::detector_type &det,
58
+ const context_t &ctx = {})
59
+ : _stepping(t_in, field), _navigation(det), _context(ctx) {}
57
60
};
58
61
59
62
inline constexpr bool verbose_check = true ;
@@ -193,9 +196,9 @@ GTEST_TEST(detray_detectors, telescope_detector) {
193
196
navigation_state_t &navigation_x = propgation_x._navigation ;
194
197
195
198
// propagate all telescopes
196
- navigator_z1.init (stepping_z1 (), navigation_z1, prop_cfg.navigation );
197
- navigator_z2.init (stepping_z2 (), navigation_z2, prop_cfg.navigation );
198
- navigator_x.init (stepping_x (), navigation_x, prop_cfg.navigation );
199
+ navigator_z1.init (stepping_z1 (), navigation_z1, prop_cfg.navigation , prop_cfg. context );
200
+ navigator_z2.init (stepping_z2 (), navigation_z2, prop_cfg.navigation , prop_cfg. context );
201
+ navigator_x.init (stepping_x (), navigation_x, prop_cfg.navigation , prop_cfg. context );
199
202
200
203
bool heartbeat_z1 = navigation_z1.is_alive ();
201
204
bool heartbeat_z2 = navigation_z2.is_alive ();
@@ -292,7 +295,7 @@ GTEST_TEST(detray_detectors, telescope_detector) {
292
295
stepping_state_t &tel_stepping = tel_propagation._stepping ;
293
296
294
297
// run propagation
295
- tel_navigator.init (tel_stepping (), tel_navigation, prop_cfg.navigation );
298
+ tel_navigator.init (tel_stepping (), tel_navigation, prop_cfg.navigation , prop_cfg. context );
296
299
bool heartbeat_tel = tel_navigation.is_alive ();
297
300
298
301
bool do_reset_tel{true };
0 commit comments