When an indictment is found or an information filed in the superior court against a judge thereof, a certificate of that fact must be transmitted by the clerk to the chairman of the Judicial Council, who shall thereupon designate and assign a judge of the superior court of another county to preside at the trial of such indictment or information, and hear and determine all pleas and motions affecting the defendant thereunder before and after judgment.
Ca. Pen. Code § 1029