Facilitates per-event caching when reading a tree. More...
#include <EventCache.h>
Public Member Functions | |
EventCache (TTreeReader const &reader) | |
bool | IsUpdated () const |
Checks if current entry has been updated since previous invocation. | |
Private Attributes | |
TTreeReader const & | reader_ |
Reader object. | |
long long | latestEntry_ |
Index of the previously accessed entry in the tree. |
Facilitates per-event caching when reading a tree.
An object of this class tells whether a TTreeReader has moved to a new entry or stayed at the same one as at the time of the previous check.