]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fix for loading selected branches in PROOF (Christian Holm)
authorAndrei Gheata <Andrei.Gheata@cern.ch>
Fri, 6 Dec 2013 10:46:28 +0000 (11:46 +0100)
committerAndrei Gheata <Andrei.Gheata@cern.ch>
Fri, 6 Dec 2013 10:47:10 +0000 (11:47 +0100)
ANALYSIS/AliAnalysisManager.cxx

index 6c1683a78a9bcfb9cd2d1c12ca3210ca42c856c0..f6552ef7f7763301f21b94bdf46a761e0476def5 100644 (file)
@@ -446,7 +446,10 @@ Bool_t AliAnalysisManager::Init(TTree *tree)
    if (!fInitOK) return kFALSE;
    fTree = tree;
    if (fMode != kProofAnalysis) CreateReadCache();
-   fTable.Rehash(100);
+   else {
+     // cholm - here we should re-add to the table or branches 
+     fTable.Clear();
+   }
    AliAnalysisDataContainer *top = fCommonInput;
    if (!top) top = (AliAnalysisDataContainer*)fInputs->At(0);
    if (!top) {
@@ -455,6 +458,7 @@ Bool_t AliAnalysisManager::Init(TTree *tree)
    }
    top->SetData(tree);
    CheckBranches(kFALSE);
+   fTable.Rehash(100);
    if (fDebug > 1) {
       printf("<-AliAnalysisManager::Init(%s)\n", tree->GetName());
    }