Thank you for sharing your story. There is absolutely no excuse for hitting a child and it’s very unfortunate that a fellow passenger stooped to that level.
I am currently enrolled in a program to help atypical students in the classroom. There are many different things you can try to help her with the train. A lot of the supports used for autism may help your daughter, things like social stories, task analysis and video modeling and there is nothing wrong with trying noise cancelling headphones. I wish you luck in finding some supports that work.