]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliESDEvent.cxx
Avoid double booking of esdfriends branch in AliReconstruction, protection in AliESDEvent
[u/mrichter/AliRoot.git] / STEER / AliESDEvent.cxx
index 82a5d6d1d888eaf8d36e097225ce9837b5020bac..016b0fedc54f09f4f17ff91405ae94af85d589e9 100644 (file)
@@ -1130,6 +1130,7 @@ void AliESDEvent::WriteToTree(TTree* tree) const {
 
   while ((obj = next())) {
     branchname.Form("%s", obj->GetName());
+    if(branchname.CompareTo("AliESDfriend")==0)branchname = "ESDfriend.";
     if ((kSplitlevel > 1) &&  !obj->InheritsFrom(TClonesArray::Class())) {
       if(!branchname.EndsWith("."))branchname += ".";
     }