Section 45A. In any city or town to which section forty-four applies and which accepts this section in the manner set forth in section forty-five, the pension payable to a person retired under said section forty-four shall be one half of the highest salary or other compensation received by him while he was holding the grade held by him at his retirement.