change margin to pretrig and hdt
convert Events to ndarray to enable fancy slicing