Were this the case, the tower, for obvious security reasons, would have had to be enclosed within the prison walls and thus be an integral part of it.
Even a casual look, however, will show that whilst the tower is adjacent to the prison it is in no way connected to it. It could not, therefore, have had any prison-related function.