(n)head gatea gate upstream from a lock or canal that is used to control the flow of water at the upper end