Individual was not concentrating when attempting to put the trolley pole back on the DC trolley wire. When coming in contact with the energized wire, individual received an electrical shock to the head area. This did not involve any compliance issues, job skills or attitude. All personal safety items were being used.