The Karlsruhe 4π barium fluoride detector