#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 |
TTreeCache * | checkTriggerCache (TBranch *branch, EntryNumber entryNumber) const |
TTreeCache * | checkTriggerCacheImpl (TBranch *branch, EntryNumber entryNumber) const |
void | close () |
bool | current () const |
bool | current (EntryNumber entry) const |
void | dropBranch (std::string const &oldBranchName) |
EntryNumber const & | entries () const |
EntryNumber const & | entryNumber () const |
EntryNumber const & | entryNumberForIndex (unsigned int index) const |
template<typename T > | |
void | fillAux (T *&pAux) |
template<typename T > | |
void | fillBranchEntry (TBranch *branch, T *&pbuf) |
template<typename T > | |
void | fillBranchEntry (TBranch *branch, EntryNumber entryNumber, T *&pbuf) |
template<typename T > | |
void | fillBranchEntryMeta (TBranch *branch, T *&pbuf) |
template<typename T > | |
void | fillBranchEntryMeta (TBranch *branch, EntryNumber entryNumber, T *&pbuf) |
void | getEntry (TBranch *branch, EntryNumber entry) const |
void | insertEntryForIndex (unsigned int index) |
bool | isValid () const |
TTree const * | metaTree () const |
bool | next () |
RootTree & | operator= (RootTree const &)=delete |
bool | previous () |
void | resetTraining () |
void | rewind () |
DelayedReader * | rootDelayedReader () const |
RootTree (std::shared_ptr< InputFile > filePtr, BranchType const &branchType, unsigned int nIndexes, unsigned int maxVirtualSize, unsigned int cacheSize, unsigned int learningEntries, bool enablePrefetching, InputType inputType) | |
RootTree (RootTree const &)=delete | |
TTreeCache * | selectCache (TBranch *branch, EntryNumber entryNumber) const |
void | setEntryNumber (EntryNumber theEntryNumber) |
void | setPresence (BranchDescription &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_ |
std::shared_ptr< BranchMap > | branches_ |
std::vector< std::string > | branchNames_ |
BranchType | branchType_ |
unsigned int | cacheSize_ |
bool | enablePrefetching_ |
bool | enableTriggerCache_ |
EntryNumber | entries_ |
EntryNumber | entryNumber_ |
std::unique_ptr< std::vector < EntryNumber > > | entryNumberForIndex_ |
std::shared_ptr< InputFile > | filePtr_ |
TTree * | infoTree_ |
unsigned int | learningEntries_ |
TTree * | metaTree_ |
bool | performedSwitchOver_ |
std::shared_ptr< TTreeCache > | rawTreeCache_ |
EntryNumber | rawTriggerSwitchOverEntry_ |
std::shared_ptr< TTreeCache > | rawTriggerTreeCache_ |
std::unique_ptr< DelayedReader > | rootDelayedReader_ |
TBranch * | statusBranch_ |
EntryNumber | switchOverEntry_ |
std::unordered_set< TBranch * > | trainedSet_ |
bool | trainNow_ |
TTree * | tree_ |
unsigned long | treeAutoFlush_ |
std::shared_ptr< TTreeCache > | treeCache_ |
std::unordered_set< TBranch * > | triggerSet_ |
std::shared_ptr< TTreeCache > | triggerTreeCache_ |
Definition at line 61 of file RootTree.h.
Definition at line 63 of file RootTree.h.
Definition at line 64 of file RootTree.h.
edm::RootTree::RootTree | ( | std::shared_ptr< InputFile > | filePtr, |
BranchType const & | branchType, | ||
unsigned int | nIndexes, | ||
unsigned int | maxVirtualSize, | ||
unsigned int | cacheSize, | ||
unsigned int | learningEntries, | ||
bool | enablePrefetching, | ||
InputType | inputType | ||
) |
Definition at line 28 of file RootTree.cc.
References assert(), cacheSize_, learningEntries_, setCacheSize(), setTreeMaxVirtualSize(), trainedSet_, tree_, treeAutoFlush_, and triggerSet_.
edm::RootTree::~RootTree | ( | ) |
Definition at line 88 of file RootTree.cc.
|
delete |
void edm::RootTree::addBranch | ( | BranchKey const & | key, |
BranchDescription const & | prod, | ||
std::string const & | oldBranchName | ||
) |
Definition at line 130 of file RootTree.cc.
References assert(), branches_, edm::BranchDescription::branchName(), branchNames_, info(), isValid(), metaTree_, edm::BranchDescription::present(), edm::roottree::BranchInfo::productBranch_, edm::roottree::BranchInfo::provenanceBranch_, and tree_.
|
inline |
Definition at line 145 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 172 of file RootTree.cc.
References branches_.
Referenced by edm::RootDelayedReader::branches(), checkTriggerCacheImpl(), and trainCache().
|
inline |
Definition at line 98 of file RootTree.h.
References branchNames_.
Referenced by edm::RootFile::reportOpened().
|
inline |
Definition at line 153 of file RootTree.h.
References branchType_.
Referenced by edm::RootDelayedReader::getProduct_(), and edm::ReducedProvenanceReader::ReducedProvenanceReader().
|
inline |
Definition at line 222 of file RootTree.cc.
References checkTriggerCacheImpl(), enableTriggerCache_, NULL, trainedSet_, and treeCache_.
Referenced by selectCache().
TTreeCache * edm::RootTree::checkTriggerCacheImpl | ( | TBranch * | branch, |
EntryNumber | entryNumber | ||
) | const |
Definition at line 233 of file RootTree.cc.
References assert(), branches(), entryNumber_, filePtr_, i, NULL, performedSwitchOver_, rawTriggerSwitchOverEntry_, rawTriggerTreeCache_, trainedSet_, tree_, triggerSet_, and triggerTreeCache_.
Referenced by checkTriggerCache().
void edm::RootTree::close | ( | void | ) |
Definition at line 408 of file RootTree.cc.
References auxBranch_, branchEntryInfoBranch_, filePtr_, infoTree_, metaTree_, rawTreeCache_, rawTriggerTreeCache_, tree_, treeCache_, and triggerTreeCache_.
Referenced by lumiQTWidget.ApplicationWindow::fileQuit(), Vispa.Gui.BoxContentDialog.BoxContentDialog::keyPressEvent(), and Vispa.Gui.FindDialog.FindDialog::keyPressEvent().
|
inline |
Definition at line 89 of file RootTree.h.
Referenced by edm::RootFile::fillEventAuxiliary(), edm::RootFile::readCurrentEvent(), edm::RootFile::readLuminosityBlockAuxiliary_(), and edm::RootFile::readRunAuxiliary_().
|
inline |
Definition at line 90 of file RootTree.h.
void edm::RootTree::dropBranch | ( | std::string const & | oldBranchName | ) |
Definition at line 149 of file RootTree.cc.
References beamvalidation::br, entries(), i, python.Node::leaf, and tree_.
|
inline |
Definition at line 95 of file RootTree.h.
References entries_.
Referenced by dropBranch(), edm::RootFile::fillIndexIntoFile(), edm::RootFile::setIfFastClonable(), and edm::RootFile::validateFile().
|
inline |
Definition at line 93 of file RootTree.h.
References entryNumber_.
Referenced by fillBranchEntryMeta(), edm::RootFile::fillEventHistory(), edm::RootFile::fillIndexIntoFile(), edm::RootFile::fillThisEventAuxiliary(), edm::RootFileEventFinder::getEventNumberOfEntry(), and insertEntryForIndex().
RootTree::EntryNumber const & edm::RootTree::entryNumberForIndex | ( | unsigned int | index | ) | const |
Definition at line 92 of file RootTree.cc.
References assert(), entryNumberForIndex_, cmsHarvester::index, and findQualityFiles::size.
Referenced by edm::RootDelayedReader::getProduct_(), edm::ReducedProvenanceReader::readProvenance(), edm::FullProvenanceReader::readProvenance(), and edm::OldProvenanceReader::readProvenance().
|
inline |
Definition at line 101 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 117 of file RootTree.h.
References entryNumber_, and getEntry().
Referenced by edm::RootFile::fillEventHistory(), and edm::ReducedProvenanceReader::readProvenance().
|
inline |
Definition at line 134 of file RootTree.h.
References getEntry().
|
inline |
Definition at line 106 of file RootTree.h.
References entryNumber_, edm::roottree::getEntry(), and metaTree_.
Referenced by edm::FullProvenanceReader::readProvenance().
|
inline |
Definition at line 123 of file RootTree.h.
References entryNumber(), edm::roottree::getEntry(), and metaTree_.
void edm::RootTree::getEntry | ( | TBranch * | branch, |
EntryNumber | entry | ||
) | const |
Definition at line 355 of file RootTree.cc.
References cms::Exception::addContext(), alignCSCRings::e, filePtr_, edm::errors::FileReadError, selectCache(), AlCaHLTBitMon_QueryRunRegistry::string, and edmStreamStallGrapher::t.
Referenced by fillAux(), fillBranchEntry(), and edm::RootDelayedReader::getProduct_().
void edm::RootTree::insertEntryForIndex | ( | unsigned int | index | ) |
Definition at line 98 of file RootTree.cc.
References assert(), entryNumber(), cmsHarvester::index, and findQualityFiles::size.
Referenced by edm::RootFile::readCurrentEvent(), edm::RootFile::readLuminosityBlock_(), and edm::RootFile::readRun_().
bool edm::RootTree::isValid | ( | void | ) | const |
Definition at line 104 of file RootTree.cc.
References auxBranch_, branchEntryInfoBranch_, entries_, infoTree_, metaTree_, and tree_.
Referenced by addBranch(), edm::RootFile::fillIndexIntoFile(), edm::RootFile::readLuminosityBlock_(), edm::RootFile::readLuminosityBlockAuxiliary_(), edm::RootFile::readRun_(), edm::RootFile::readRunAuxiliary_(), core.AutoHandle.AutoHandle::ReallyLoad(), setPresence(), and edm::RootFile::validateFile().
|
inline |
Definition at line 141 of file RootTree.h.
References metaTree_.
Referenced by edm::RootFile::createFileBlock().
|
inline |
Definition at line 87 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 88 of file RootTree.h.
References entryNumber_.
Referenced by BeautifulSoup.PageElement::_invert().
|
inline |
Definition at line 151 of file RootTree.h.
References trainNow_.
Referenced by edm::RootFile::RootFile().
|
inline |
Definition at line 91 of file RootTree.h.
References entryNumber_.
Referenced by edm::RootFile::rewind().
DelayedReader * edm::RootTree::rootDelayedReader | ( | ) | const |
Definition at line 116 of file RootTree.cc.
References rootDelayedReader_.
Referenced by edm::RootFile::readCurrentEvent(), edm::RootFile::readLuminosityBlock_(), and edm::RootFile::readRun_().
|
inline |
Definition at line 336 of file RootTree.cc.
References checkTriggerCache(), NULL, rawTreeCache_, trainedSet_, and treeCache_.
Referenced by getEntry().
|
private |
Definition at line 175 of file RootTree.cc.
References cacheSize_, enablePrefetching_, filePtr_, rawTreeCache_, tree_, and treeCache_.
Referenced by RootTree().
void edm::RootTree::setEntryNumber | ( | EntryNumber | theEntryNumber | ) |
Definition at line 190 of file RootTree.cc.
References entries_, entryNumber_, filePtr_, rawTriggerSwitchOverEntry_, startTraining(), stopTraining(), switchOverEntry_, trainedSet_, trainNow_, tree_, treeAutoFlush_, treeCache_, and triggerSet_.
Referenced by edm::RootFile::fillEventAuxiliary(), edm::RootFile::fillIndexIntoFile(), edm::RootFileEventFinder::getEventNumberOfEntry(), edm::RootFile::initializeDuplicateChecker(), edm::RootFile::readLuminosityBlock_(), edm::RootFile::readLuminosityBlockAuxiliary_(), edm::RootFile::readRunAuxiliary_(), edm::RootFile::setAtEventEntry(), edm::RootFile::setEntryAtEvent(), edm::RootFile::setEntryAtLumi(), and edm::RootFile::setEntryAtRun().
void edm::RootTree::setPresence | ( | BranchDescription & | prod, |
std::string const & | oldBranchName | ||
) |
Definition at line 122 of file RootTree.cc.
References assert(), isValid(), edm::BranchDescription::setDropped(), and tree_.
|
private |
Definition at line 185 of file RootTree.cc.
References tree_.
Referenced by RootTree().
|
private |
Definition at line 372 of file RootTree.cc.
References assert(), edm::poolNames::branchListIndexesBranchName(), branchType_, edm::BranchTypeToAuxiliaryBranchName(), cacheSize_, entryNumber_, filePtr_, edm::InEvent, learningEntries_, rawTreeCache_, switchOverEntry_, trainedSet_, tree_, treeCache_, and triggerSet_.
Referenced by setEntryNumber().
|
private |
Definition at line 400 of file RootTree.cc.
References filePtr_, rawTreeCache_, and treeCache_.
Referenced by setEntryNumber().
void edm::RootTree::trainCache | ( | char const * | branchNames | ) |
Definition at line 430 of file RootTree.cc.
References assert(), branches(), cacheSize_, filePtr_, i, trainedSet_, tree_, and treeCache_.
Referenced by edm::RootFile::RootFile().
|
inline |
Definition at line 139 of file RootTree.h.
References tree_.
Referenced by edm::RootFile::createFileBlock(), MetTreeProducer.MetTreeProducer::declareVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer::declareVariables(), edm::RootFile::fillEventHistory(), core.AutoFillTreeProducer.AutoFillTreeProducer::fillTree(), MetTreeProducer.MetTreeProducer::process(), edm::ReducedProvenanceReader::ReducedProvenanceReader(), and python.cmstools.EventTree::SetAlias().
|
inline |
Definition at line 140 of file RootTree.h.
References tree_.
Referenced by MetTreeProducer.MetTreeProducer::declareVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer::declareVariables(), core.AutoFillTreeProducer.AutoFillTreeProducer::fillTree(), MetTreeProducer.MetTreeProducer::process(), and python.cmstools.EventTree::SetAlias().
|
private |
Definition at line 167 of file RootTree.h.
|
private |
Definition at line 195 of file RootTree.h.
Referenced by branchEntryInfoBranch(), close(), and isValid().
|
private |
Definition at line 181 of file RootTree.h.
Referenced by addBranch(), and branches().
|
private |
Definition at line 180 of file RootTree.h.
Referenced by addBranch(), and branchNames().
|
private |
Definition at line 166 of file RootTree.h.
Referenced by branchType(), and startTraining().
|
private |
Definition at line 187 of file RootTree.h.
Referenced by RootTree(), setCacheSize(), startTraining(), and trainCache().
|
private |
Definition at line 191 of file RootTree.h.
Referenced by setCacheSize().
|
private |
Definition at line 192 of file RootTree.h.
Referenced by checkTriggerCache().
|
private |
Definition at line 177 of file RootTree.h.
Referenced by entries(), isValid(), next(), and setEntryNumber().
|
private |
Definition at line 178 of file RootTree.h.
Referenced by checkTriggerCacheImpl(), entryNumber(), fillAux(), fillBranchEntry(), fillBranchEntryMeta(), next(), previous(), rewind(), setEntryNumber(), and startTraining().
|
private |
Definition at line 179 of file RootTree.h.
Referenced by entryNumberForIndex().
|
private |
Definition at line 160 of file RootTree.h.
Referenced by checkTriggerCacheImpl(), close(), getEntry(), setCacheSize(), setEntryNumber(), startTraining(), stopTraining(), and trainCache().
|
private |
Definition at line 197 of file RootTree.h.
|
private |
Definition at line 186 of file RootTree.h.
Referenced by RootTree(), and startTraining().
|
private |
Definition at line 165 of file RootTree.h.
Referenced by addBranch(), close(), fillBranchEntryMeta(), isValid(), and metaTree().
|
mutableprivate |
Definition at line 185 of file RootTree.h.
Referenced by checkTriggerCacheImpl().
|
private |
Definition at line 172 of file RootTree.h.
Referenced by close(), selectCache(), setCacheSize(), startTraining(), and stopTraining().
|
mutableprivate |
Definition at line 184 of file RootTree.h.
Referenced by checkTriggerCacheImpl(), and setEntryNumber().
|
mutableprivate |
Definition at line 174 of file RootTree.h.
Referenced by checkTriggerCacheImpl(), and close().
|
private |
Definition at line 193 of file RootTree.h.
Referenced by rootDelayedReader().
|
private |
Definition at line 198 of file RootTree.h.
|
private |
Definition at line 183 of file RootTree.h.
Referenced by setEntryNumber(), and startTraining().
|
mutableprivate |
Definition at line 175 of file RootTree.h.
Referenced by checkTriggerCache(), checkTriggerCacheImpl(), RootTree(), selectCache(), setEntryNumber(), startTraining(), and trainCache().
|
private |
Definition at line 182 of file RootTree.h.
Referenced by resetTraining(), and setEntryNumber().
|
private |
Definition at line 164 of file RootTree.h.
Referenced by addBranch(), checkTriggerCacheImpl(), close(), dropBranch(), isValid(), RootTree(), setCacheSize(), setEntryNumber(), setPresence(), setTreeMaxVirtualSize(), startTraining(), trainCache(), and tree().
|
private |
Definition at line 188 of file RootTree.h.
Referenced by RootTree(), and setEntryNumber().
|
private |
Definition at line 171 of file RootTree.h.
Referenced by checkTriggerCache(), close(), selectCache(), setCacheSize(), setEntryNumber(), startTraining(), stopTraining(), and trainCache().
|
mutableprivate |
Definition at line 176 of file RootTree.h.
Referenced by checkTriggerCacheImpl(), RootTree(), setEntryNumber(), and startTraining().
|
mutableprivate |
Definition at line 173 of file RootTree.h.
Referenced by checkTriggerCacheImpl(), and close().