BANFF NATIONAL PARK — A grizzly bear smells a carcass, either a beaver or an elk, walks up to the mocked-up train tracks and steps onto an electrified mat. Shocked, it retreats. Not only that, the bear appears to have learned an important lesson that could save its life.It’s a scenario that has happened several times in the past year, when Parks Canada started a pilot study at two test sites built to mimic a fenced railway line.