Actually, I have a book that has those in it. My grandmother took a trip to Switzerland a few years ago and bought the book for me just because it had the trains on the front.
Anyway, even Switzerland was hit by WWII's fuel shortage. To cope, they put electric heaters in the boilers of some of the steam engines and a pantograph on top to collect current.