Development of a scintillation-fiber detector for real-time particle tracking