]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliCDBLocal.cxx
Added functionality to get TTree's from the OCDB. The tree is loaded in memory
[u/mrichter/AliRoot.git] / STEER / AliCDBLocal.cxx
index aae166900d9fa6ab5c16c206a01cc40d98741cf6..5a489b0e363c76b2fda5fd147fa9771ab1c93bf0 100644 (file)
@@ -417,6 +417,9 @@ AliCDBEntry* AliCDBLocal::GetEntry(const AliCDBId& queryId) {
                AliWarning(Form("Object's Id: %s", entryId.ToString().Data()));
         }
 
+       // Check whether entry contains a TTree. In case load the tree in memory!
+       LoadTreeFromFile(anEntry);
+
        // close file, return retieved entry
        file.Close();
        return anEntry;
@@ -547,6 +550,8 @@ Bool_t AliCDBLocal::PutEntry(AliCDBEntry* entry) {
                return kFALSE;
        }
        
+       SetTreeToFile(entry, &file);
+
        entry->SetVersion(id.GetVersion());
        entry->SetSubVersion(id.GetSubVersion());