26 ::Error(
"TTreeReaderFast::TTreeReaderFast",
"TTree is NULL!");
46 reader->MarkTreeReaderUnavailable();
65 reader->CreateProxy();
90 Int_t treeNumInChainBeforeLoad =
fTree->GetTreeNumber();
95 if (loadResult == -2) {
100 if (treeNumInChainBeforeLoad !=
fTree->GetTreeNumber()) {
104 if (!prevTree ||
fDirector->GetReadEntry() == -1)
109 reader->CreateProxy();
124 if (
fTree && reader) {
139 if (iReader ==
fValues.end()) {
155 Int_t remaining = INT_MAX;
157 Int_t valueRemaining = value->GetEvents(eventNum);
158 if (valueRemaining < remaining) {
159 remaining = valueRemaining;
int Int_t
Signed integer 4 bytes (int).
virtual const char * GetTypeName()
void CreateProxy()
Attach this value to the appropriate branch on the tree.
ROOT::Internal::TTreeReaderValueBase::ESetupStatus GetSetupStatus() const
Int_t GetNextRange(Int_t)
Advance to the next range in the file; returns the number of events in the range.
~TTreeReaderFast() override
Tell all value readers that the tree reader does not exist anymore.
void Initialize()
Initialization of the director.
std::deque< ROOT::Experimental::Internal::TTreeReaderValueFastBase * > fValues
readers that use our director
TTree * fTree
tree that's read
TDirectory * fDirectory
directory (or current file for chains)
ROOT::Internal::TBranchProxyDirector * fDirector
proxying director, owned
TTreeReader::EEntryStatus fEntryStatus
status of most recent read request
TTreeReader::EEntryStatus SetEntry(Long64_t)
Set an entry to be read.
void DeregisterValueReader(ROOT::Experimental::Internal::TTreeReaderValueFastBase *reader)
Remove a value reader for this tree.
void RegisterValueReader(ROOT::Experimental::Internal::TTreeReaderValueFastBase *reader)
Add a value reader for this tree.
@ kSetupMatch
This branch has been set up, branch data type and reader template type match, reading should succeed.
Describe directory structure in memory.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
@ kEntryNotFound
the tree entry number does not exist
@ kEntryNoTree
the tree does not exist
@ kEntryBadReader
One of the readers was not successfully initialized.
@ kEntryValid
data read okay
A TTree represents a columnar dataset.
virtual Long64_t LoadTree(Long64_t entry)
Set current entry.
Namespace for ROOT features in testing.