Optimizing performances of CsI(Tl) crystals with a photodiode readout