Q 427

If a magic trap has a detect spell (like detect evil) as the trigger, does it go off as soon as a good-aligned creature enters it's range, or does it need to "concentrate" for a round first?