Hershey has a big rail presence in the eponymous town.
Rail service to the big factory in town has ended, but the plant west of town (on the NS Harrisburg line) still sees service.
From what I remember, they got lots of cars of cocoa beans. These came bagged in 50' boxcars from various ports. There were also a ton of BNSF hoppers hanging around too.
Then there's corn syrup, sugar and some sort of "paste" (I think it was peanut paste for Reese's Cups).