Supermassive black holes in cosmological simulations I: MBH − M⋆ relation and black hole mass function. Issue 2 (22nd February 2021)