The on-site analysis of the Cherenkov Telescope Array