]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/AliPHOSGridFile.cxx
introducing status management: The processing per subdetector is divided into several...
[u/mrichter/AliRoot.git] / PHOS / AliPHOSGridFile.cxx
index 36773a5a51ba661b39874bb7e70d4fdd653e740f..3408191074926024890b3f749f4a4d65032cc50b 100644 (file)
  **************************************************************************/
 /* $Id$ */
 
+/* History of cvs commits:
+ *
+ * $Log$
+ */
+
 //_________________________________________________________________________
 // To navigate in the Grid catalogue (very elementary)
 // check here : /afs/cern.ch/user/p/peters/public/README.ALIEN
@@ -86,9 +91,11 @@ TString AliPHOSGridFile::GetLFN() const
 }
 
 //____________________________________________________________________________
-void AliPHOSGridFile::Copy(AliPHOSGridFile & lfn)
+void AliPHOSGridFile::Copy(TObject & obj)const
 {
   //Copy method used by the Copy ctor
+  AliPHOSGridFile &lfn = static_cast<AliPHOSGridFile &>(obj);
+  /* incorrect Copy, destination is OBJ, not this.
   fRoot = lfn.fRoot ;
   fYear = lfn.fYear ;
   fProd = lfn.fProd ;
@@ -97,6 +104,15 @@ void AliPHOSGridFile::Copy(AliPHOSGridFile & lfn)
   fRun  = lfn.fRun ;
   fEvt  = lfn.fEvt ;
   TObject::Copy(lfn) ;
+  */
+  lfn.fRoot = fRoot ;
+  lfn.fYear = fYear ;
+  lfn.fProd = fProd ;
+  lfn.fVers = fVers ;
+  lfn.fType = fType ;
+  lfn.fRun  = fRun ;
+  lfn.fEvt  = fEvt ;
+  TObject::Copy(lfn) ;
 }
 
 //____________________________________________________________________________