Calculate event size based on event format
Merge pull request #2 from tilowestermann/master

Calculate event size based on event format