Indirect or direct heating and DHW cylinder