We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68339f1 commit 65cdfb4Copy full SHA for 65cdfb4
tree/treeplayer/src/TTreeReaderFast.cxx
@@ -121,6 +121,13 @@ TTreeReaderFast::SetEntry(Long64_t entry)
121
void TTreeReaderFast::RegisterValueReader(ROOT::Experimental::Internal::TTreeReaderValueFastBase* reader)
122
{
123
fValues.push_back(reader);
124
+ if (fTree && reader) { // A subpart of Initialize() must be called if we register new readers after the constructor.
125
+ reader->CreateProxy();
126
+ if (reader->GetSetupStatus() != ROOT::Internal::TTreeReaderValueBase::kSetupMatch) {
127
+ //printf("Reader setup failed. Status: %d\n", reader->GetSetupStatus());
128
+ fEntryStatus = TTreeReader::kEntryBadReader;
129
+ }
130
131
}
132
133
////////////////////////////////////////////////////////////////////////////////
0 commit comments