According to the news reports, the driver had plenty of time to exit the truck carrying pipe before it was hit by the train.  The train continued to push the truck down the track for 1/2 mile before coming to a stop.

Those pipes flew like the straws in the opening segment of Alice!  I'm glad no one was hurt in this incident...

(Via Youtube)