From my understanding, the effectiveness of the vaccine is measured by monitoring - in the real world - how many vaccinated people of a group catches the virus compared with how many unvaccinated did: how would it work in this case? I guess it would just take a lot of years to come up with a good approximation.
This info should give you a better idea of how one might compose a set of trial groups for something like this.