I have always cut the plugs off and soldered on spade lugs which accommodate any and all toy train terminals. As Frank noted the telltale rib on the cord is Hot. (in the little "09 space-deprived attic room the plumbing helped get the "noodles" organized)
The 180 PoHos with the red/white "phased" labels located on the lower shelf of my early condo layout were a pair of the very first PoHos shipped that were out of phase with the toy train world. I slotted a skinny screwdriver and opened both, found adequate slack and cut the cord well inside the strain knot, slid on 3 sizes of shrink wrap, reversed and soldered the 120 VAC conductors, shrunk and taped and reassembled. Later the adapters became available and I sent them to my fix adviser, Jim Barrett for decorating his Christmas tree.