Article R15-33-60 of the French Code of Criminal Procedure
If proceedings are initiated in the cases provided for in the twentieth paragraph of Article 41-2, the file relating to these proceedings, which may include details of the measures carried out in whole or in part by the person concerned, is communicated to the trial court, so that it can take them into account when handing down its decision in the event of a conviction.