CAL. PEN. CODE § 219 : California Code - Section 219

Every person who unlawfully throws out a switch, removes a rail, or places any obstruction on any railroad with the intention of derailing any passenger, freight or other train, car or engine and thus derails the same, or who unlawfully places any dynamite or other explosive material or any other obstruction upon or near the track of any railroad with the intention of blowing up or derailing any such train, car or engine and thus blows up or derails the same, or who unlawfully sets fire to any railroad bridge or trestle over which any such train, car or engine must pass with the intention of wrecking such train, car or engine, and thus wrecks the same, is guilty of a felony and punishable with death or imprisonment in the state prison for life without possibility of parole in cases where any person suffers death as a proximate result thereof, or imprisonment in the state prison for life with the possibility of parole, in cases where no person suffers death as a proximate result thereof. The penalty shall be determined pursuant to Sections 190.3 and 190.4.