Bug fix: Added missing break statement to loop in CbmAlgoBuildRawEvents::SetReferenceDetector().
Fix for bug discovered by @v.friese: Loop over elements of vector of detectors is now exited when a detector is removed, to prevent faulty memory accesses by iterator.
Edited by Dominik Smith