implementation of the evaluation of eventDetection

to do:
- plot for a given windows