]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Fix for https://savannah.cern.ch/bugs/?63620 ?
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 1 Mar 2010 15:42:27 +0000 (15:42 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 1 Mar 2010 15:42:27 +0000 (15:42 +0000)
STEER/AliESDInputHandler.cxx

index 6c8558cbc8113bcaaf190a6e2dbd4826c39558ce..d5722a498c332beb9062316fa6deca25b14f1b5b 100644 (file)
@@ -94,10 +94,7 @@ Bool_t AliESDInputHandler::Init(TTree* tree,  Option_t* opt)
     if (!fEvent) fEvent = new AliESDEvent();
     fEvent->ReadFromTree(fTree);
     fNEvents = fTree->GetEntries();
-    if (fTree->GetBranch("ESDfriend.")) {
-       fTree->SetBranchAddress("ESDfriend.", &fFriend);
-    }
-
+    fFriend = (AliESDfriend*)(fEvent->FindListObject("AliESDfriend"));
     return kTRUE;
 }