How to focus a Cherenkov telescope