Large deviations for sums defined on a Galton-Watson processes