Performances of a BaF2 detector and its application to the search for beta beta decay modes in Ba-130