From 02e325b126af010da0578a5ad2e7bff04711b97d Mon Sep 17 00:00:00 2001
From: Enrico Guiraud <enrico.guiraud@cern.ch>
Date: Fri, 23 Nov 2018 18:05:05 +0100
Subject: [PATCH] [DF] Remove LoadTree call, TTreeReader does not warn anymore

---
 tree/dataframe/src/RLoopManager.cxx | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/tree/dataframe/src/RLoopManager.cxx b/tree/dataframe/src/RLoopManager.cxx
index 6b99e1b126d..9b6b30d094f 100644
--- a/tree/dataframe/src/RLoopManager.cxx
+++ b/tree/dataframe/src/RLoopManager.cxx
@@ -263,11 +263,6 @@ void RLoopManager::RunTreeProcessorMT()
 /// Run event loop over one or multiple ROOT files, in sequence.
 void RLoopManager::RunTreeReader()
 {
-   if (fTree->IsA() == TClass::GetClass("TChain")) {
-      // in case this is not the first event loop, we bring the chain back to the first tree
-      // to avoid warnings from TTreeReader
-      fTree->LoadTree(0);
-   }
    TTreeReader r(fTree.get());
    if (0 == fTree->GetEntriesFast())
       return;
-- 
GitLab