shall, upon retirement for service, receive, on account of the first twenty-five years of service in such uniformed force, a pension or retirement allowance which shall, subject to the provisions of this section, be equal to one-half of his annual salary or compensation when so retired.
N.Y. Gen. City Law § 16-C