A public building used to house convicted criminals and accused persons remanded in custody and awaiting trial or permanent confinement.