]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AOD/AliAODVertex.cxx
changed to nanoAOD production; fix in AliAODVertex::CloneWithoutRefts
[u/mrichter/AliRoot.git] / STEER / AOD / AliAODVertex.cxx
index 761ba7c33f29a4209c25e5d54869e12aeb5e60c8..50d011ae62899d5e4910ebde5e653ad9a8aad032 100644 (file)
@@ -205,6 +205,14 @@ AliAODVertex* AliAODVertex::CloneWithoutRefs() const
                                      fType,
                                      0);
   
+  v->SetName(GetName());
+  // NOTE title is not allowed to be set, as GetNContributors 
+  // relies on the title to use the references which are not copied here
+  
+  // to insure the main vertex retains the ncontributors information
+  // (which is otherwise computed dynamically from
+  // references to tracks, which is not kept in the returned object)
+  // we set it here
   v->SetNContributors(fNContributors);  
   
   return v;