After exercise , a painful stimulus ( cold pressor test ) was applied to the subjects ' medial forearm in a magnetic resonance imaging scanning gantry , and pain-evoked brain activation was analyzed .