You need to do
```
auto const& extra = (*trackExtras)[track_counter];
```
in order to get the TrackExtra associated with the Track from the Event.