Heavy ions detection by using BaF2 crystals coupled to thin plastic scintillator