#include <RootTree.h>
Public Types | |
typedef input::BranchMap | BranchMap |
typedef input::EntryNumber | EntryNumber |
Public Member Functions | |
void | addBranch (BranchKey const &key, BranchDescription const &prod, std::string const &oldBranchName) |
TBranch *const | branchEntryInfoBranch () const |
BranchMap const & | branches () const |
std::vector< std::string > const & | branchNames () 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 | fillBranchEntryNoCache (TBranch *branch, T *&pbuf) |
void | fillStatus () |
bool | isValid () const |
boost::shared_ptr< DelayedReader > | makeDelayedReader (FileFormatVersion const &fileFormatVersion) const |
TTree const * | metaTree () const |
bool | next () |
bool | previous () |
std::vector< ProductStatus > const & | productStatuses () const |
void | resetTraining () |
void | rewind () |
RootTree (boost::shared_ptr< InputFile > filePtr, BranchType const &branchType, unsigned int maxVirtualSize, unsigned int cacheSize, unsigned int learningEntries) | |
void | setEntryNumber (EntryNumber theEntryNumber) |
void | setPresence (BranchDescription const &prod) |
TTree const * | tree () const |
TTree * | tree () |
~RootTree () | |
Private Member Functions | |
void | setCacheSize (unsigned int cacheSize) |
void | setTreeMaxVirtualSize (int treeMaxVirtualSize) |
Private Attributes | |
TBranch * | auxBranch_ |
TBranch * | branchEntryInfoBranch_ |
boost::shared_ptr< BranchMap > | branches_ |
std::vector< std::string > | branchNames_ |
BranchType | branchType_ |
EntryNumber | entries_ |
EntryNumber | entryNumber_ |
boost::shared_ptr< InputFile > | filePtr_ |
TTree * | infoTree_ |
unsigned int | learningEntries_ |
TTree * | metaTree_ |
std::vector< ProductStatus > * | pProductStatuses_ |
std::vector< ProductStatus > | productStatuses_ |
TBranch * | statusBranch_ |
bool | trained_ |
TTree * | tree_ |
boost::shared_ptr< TTreeCache > | treeCache_ |
Definition at line 25 of file RootTree.h.
Definition at line 27 of file RootTree.h.
Definition at line 28 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 33 of file RootTree.cc.
References setCacheSize(), and setTreeMaxVirtualSize().
edm::RootTree::~RootTree | ( | ) |
Definition at line 59 of file RootTree.cc.
void edm::RootTree::addBranch | ( | BranchKey const & | key, |
BranchDescription const & | prod, | ||
std::string const & | oldBranchName | ||
) |
Definition at line 83 of file RootTree.cc.
References branches_, edm::BranchDescription::branchName(), branchNames_, info, edm::BranchDescription::init(), isValid(), metaTree_, edm::BranchDescription::present(), edm::input::BranchInfo::productBranch_, edm::input::BranchInfo::provenanceBranch_, and tree_.
|
inline |
Definition at line 80 of file RootTree.h.
References branchEntryInfoBranch_.
Referenced by edm::BranchMapperWithReader::readProvenance_().
input::BranchMap const & edm::RootTree::branches | ( | ) | const |
|
inline |
Definition at line 50 of file RootTree.h.
References branchNames_.
Referenced by edm::RootFile::reportOpened().
void edm::RootTree::close | ( | void | ) |
Definition at line 168 of file RootTree.cc.
References auxBranch_, branchEntryInfoBranch_, filePtr_, infoTree_, metaTree_, statusBranch_, trained_, and tree_.
Referenced by python.Vispa.Gui.BoxContentDialog.BoxContentDialog::keyPressEvent(), and python.Vispa.Gui.FindDialog.FindDialog::keyPressEvent().
|
inline |
Definition at line 44 of file RootTree.h.
Referenced by edm::RootFile::readCurrentEvent().
void edm::RootTree::dropBranch | ( | std::string const & | oldBranchName | ) |
Definition at line 103 of file RootTree.cc.
References beamvalidation::br, entries(), i, python.Node::leaf, and tree_.
|
inline |
Definition at line 48 of file RootTree.h.
References entries_.
Referenced by dropBranch(), edm::RootFile::fillIndexIntoFile(), edm::RootFile::setIfFastClonable(), and edm::RootFile::validateFile().
|
inline |
Definition at line 47 of file RootTree.h.
References entryNumber_.
Referenced by edm::RootFile::fillHistory(), edm::RootFile::fillIndexIntoFile(), edm::RootFile::fillThisEventAuxiliary(), and edm::RootFileEventFinder::getEventNumberOfEntry().
|
inline |
Definition at line 54 of file RootTree.h.
References auxBranch_, entryNumber_, filePtr_, edm::input::getEntryWithCache(), and treeCache_.
Referenced by edm::RootFile::fillLumiAuxiliary(), edm::RootFile::fillRunAuxiliary(), edm::RootFile::fillThisEventAuxiliary(), and edm::RootFileEventFinder::getEventNumberOfEntry().
|
inline |
Definition at line 59 of file RootTree.h.
References entryNumber_, filePtr_, edm::input::getEntryWithCache(), and treeCache_.
Referenced by edm::RootFile::fillHistory(), and edm::BranchMapperWithReader::readProvenance_().
|
inline |
Definition at line 64 of file RootTree.h.
References entryNumber_, and edm::input::getEntry().
Referenced by edm::BranchMapperWithReader::readProvenance_().
|
inline |
Definition at line 75 of file RootTree.h.
References entryNumber_, edm::input::getEntry(), pProductStatuses_, and statusBranch_.
bool edm::RootTree::isValid | ( | void | ) | const |
Definition at line 62 of file RootTree.cc.
References auxBranch_, branchEntryInfoBranch_, entries_, metaTree_, statusBranch_, 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().
boost::shared_ptr< DelayedReader > edm::RootTree::makeDelayedReader | ( | FileFormatVersion const & | fileFormatVersion | ) | const |
Definition at line 129 of file RootTree.cc.
References branches_, entryNumber_, filePtr_, and treeCache_.
Referenced by edm::RootFile::readCurrentEvent(), edm::RootFile::readLumi(), and edm::RootFile::readRun_().
|
inline |
Definition at line 70 of file RootTree.h.
References metaTree_.
Referenced by edm::RootFile::createFileBlock().
|
inline |
Definition at line 42 of file RootTree.h.
References entries_, and entryNumber_.
Referenced by edm::RootFile::fillIndexIntoFile(), edm::RootFile::initializeDuplicateChecker(), edm::RootFile::nextEventEntry(), edm::RootFile::readLuminosityBlockAuxiliary_(), and edm::RootFile::readRunAuxiliary_().
|
inline |
Definition at line 43 of file RootTree.h.
References entryNumber_.
Referenced by edm::RootFile::readLuminosityBlockAuxiliary_(), and edm::RootFile::readRunAuxiliary_().
|
inline |
Definition at line 72 of file RootTree.h.
References productStatuses_.
|
inline |
Definition at line 81 of file RootTree.h.
References trained_.
Referenced by edm::RootFile::RootFile(), and edm::RootFile::skipEvents().
|
inline |
Definition at line 45 of file RootTree.h.
References entryNumber_.
Referenced by edm::RootFile::rewind().
|
private |
Definition at line 136 of file RootTree.cc.
References filePtr_, tree_, and treeCache_.
Referenced by RootTree().
void edm::RootTree::setEntryNumber | ( | EntryNumber | theEntryNumber | ) |
Definition at line 148 of file RootTree.cc.
References edm::poolNames::branchListIndexesBranchName(), branchType_, edm::BranchTypeToAuxiliaryBranchName(), entryNumber_, filePtr_, edm::InEvent, learningEntries_, trained_, tree_, 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::setEntryAtRun(), and edm::RootFile::skipEvents().
void edm::RootTree::setPresence | ( | BranchDescription const & | prod | ) |
Definition at line 74 of file RootTree.cc.
References edm::BranchDescription::branchName(), edm::BranchDescription::init(), isValid(), edm::BranchDescription::setDropped(), and tree_.
|
private |
Definition at line 143 of file RootTree.cc.
References tree_.
Referenced by RootTree().
|
inline |
Definition at line 68 of file RootTree.h.
References tree_.
Referenced by edm::RootFile::createFileBlock(), edm::RootFile::fillHistory(), and python.cmstools.EventTree::SetAlias().
|
inline |
Definition at line 69 of file RootTree.h.
References tree_.
Referenced by python.cmstools.EventTree::SetAlias().
|
private |
Definition at line 94 of file RootTree.h.
|
private |
Definition at line 95 of file RootTree.h.
Referenced by branchEntryInfoBranch(), close(), and isValid().
|
private |
Definition at line 103 of file RootTree.h.
Referenced by addBranch(), branches(), and makeDelayedReader().
|
private |
Definition at line 102 of file RootTree.h.
Referenced by addBranch(), and branchNames().
|
private |
Definition at line 93 of file RootTree.h.
Referenced by setEntryNumber().
|
private |
Definition at line 100 of file RootTree.h.
|
private |
Definition at line 101 of file RootTree.h.
Referenced by entryNumber(), fillAux(), fillBranchEntry(), fillBranchEntryNoCache(), fillStatus(), makeDelayedReader(), next(), previous(), rewind(), and setEntryNumber().
|
private |
Definition at line 87 of file RootTree.h.
Referenced by close(), fillAux(), fillBranchEntry(), makeDelayedReader(), setCacheSize(), and setEntryNumber().
|
private |
Definition at line 110 of file RootTree.h.
Referenced by close().
|
private |
Definition at line 105 of file RootTree.h.
Referenced by setEntryNumber().
|
private |
Definition at line 92 of file RootTree.h.
Referenced by addBranch(), close(), isValid(), and metaTree().
|
private |
Definition at line 109 of file RootTree.h.
Referenced by fillStatus().
|
private |
Definition at line 108 of file RootTree.h.
Referenced by productStatuses().
|
private |
Definition at line 111 of file RootTree.h.
Referenced by close(), fillStatus(), and isValid().
|
private |
Definition at line 104 of file RootTree.h.
Referenced by close(), resetTraining(), and setEntryNumber().
|
private |
Definition at line 91 of file RootTree.h.
Referenced by addBranch(), close(), dropBranch(), isValid(), setCacheSize(), setEntryNumber(), setPresence(), setTreeMaxVirtualSize(), and tree().
|
private |
Definition at line 99 of file RootTree.h.
Referenced by fillAux(), fillBranchEntry(), makeDelayedReader(), setCacheSize(), and setEntryNumber().