  We generalize a theorem by Titchmarsh about the mean value of Hardy's
$Z$-function at the Gram points to the Hecke $L$-functions, which in turn
implies the weak Gram law for them. Instead of proceeding analogously to
Titchmarsh with an approximate functional equation we employ a different method
using contour integration.
