![]() |
![]() |
#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) |
bool | skipEntries (unsigned int &offset) |
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.
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.
|
inline |
Definition at line 146 of file RootTree.h.
roottree::BranchMap const & edm::RootTree::branches | ( | ) | const |
Definition at line 172 of file RootTree.cc.
Referenced by edm::RootDelayedReader::branches().
|
inline |
Definition at line 99 of file RootTree.h.
|
inline |
Definition at line 154 of file RootTree.h.
Referenced by edm::RootDelayedReader::getProduct_().
|
inline |
Definition at line 222 of file RootTree.cc.
TTreeCache * edm::RootTree::checkTriggerCacheImpl | ( | TBranch * | branch, |
EntryNumber | entryNumber | ||
) | const |
Definition at line 233 of file RootTree.cc.
void edm::RootTree::close | ( | void | ) |
Definition at line 427 of file RootTree.cc.
Referenced by lumiQTWidget.ApplicationWindow::fileQuit(), and Vispa.Gui.BoxContentDialog.BoxContentDialog::keyPressEvent().
|
inline |
Definition at line 89 of file RootTree.h.
|
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.
|
inline |
Definition at line 96 of file RootTree.h.
|
inline |
Definition at line 94 of file RootTree.h.
RootTree::EntryNumber const & edm::RootTree::entryNumberForIndex | ( | unsigned int | index | ) | const |
Definition at line 92 of file RootTree.cc.
Referenced by edm::RootDelayedReader::getProduct_().
|
inline |
Definition at line 102 of file RootTree.h.
|
inline |
Definition at line 118 of file RootTree.h.
|
inline |
Definition at line 135 of file RootTree.h.
|
inline |
Definition at line 107 of file RootTree.h.
|
inline |
Definition at line 124 of file RootTree.h.
void edm::RootTree::getEntry | ( | TBranch * | branch, |
EntryNumber | entry | ||
) | const |
Definition at line 355 of file RootTree.cc.
Referenced by edm::RootDelayedReader::getProduct_().
void edm::RootTree::insertEntryForIndex | ( | unsigned int | index | ) |
Definition at line 98 of file RootTree.cc.
bool edm::RootTree::isValid | ( | void | ) | const |
Definition at line 104 of file RootTree.cc.
Referenced by core.AutoHandle.AutoHandle::ReallyLoad().
|
inline |
Definition at line 142 of file RootTree.h.
|
inline |
Definition at line 87 of file RootTree.h.
|
inline |
Definition at line 88 of file RootTree.h.
|
inline |
Definition at line 152 of file RootTree.h.
|
inline |
Definition at line 91 of file RootTree.h.
DelayedReader * edm::RootTree::rootDelayedReader | ( | ) | const |
Definition at line 116 of file RootTree.cc.
|
inline |
Definition at line 336 of file RootTree.cc.
|
private |
Definition at line 175 of file RootTree.cc.
void edm::RootTree::setEntryNumber | ( | EntryNumber | theEntryNumber | ) |
Definition at line 190 of file RootTree.cc.
void edm::RootTree::setPresence | ( | BranchDescription & | prod, |
std::string const & | oldBranchName | ||
) |
Definition at line 122 of file RootTree.cc.
|
private |
Definition at line 185 of file RootTree.cc.
bool edm::RootTree::skipEntries | ( | unsigned int & | offset | ) |
Definition at line 372 of file RootTree.cc.
|
private |
Definition at line 388 of file RootTree.cc.
|
private |
Definition at line 419 of file RootTree.cc.
void edm::RootTree::trainCache | ( | char const * | branchNames | ) |
Definition at line 449 of file RootTree.cc.
|
inline |
Definition at line 140 of file RootTree.h.
Referenced by ZJetsTreeAnalyzer.ZJetsTreeAnalyzer::beginLoop(), MetTreeProducer.MetTreeProducer::declareVariables(), ZJetsTreeAnalyzer.ZJetsTreeAnalyzer::process(), and MetTreeProducer.MetTreeProducer::process().
|
inline |
Definition at line 141 of file RootTree.h.
Referenced by ZJetsTreeAnalyzer.ZJetsTreeAnalyzer::beginLoop(), MetTreeProducer.MetTreeProducer::declareVariables(), ZJetsTreeAnalyzer.ZJetsTreeAnalyzer::process(), and MetTreeProducer.MetTreeProducer::process().
|
private |
Definition at line 168 of file RootTree.h.
|
private |
Definition at line 196 of file RootTree.h.
|
private |
Definition at line 182 of file RootTree.h.
|
private |
Definition at line 181 of file RootTree.h.
|
private |
Definition at line 167 of file RootTree.h.
|
private |
Definition at line 188 of file RootTree.h.
|
private |
Definition at line 192 of file RootTree.h.
|
private |
Definition at line 193 of file RootTree.h.
|
private |
Definition at line 178 of file RootTree.h.
|
private |
Definition at line 179 of file RootTree.h.
|
private |
Definition at line 180 of file RootTree.h.
|
private |
Definition at line 161 of file RootTree.h.
|
private |
Definition at line 198 of file RootTree.h.
|
private |
Definition at line 187 of file RootTree.h.
|
private |
Definition at line 166 of file RootTree.h.
|
mutableprivate |
Definition at line 186 of file RootTree.h.
|
private |
Definition at line 173 of file RootTree.h.
|
mutableprivate |
Definition at line 185 of file RootTree.h.
|
mutableprivate |
Definition at line 175 of file RootTree.h.
|
private |
Definition at line 194 of file RootTree.h.
|
private |
Definition at line 199 of file RootTree.h.
|
private |
Definition at line 184 of file RootTree.h.
|
mutableprivate |
Definition at line 176 of file RootTree.h.
|
private |
Definition at line 183 of file RootTree.h.
|
private |
Definition at line 165 of file RootTree.h.
|
private |
Definition at line 189 of file RootTree.h.
|
private |
Definition at line 172 of file RootTree.h.
|
mutableprivate |
Definition at line 177 of file RootTree.h.
|
mutableprivate |
Definition at line 174 of file RootTree.h.