Investigated persons, defendants and accused persons subject to pre-trial detention shall undergo it in a prison or an establishment for sentenced persons, under the conditions set out in the provisions of articles L. 112-3, L. 211-1 and L. 211-2 of the Penitentiary Code.