#include <RootTree.h>
Public Types | |
typedef roottree::BranchMap | BranchMap |
typedef roottree::EntryNumber | EntryNumber |
Public Member Functions | |
void | addBranch (BranchKey const &key, BranchDescription const &prod, std::string const &oldBranchName) |
TBranch * | branchEntryInfoBranch () const |
BranchMap const & | branches () const |
std::vector< std::string > const & | branchNames () const |
BranchType | branchType () const |
void | close () |
bool | current () |
void | dropBranch (std::string const &oldBranchName) |
EntryNumber const & | entries () const |
EntryNumber const & | entryNumber () const |
template<typename T > | |
void | fillAux (T *&pAux) |
template<typename T > | |
void | fillBranchEntry (TBranch *branch, T *&pbuf) |
template<typename T > | |
void | fillBranchEntryMeta (TBranch *branch, T *&pbuf) |
void | getEntry (TBranch *branch, EntryNumber entry) const |
bool | isValid () const |
TTree const * | metaTree () const |
bool | next () |
RootTree & | operator= (RootTree const &)=delete |
bool | previous () |
void | resetTraining () |
void | rewind () |
DelayedReader * | rootDelayedReader () const |
RootTree (boost::shared_ptr< InputFile > filePtr, BranchType const &branchType, unsigned int maxVirtualSize, unsigned int cacheSize, unsigned int learningEntries) | |
RootTree (RootTree const &)=delete | |
void | setEntryNumber (EntryNumber theEntryNumber) |
void | setPresence (BranchDescription const &prod, std::string const &oldBranchName) |
void | trainCache (char const *branchNames) |
TTree const * | tree () const |
TTree * | tree () |
~RootTree () | |
Private Member Functions | |
void | setCacheSize (unsigned int cacheSize) |
void | setTreeMaxVirtualSize (int treeMaxVirtualSize) |
void | startTraining () |
void | stopTraining () |
Private Attributes | |
TBranch * | auxBranch_ |
TBranch * | branchEntryInfoBranch_ |
boost::shared_ptr< BranchMap > | branches_ |
std::vector< std::string > | branchNames_ |
BranchType | branchType_ |
unsigned int | cacheSize_ |
EntryNumber | entries_ |
EntryNumber | entryNumber_ |
boost::shared_ptr< InputFile > | filePtr_ |
TTree * | infoTree_ |
unsigned int | learningEntries_ |
TTree * | metaTree_ |
boost::shared_ptr< TTreeCache > | rawTreeCache_ |
std::unique_ptr< DelayedReader > | rootDelayedReader_ |
TBranch * | statusBranch_ |
EntryNumber | switchOverEntry_ |
bool | trainNow_ |
TTree * | tree_ |
long int | treeAutoFlush_ |
boost::shared_ptr< TTreeCache > | treeCache_ |
Definition at line 56 of file RootTree.h.
Definition at line 58 of file RootTree.h.
Definition at line 59 of file RootTree.h.
edm::RootTree::RootTree | ( | boost::shared_ptr< InputFile > | filePtr, |
BranchType const & | branchType, | ||
unsigned int | maxVirtualSize, | ||
unsigned int | cacheSize, | ||
unsigned int | learningEntries | ||
) |
Definition at line 27 of file RootTree.cc.
References cacheSize_, setCacheSize(), setTreeMaxVirtualSize(), tree_, and treeAutoFlush_.
edm::RootTree::~RootTree | ( | ) |
Definition at line 64 of file RootTree.cc.
|
delete |
void edm::RootTree::addBranch | ( | BranchKey const & | key, |
BranchDescription const & | prod, | ||
std::string const & | oldBranchName | ||
) |
Definition at line 95 of file RootTree.cc.
References branches_, edm::BranchDescription::branchName(), branchNames_, info, edm::BranchDescription::init(), isValid(), metaTree_, edm::BranchDescription::present(), edm::roottree::BranchInfo::productBranch_, edm::roottree::BranchInfo::provenanceBranch_, and tree_.
|
inline |
Definition at line 117 of file RootTree.h.
References branchEntryInfoBranch_.
Referenced by edm::FullProvenanceReader::readProvenance(), and edm::OldProvenanceReader::readProvenance().
roottree::BranchMap const & edm::RootTree::branches | ( | ) | const |
Definition at line 138 of file RootTree.cc.
References branches_.
Referenced by edm::RootDelayedReader::branches().
|
inline |
Definition at line 87 of file RootTree.h.
References branchNames_.
Referenced by edm::RootFile::reportOpened().
|
inline |
Definition at line 122 of file RootTree.h.
References branchType_.
Referenced by edm::RootDelayedReader::getProduct_(), and edm::ReducedProvenanceReader::ReducedProvenanceReader().
void edm::RootTree::close | ( | void | ) |
Definition at line 239 of file RootTree.cc.
References auxBranch_, branchEntryInfoBranch_, filePtr_, infoTree_, metaTree_, and tree_.
Referenced by lumiQTWidget.ApplicationWindow::fileQuit(), Vispa.Gui.BoxContentDialog.BoxContentDialog::keyPressEvent(), and Vispa.Gui.FindDialog.FindDialog::keyPressEvent().
|
inline |
Definition at line 81 of file RootTree.h.
Referenced by edm::RootFile::readCurrentEvent(), edm::RootFile::readLuminosityBlockAuxiliary_(), and edm::RootFile::readRunAuxiliary_().
void edm::RootTree::dropBranch | ( | std::string const & | oldBranchName | ) |
Definition at line 115 of file RootTree.cc.
References scaleCards::br, entries(), i, python.Node::leaf, and tree_.
|
inline |
Definition at line 85 of file RootTree.h.
References entries_.
Referenced by dropBranch(), edm::RootFile::fillIndexIntoFile(), edm::RootFile::setIfFastClonable(), and edm::RootFile::validateFile().
|
inline |
Definition at line 84 of file RootTree.h.
References entryNumber_.
Referenced by edm::RootDelayedReader::entryNumber(), edm::RootFile::fillHistory(), edm::RootFile::fillIndexIntoFile(), edm::RootFile::fillThisEventAuxiliary(), edm::RootFileEventFinder::getEventNumberOfEntry(), edm::RootFile::readLuminosityBlockAuxiliary_(), edm::OldProvenanceReader::readProvenance(), and edm::RootFile::readRunAuxiliary_().
|
inline |
Definition at line 90 of file RootTree.h.
References auxBranch_, entryNumber_, and getEntry().
Referenced by edm::RootFile::fillLumiAuxiliary(), edm::RootFile::fillRunAuxiliary(), edm::RootFile::fillThisEventAuxiliary(), and edm::RootFileEventFinder::getEventNumberOfEntry().
|
inline |
Definition at line 106 of file RootTree.h.
References entryNumber_, and getEntry().
Referenced by edm::RootFile::fillHistory(), and edm::ReducedProvenanceReader::readProvenance().
|
inline |
Definition at line 95 of file RootTree.h.
References entryNumber_, edm::roottree::getEntry(), and metaTree_.
Referenced by edm::FullProvenanceReader::readProvenance().
void edm::RootTree::getEntry | ( | TBranch * | branch, |
EntryNumber | entry | ||
) | const |
Definition at line 182 of file RootTree.cc.
References cms::Exception::addContext(), alignCSCRings::e, filePtr_, edm::errors::FileReadError, rawTreeCache_, lumiQTWidget::t, and treeCache_.
Referenced by fillAux(), fillBranchEntry(), and edm::RootDelayedReader::getProduct_().
bool edm::RootTree::isValid | ( | void | ) | const |
Definition at line 68 of file RootTree.cc.
References auxBranch_, branchEntryInfoBranch_, entries_, infoTree_, metaTree_, and tree_.
Referenced by addBranch(), edm::RootFile::fillIndexIntoFile(), edm::RootFile::readLumi(), edm::RootFile::readLuminosityBlockAuxiliary_(), edm::RootFile::readRun_(), edm::RootFile::readRunAuxiliary_(), setPresence(), and edm::RootFile::validateFile().
|
inline |
Definition at line 113 of file RootTree.h.
References metaTree_.
Referenced by edm::RootFile::createFileBlock().
|
inline |
Definition at line 79 of file RootTree.h.
References entries_, and entryNumber_.
Referenced by BeautifulSoup.PageElement::_invert(), edm::RootFile::fillIndexIntoFile(), edm::RootFile::initializeDuplicateChecker(), and edm::RootFile::nextEventEntry().
|
inline |
Definition at line 80 of file RootTree.h.
References entryNumber_.
Referenced by BeautifulSoup.PageElement::_invert().
|
inline |
Definition at line 120 of file RootTree.h.
References trainNow_.
Referenced by edm::RootFile::RootFile().
|
inline |
Definition at line 82 of file RootTree.h.
References entryNumber_.
Referenced by edm::RootFile::rewind().
DelayedReader * edm::RootTree::rootDelayedReader | ( | ) | const |
Definition at line 80 of file RootTree.cc.
References rootDelayedReader_.
Referenced by edm::RootFile::readCurrentEvent(), edm::RootFile::readLumi(), and edm::RootFile::readRun_().
|
private |
Definition at line 141 of file RootTree.cc.
References cacheSize_, filePtr_, rawTreeCache_, tree_, and treeCache_.
Referenced by RootTree().
void edm::RootTree::setEntryNumber | ( | EntryNumber | theEntryNumber | ) |
Definition at line 155 of file RootTree.cc.
References entries_, entryNumber_, filePtr_, startTraining(), stopTraining(), switchOverEntry_, trainNow_, tree_, treeAutoFlush_, and treeCache_.
Referenced by edm::RootFile::fillEventAuxiliary(), edm::RootFile::fillIndexIntoFile(), edm::RootFileEventFinder::getEventNumberOfEntry(), edm::RootFile::initializeDuplicateChecker(), edm::RootFile::readEvent(), edm::RootFile::readLumi(), edm::RootFile::readLuminosityBlockAuxiliary_(), edm::RootFile::readRunAuxiliary_(), edm::RootFile::setAtEventEntry(), edm::RootFile::setEntryAtEvent(), edm::RootFile::setEntryAtLumi(), edm::RootFile::setEntryAtNextEventInLumi(), edm::RootFile::setEntryAtRun(), and edm::RootFile::skipEvents().
void edm::RootTree::setPresence | ( | BranchDescription const & | prod, |
std::string const & | oldBranchName | ||
) |
Definition at line 86 of file RootTree.cc.
References edm::BranchDescription::init(), isValid(), edm::BranchDescription::setDropped(), and tree_.
|
private |
Definition at line 150 of file RootTree.cc.
References tree_.
Referenced by RootTree().
|
private |
Definition at line 208 of file RootTree.cc.
References edm::poolNames::branchListIndexesBranchName(), branchType_, edm::BranchTypeToAuxiliaryBranchName(), cacheSize_, entryNumber_, filePtr_, edm::InEvent, learningEntries_, rawTreeCache_, switchOverEntry_, tree_, and treeCache_.
Referenced by setEntryNumber().
|
private |
Definition at line 232 of file RootTree.cc.
References filePtr_, rawTreeCache_, and treeCache_.
Referenced by setEntryNumber().
void edm::RootTree::trainCache | ( | char const * | branchNames | ) |
Definition at line 253 of file RootTree.cc.
References cacheSize_, filePtr_, tree_, and treeCache_.
Referenced by edm::RootFile::RootFile().
|
inline |
Definition at line 111 of file RootTree.h.
References tree_.
Referenced by edm::RootFile::createFileBlock(), edm::RootFile::fillHistory(), edm::ReducedProvenanceReader::ReducedProvenanceReader(), and python.cmstools.EventTree::SetAlias().
|
inline |
Definition at line 112 of file RootTree.h.
References tree_.
Referenced by python.cmstools.EventTree::SetAlias().
|
private |
Definition at line 136 of file RootTree.h.
|
private |
Definition at line 153 of file RootTree.h.
Referenced by branchEntryInfoBranch(), close(), and isValid().
|
private |
Definition at line 145 of file RootTree.h.
Referenced by addBranch(), and branches().
|
private |
Definition at line 144 of file RootTree.h.
Referenced by addBranch(), and branchNames().
|
private |
Definition at line 135 of file RootTree.h.
Referenced by branchType(), and startTraining().
|
private |
Definition at line 149 of file RootTree.h.
Referenced by RootTree(), setCacheSize(), startTraining(), and trainCache().
|
private |
Definition at line 142 of file RootTree.h.
Referenced by entries(), isValid(), next(), and setEntryNumber().
|
private |
Definition at line 143 of file RootTree.h.
Referenced by entryNumber(), fillAux(), fillBranchEntry(), fillBranchEntryMeta(), next(), previous(), rewind(), setEntryNumber(), and startTraining().
|
private |
Definition at line 129 of file RootTree.h.
Referenced by close(), getEntry(), setCacheSize(), setEntryNumber(), startTraining(), stopTraining(), and trainCache().
|
private |
Definition at line 155 of file RootTree.h.
|
private |
Definition at line 148 of file RootTree.h.
Referenced by startTraining().
|
private |
Definition at line 134 of file RootTree.h.
Referenced by addBranch(), close(), fillBranchEntryMeta(), isValid(), and metaTree().
|
private |
Definition at line 141 of file RootTree.h.
Referenced by getEntry(), setCacheSize(), startTraining(), and stopTraining().
|
private |
Definition at line 151 of file RootTree.h.
Referenced by rootDelayedReader().
|
private |
Definition at line 156 of file RootTree.h.
|
private |
Definition at line 147 of file RootTree.h.
Referenced by setEntryNumber(), and startTraining().
|
private |
Definition at line 146 of file RootTree.h.
Referenced by resetTraining(), and setEntryNumber().
|
private |
Definition at line 133 of file RootTree.h.
Referenced by addBranch(), close(), dropBranch(), isValid(), RootTree(), setCacheSize(), setEntryNumber(), setPresence(), setTreeMaxVirtualSize(), startTraining(), trainCache(), and tree().
|
private |
Definition at line 150 of file RootTree.h.
Referenced by RootTree(), and setEntryNumber().
|
private |
Definition at line 140 of file RootTree.h.
Referenced by getEntry(), setCacheSize(), setEntryNumber(), startTraining(), stopTraining(), and trainCache().