Sounds like you stayed at the main campground in Lake Louise? Sorry, I should have warned you about that. There are alternatives available that don't necessitate pitching your tent directly between the rails of the transcontinental mainline. Takakkaw, in the Yoho Valley, is by far my favourite, or Mosquito Creek and Protection Mountain are good options too.
No, I did not stay there. Johnston Canyon. It was nice. The trains didn't bother me that badly. We lit no fires.