Skip to content
Snippets Groups Projects
Verified Commit 627070cf authored by Tamas Gal's avatar Tamas Gal :speech_balloon:
Browse files

Add lastindex for RBRIterator

parent 89898e55
No related branches found
No related tags found
2 merge requests!25MC event matcher,!24RBR iterator
......@@ -6,6 +6,7 @@ struct RBRIterator
f::ROOTFile
end
Base.length(itr::RBRIterator) = length(itr.f.online.events)
Base.lastindex(itr::RBRIterator) = length(itr)
function Base.getindex(itr::RBRIterator, idx::Integer)
event = itr.f.online.events[idx]
mc_idx = event.header.trigger_counter + 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment