(1) Any person attending a Criminal Court although not under arrest or upon a summons, may be detained by such Court for the purpose of inquiry into or trial of any offence of which Court can take cognizance and which from the evidence may appear to have been arrested or summoned. (2) When the detention takes place after a trial has ...