Mosquito Creek is typical of the basic campgrounds between LL and Jasper.
There is a major railway running through Banff Nat Park, following the same route as the Trans Canada Hwy. In fact the railway is part of why there is a park - the park lodges (grand hotels) were built by the railway to promote tourism. At one time there was even coal mining operation to supply the locomotives (near Banff).
Tracks close to the Lake Louise campgrounds. LL has 2, one with services for RVs, the other for tents (and smaller rvs) that is surrounded by a bear fence. I don't recall much train noise at the tent campground. I must have heard it, but it was far enough away from our site to not stand out.
The main campground in Yoho, just over the Kicking Horse pass, is right below the railway as it climbs through the famed tunnels. So the the train noise is quite noticeable, even though it isn't as close. Still it is a lovely setting (and every bit as busy as LL).