I've a pair of https://www.amazon.com/dp/B001V2SS9G/ that I got for the transbay tube. Works against yelling folks, too, and have little plugs you can pull out for the more bearable portions. active noise cancelling headphones work by injecting more (inverse) noise in to your ears so I'm a bit suspicious of them for the rail noise, myself.