Supermassive black holes in cosmological simulations I: MBH − M⋆ relation and black hole mass function | Publicación