added caching to TTree
event id got separately, cleanup