The retirement annuity or pension provided by this article shall be granted to the marshal and constable only if in the county where the superior court is located there is provided a retirement annuity or pension for county and township peace officers who perform duties of the same character as those performed by the marshal and constable.
Ca. Gov. Code § 71305