should be just data()->GetEvents(), the argument is not needed at this function any more.