File tree Expand file tree Collapse file tree 2 files changed +3
-36
lines changed Expand file tree Collapse file tree 2 files changed +3
-36
lines changed Original file line number Diff line number Diff line change @@ -567,14 +567,9 @@ void TTreeReader::Restart()
567
567
fProxiesSet = false ; // we might get more value readers, meaning new proxies.
568
568
fEntry = -1 ;
569
569
if (const auto curFile = fTree ->GetCurrentFile ()) {
570
- if (!fTree ->GetTree ()) {
571
- fTree ->LoadTree (0 );
572
- }
573
- if (fTree ->GetTree ()) {
574
- if (auto tc = fTree ->GetTree ()->GetReadCache (curFile, true )) {
575
- tc->DropBranch (" *" , true );
576
- tc->ResetCache ();
577
- }
570
+ if (auto tc = fTree ->GetTree ()->GetReadCache (curFile, true )) {
571
+ tc->DropBranch (" *" , true );
572
+ tc->ResetCache ();
578
573
}
579
574
}
580
575
}
Original file line number Diff line number Diff line change @@ -263,31 +263,3 @@ TEST(TTreeFormulaRegressions, WrongName)
263
263
EXPECT_EQ (t.Draw (" s.Eta()" , " " ), -1 );
264
264
}
265
265
}
266
-
267
- // https://github.com/root-project/root/issues/19814
268
- TEST (TTreeReaderRegressions, UninitializedChain)
269
- {
270
- auto filename = " eve19814.root" ;
271
- auto treename = " events" ;
272
- auto brname = " x" ;
273
- const int refval = 19814 ;
274
- {
275
- TFile f (filename, " RECREATE" );
276
- TTree t (treename, " " );
277
- int x = refval;
278
- t.Branch (brname, &x);
279
- t.Fill ();
280
- f.Write ();
281
- }
282
- {
283
- TChain ch (treename);
284
- ch.Add (filename);
285
- TTreeReader reader (&ch);
286
- reader.SetEntriesRange (0 , ch.GetEntries ());
287
- EXPECT_EQ (reader.GetEntries (), 1 );
288
- TTreeReaderValue<int > x (reader, brname);
289
- EXPECT_TRUE (reader.Next ());
290
- EXPECT_EQ (*x, refval);
291
- }
292
- gSystem ->Unlink (filename);
293
- }
You can’t perform that action at this time.
0 commit comments