]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliESDHeader.cxx
temporary workaround for circular dependency libSTEERbase <-> libRAWDatabase, see...
[u/mrichter/AliRoot.git] / STEER / AliESDHeader.cxx
index 74287769f33c248c7c756804801bb63f5e7d7851..51412841257a56f651a67224940caee80a3719bd 100644 (file)
@@ -86,6 +86,19 @@ AliESDHeader& AliESDHeader::operator=(const AliESDHeader &header)
   return *this;
 }
 
+void AliESDHeader::Copy(TObject &obj) const {
+  
+  // this overwrites the virtual TOBject::Copy()
+  // to allow run time copying without casting
+  // in AliESDEvent
+
+  if(this==&obj)return;
+  AliESDHeader *robj = dynamic_cast<AliESDHeader*>(&obj);
+  if(!robj)return; // not an AliESDHeader
+  *robj = *this;
+
+}
+
 
 
 //______________________________________________________________________________