![]() |
LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
#include "RootInputTree.h"
Public Types | |
| using | BranchMap = input::BranchMap |
| using | EntryNumber = input::EntryNumber |
| using | EntryNumbers = input::EntryNumbers |
Public Member Functions | |
| RootInputTree (cet::exempt_ptr< TFile >, BranchType, int64_t saveMemoryObjectThreshold, cet::exempt_ptr< RootInputFile >, bool compactSubRunRanges=false, bool missingOK=false) | |
| RootInputTree (RootInputTree const &)=delete | |
| RootInputTree & | operator= (RootInputTree const &)=delete |
| operator bool () const | |
| bool | isValid () const |
| bool | hasBranch (std::string const &branchName) const |
| void | addBranch (BranchKey const &, BranchDescription const &) |
| void | dropBranch (std::string const &branchName) |
| bool | next () |
| bool | previous () |
| bool | current (EntryNumbers const &numbers) |
| void | rewind () |
| EntryNumber | entryNumber () const |
| EntryNumber | entries () const |
| void | setEntryNumber (EntryNumber theEntryNumber) |
| void | fillGroups (Principal &p) |
| std::unique_ptr< DelayedReader > | makeDelayedReader (FileFormatVersion, cet::exempt_ptr< BranchIDLists const > branchIDLists, BranchType, std::vector< EntryNumber > const &entrySet, EventID) |
| std::unique_ptr< DelayedReader > | makeDelayedReader (FileFormatVersion, sqlite3 *inputDB, cet::exempt_ptr< BranchIDLists const > branchIDLists, BranchType, std::vector< EntryNumber > const &entrySet, EventID) |
| std::unique_ptr< BranchMapper > | makeBranchMapper () const |
| template<typename AUX > | |
| AUX | getAux (EntryNumber const entry) |
| template<typename AUX > | |
| std::unique_ptr< RangeSetHandler > | fillAux (FileFormatVersion const fileFormatVersion, EntryNumbers const &entries, FileIndex const &fileIndex, sqlite3 *db, std::string const &filename, AUX &aux) |
| TTree const * | tree () const |
| TTree const * | metaTree () const |
| void | setCacheSize (unsigned int cacheSize) const |
| void | setTreeMaxVirtualSize (int treeMaxVirtualSize) |
| TBranch * | productProvenanceBranch () const |
Private Attributes | |
| cet::exempt_ptr< TFile > | filePtr_ |
| TTree * | tree_ {nullptr} |
| TTree * | metaTree_ {nullptr} |
| BranchType | branchType_ |
| int64_t const | saveMemoryObjectThreshold_ |
| TBranch * | auxBranch_ {nullptr} |
| TBranch * | productProvenanceBranch_ {nullptr} |
| EntryNumber | entries_ {0} |
| EntryNumber | entryNumber_ {-1} |
| BranchMap | branches_ {} |
| cet::exempt_ptr< RootInputFile > | primaryFile_ |
| bool const | compactSubRunRanges_ |
Definition at line 74 of file RootInputTree.h.
Definition at line 76 of file RootInputTree.h.
Definition at line 77 of file RootInputTree.h.
Definition at line 78 of file RootInputTree.h.
| art::RootInputTree::RootInputTree | ( | cet::exempt_ptr< TFile > | filePtr, |
| BranchType | branchType, | ||
| int64_t | saveMemoryObjectThreshold, | ||
| cet::exempt_ptr< RootInputFile > | primaryFile, | ||
| bool | compactSubRunRanges = false, |
||
| bool | missingOK = false |
||
| ) |
Definition at line 17 of file RootInputTree.cc.
References auxBranch_, branchType_, art::BranchTypeToAuxiliaryBranchName(), art::BranchTypeToMetaDataTreeName(), art::BranchTypeToProductTreeName(), art::BranchTypeToString(), compactSubRunRanges_, entries_, filePtr_, art::errors::FileReadError, isValid(), metaTree_, primaryFile_, productProvenanceBranch_, art::productProvenanceBranchName(), saveMemoryObjectThreshold_, and tree_.
|
delete |
| void art::RootInputTree::addBranch | ( | BranchKey const & | key, |
| BranchDescription const & | pd | ||
| ) |
Definition at line 67 of file RootInputTree.cc.
References branches_, art::BranchDescription::branchName(), isValid(), art::BranchDescription::present(), and tree_.
|
inline |
Definition at line 108 of file RootInputTree.h.
| void art::RootInputTree::dropBranch | ( | std::string const & | branchName | ) |
Definition at line 77 of file RootInputTree.cc.
References branches_, compactSubRunRanges_, entries(), makeDelayedReader(), primaryFile_, saveMemoryObjectThreshold_, and tree_.
|
inline |
|
inline |
Definition at line 122 of file RootInputTree.h.
|
inline |
Definition at line 186 of file RootInputTree.h.
References e, art::detail::mergeAuxiliary(), art::detail::rangeSetFromFileIndex(), art::detail::resolveRangeSet(), art::detail::resolveRangeSetInfo(), and art::FileFormatVersion::value_.
|
inline |
|
inline |
Definition at line 174 of file RootInputTree.h.
References art::input::getEntry().
| bool art::RootInputTree::hasBranch | ( | std::string const & | branchName | ) | const |
| bool art::RootInputTree::isValid | ( | ) | const |
Definition at line 52 of file RootInputTree.cc.
References auxBranch_, metaTree_, productProvenanceBranch_, and tree_.
Referenced by addBranch(), and RootInputTree().
| std::unique_ptr< BranchMapper > art::RootInputTree::makeBranchMapper | ( | ) | const |
Definition at line 166 of file RootInputTree.cc.
References entryNumber_, and productProvenanceBranch_.
| std::unique_ptr<DelayedReader> art::RootInputTree::makeDelayedReader | ( | FileFormatVersion | , |
| cet::exempt_ptr< BranchIDLists const > | branchIDLists, | ||
| BranchType | , | ||
| std::vector< EntryNumber > const & | entrySet, | ||
| EventID | |||
| ) |
Referenced by dropBranch().
| std::unique_ptr<DelayedReader> art::RootInputTree::makeDelayedReader | ( | FileFormatVersion | , |
| sqlite3 * | inputDB, | ||
| cet::exempt_ptr< BranchIDLists const > | branchIDLists, | ||
| BranchType | , | ||
| std::vector< EntryNumber > const & | entrySet, | ||
| EventID | |||
| ) |
|
inline |
Definition at line 230 of file RootInputTree.h.
|
inline |
|
inlineexplicit |
Definition at line 89 of file RootInputTree.h.
|
delete |
|
inline |
Definition at line 102 of file RootInputTree.h.
|
inline |
Definition at line 239 of file RootInputTree.h.
|
inline |
| void art::RootInputTree::setCacheSize | ( | unsigned int | cacheSize | ) | const |
| void art::RootInputTree::setEntryNumber | ( | EntryNumber | theEntryNumber | ) |
| void art::RootInputTree::setTreeMaxVirtualSize | ( | int | treeMaxVirtualSize | ) |
|
inline |
Definition at line 225 of file RootInputTree.h.
|
private |
Definition at line 253 of file RootInputTree.h.
Referenced by isValid(), and RootInputTree().
|
private |
Definition at line 257 of file RootInputTree.h.
Referenced by addBranch(), and dropBranch().
|
private |
Definition at line 251 of file RootInputTree.h.
Referenced by RootInputTree().
|
private |
Definition at line 259 of file RootInputTree.h.
Referenced by dropBranch(), and RootInputTree().
|
private |
Definition at line 255 of file RootInputTree.h.
Referenced by RootInputTree().
|
private |
Definition at line 256 of file RootInputTree.h.
Referenced by makeBranchMapper(), and setEntryNumber().
|
private |
Definition at line 245 of file RootInputTree.h.
Referenced by RootInputTree().
|
private |
Definition at line 250 of file RootInputTree.h.
Referenced by isValid(), and RootInputTree().
|
private |
Definition at line 258 of file RootInputTree.h.
Referenced by dropBranch(), and RootInputTree().
|
private |
Definition at line 254 of file RootInputTree.h.
Referenced by isValid(), makeBranchMapper(), and RootInputTree().
|
private |
Definition at line 252 of file RootInputTree.h.
Referenced by dropBranch(), and RootInputTree().
|
private |
Definition at line 249 of file RootInputTree.h.
Referenced by addBranch(), dropBranch(), hasBranch(), isValid(), RootInputTree(), setCacheSize(), setEntryNumber(), and setTreeMaxVirtualSize().