In cases in which two or more different offenses of the same class of crimes or offenses have been charged together in the same accusatory pleading, or where two or more accusatory pleadings charging offenses of the same class of crimes or offenses have been consolidated, evidence concerning one offense or offenses need not be admissible as to the other offense or offenses before the jointly charged offenses may be tried together before the same trier of fact.
Ca. Pen. Code § 954.1