Create an instance variable (boolean) for ObjA called 'hit_marker'. When an ObjA hit a marker, set 'hit_marker' to true.
Now you can pick ObjA that is 'hit_marker' to do certain actions.
In your stated approach, no ObjA being clearly filtered because the reference is the Marker not ObjA UID or IID.