We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5f52af0 + d6a59a0 commit 6ff57e5Copy full SHA for 6ff57e5
core/include/detray/propagator/actors/barcode_sequencer.hpp
@@ -24,6 +24,7 @@ struct barcode_sequencer : actor {
24
25
using sequence_t = vecmem::device_vector<detray::geometry::barcode>;
26
sequence_t _sequence;
27
+ bool overflow = false;
28
29
/// Constructor with the vector of track states
30
DETRAY_HOST_DEVICE
@@ -41,6 +42,11 @@ struct barcode_sequencer : actor {
41
42
return;
43
}
44
45
+ if (actor_state._sequence.size() == actor_state._sequence.capacity()) {
46
+ actor_state.overflow = true;
47
+ return;
48
+ }
49
+
50
const auto& bcd = navigation.current().sf_desc.barcode();
51
assert(!bcd.is_invalid());
52
0 commit comments