(a) A person shall be subjected to the penalty of death for a capital felony committed prior to April 25, 2012, under the provisions of section 53a-54b in effect prior to April 25, 2012, only if (1) a hearing is held in accordance with the provisions of this section, and (2) such person was eighteen years of age or older at the time the offense was committed. (b) For the purpose of determining the sentence to be imposed when a defendant is convicted of or pleads guilty to a capital felony, the judge