Tree Libraries
Performance
- Automatic support for multiple TTreeCache per TFile.
Multiple TTreeCache per TFile for reading are supported by using the existing TTree::SetCacheSize(Long64_t) interface.
In addition, a TTreeCache for a TTree can be added using TFile::SetCacheRead(TFileCacheRead*, TObject*), where the second (optional) argument is a pointer to the TTree. The cache can be removed by setting the pointer to 0. In that case the user will have to take ownership for the cache.
Similarily, a pointer to the TTreeCache for a TTree can be obtained using TFile::GetCacheRead(TObject*).