Cal. Penal Code § 369b
(c) For a first offense, a court, at its discretion, may order any person cited for any of the following violations to attend a traffic school offering a rail safety presentation, Internet rail safety test, or rail transit safety film prepared by a county transportation commission or authority, pay an additional fine of one hundred dollars ($100), or both: