plotevents.py is python script which really reads and plots the events. fileplotter is a class necessary for it.