The response of a large CsI(Tl) detector to light particles and heavy ions in the intermediate energy range