With most district heating systems, the hot water supply pipe enters the building from the hot water main and transfers heat to a central hot water tank, from which heating and water heating within the building are supplied.