Such a criminal defendant must be advised of his right to immediately continue with the criminal proceeding, and it is the duty of the judge to apprise the defendant fully of his option and of the consequences which will occur if the defendant chooses the evaluation procedures. The defendant shall have a right to legal counsel at the proceedings at which the choice is made.
Ca. Welf. and Inst. Code § 5226