Write data on a txt file

or:

root [0] .> selected_event.txt
t->Scan(...)
.>