Classes | |
struct | BranchInfo |
Typedefs | |
typedef std::map< BranchKey const, BranchInfo > | BranchMap |
typedef Long64_t | EntryNumber |
Functions | |
Int_t | getEntry (TBranch *branch, EntryNumber entryNumber) |
Int_t | getEntry (TTree *tree, EntryNumber entryNumber) |
std::unique_ptr< TTreeCache > | trainCache (TTree *tree, InputFile &file, unsigned int cacheSize, char const *branchNames) |
Variables | |
unsigned int const | defaultCacheSize = 20U * 1024 * 1024 |
unsigned int const | defaultLearningEntries = 20U |
unsigned int const | defaultNonEventCacheSize = 1U * 1024 * 1024 |
unsigned int const | defaultNonEventLearningEntries = 1U |
typedef std::map<BranchKey const, BranchInfo> edm::roottree::BranchMap |
Definition at line 50 of file RootTree.h.
typedef Long64_t edm::roottree::EntryNumber |
Definition at line 38 of file RootTree.h.
Int_t edm::roottree::getEntry | ( | TBranch * | branch, |
EntryNumber | entryNumber | ||
) |
Definition at line 273 of file RootTree.cc.
References alignCSCRings::e, Exception, edm::errors::FileReadError, and n.
Referenced by edm::RootFile::RootFile().
{ Int_t n = 0; try { n = branch->GetEntry(entryNumber); } catch(cms::Exception const& e) { throw Exception(errors::FileReadError, "", e); } return n; }
Int_t edm::roottree::getEntry | ( | TTree * | tree, |
EntryNumber | entryNumber | ||
) |
Definition at line 285 of file RootTree.cc.
References alignCSCRings::e, Exception, edm::errors::FileReadError, and n.
{ Int_t n = 0; try { n = tree->GetEntry(entryNumber); } catch(cms::Exception const& e) { throw Exception (errors::FileReadError, "", e); } return n; }
std::unique_ptr< TTreeCache > edm::roottree::trainCache | ( | TTree * | tree, |
InputFile & | file, | ||
unsigned int | cacheSize, | ||
char const * | branchNames | ||
) |
Definition at line 297 of file RootTree.cc.
References edm::InputFile::GetCacheRead(), and edm::InputFile::SetCacheRead().
Referenced by edm::RootFile::RootFile().
{ tree->LoadTree(0); tree->SetCacheSize(cacheSize); std::unique_ptr<TTreeCache> treeCache(dynamic_cast<TTreeCache*>(file.GetCacheRead())); if (0 != treeCache.get()) { treeCache->StartLearningPhase(); treeCache->SetEntryRange(0, tree->GetEntries()); treeCache->AddBranch(branchNames, kTRUE); treeCache->StopLearningPhase(); } // We own the treeCache_. // We make sure the treeCache_ is detached from the file, // so that ROOT does not also delete it. file.SetCacheRead(0); return treeCache; }
unsigned int const edm::roottree::defaultCacheSize = 20U * 1024 * 1024 |
Definition at line 34 of file RootTree.h.
Referenced by edm::RootInputFileSequence::fillDescription().
unsigned int const edm::roottree::defaultLearningEntries = 20U |
Definition at line 36 of file RootTree.h.
unsigned int const edm::roottree::defaultNonEventCacheSize = 1U * 1024 * 1024 |
Definition at line 35 of file RootTree.h.
Referenced by edm::RootFile::RootFile().
unsigned int const edm::roottree::defaultNonEventLearningEntries = 1U |
Definition at line 37 of file RootTree.h.