]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliESDfriend.cxx
Add DetectoreInReco and DetectorsInDAQ to AliDetectorTag class (and all dependencies)
[u/mrichter/AliRoot.git] / STEER / AliESDfriend.cxx
index b175b9e0ea7c60941931057c225ae314d298f70a..5f4209743e710879a91e4852702de433dbb10b86 100644 (file)
@@ -30,6 +30,7 @@ AliESDfriend::AliESDfriend(): TObject(), fTracks("AliESDfriendTrack",15000),
  //
  // Default constructor
  //
+       //fTracks.BypassStreamer(kFALSE);
 }
 
 AliESDfriend::AliESDfriend(const AliESDfriend &f) :
@@ -49,7 +50,9 @@ AliESDfriend& AliESDfriend::operator=(const AliESDfriend& esd)
     if(&esd == this) return *this;
     TObject::operator=(esd);
     fTracks = esd.fTracks;
-    fESDVZEROfriend = esd.fESDVZEROfriend;
+
+    delete fESDVZEROfriend; fESDVZEROfriend = NULL;
+    if (!esd.fESDVZEROfriend) fESDVZEROfriend = new AliESDVZEROfriend(*esd.fESDVZEROfriend);
 
     return *this;
 }