WIP: 3d mask with event matrix