]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - STEER/AliPoints.cxx
Initialization of persistent data members
[u/mrichter/AliRoot.git] / STEER / AliPoints.cxx
index 358986f8c79ee0e76c03a3503d75a3a0db273875..8e7e9ffc7cb57a199041d34be1393d3446684395 100644 (file)
@@ -33,9 +33,9 @@
 #include "TView.h"
 
 #include "AliDetector.h"
+#include "AliMC.h"
 #include "AliPoints.h"
 #include "AliRun.h"
-#include "AliMC.h"
  
 ClassImp(AliPoints)
 
@@ -82,17 +82,17 @@ AliPoints::~AliPoints()
 }
 
 //_______________________________________________________________________
-void AliPoints::Copy(AliPoints &pts) const
+void AliPoints::Copy(TObject &pts) const
 {
   //
   // Copy *this onto pts
   //
-  if(this != &pts) {
+  if((TObject*)this != &pts) {
     ((TPolyMarker3D*)this)->Copy(dynamic_cast<TPolyMarker3D&>(pts));
-    pts.fGLList = fGLList;
-    pts.fLastPoint = fLastPoint;
-    pts.fDetector = fDetector;
-    pts.fIndex = fIndex;
+    (dynamic_cast<AliPoints&>(pts)).fGLList = fGLList;
+    (dynamic_cast<AliPoints&>(pts)).fLastPoint = fLastPoint;
+    (dynamic_cast<AliPoints&>(pts)).fDetector = fDetector;
+    (dynamic_cast<AliPoints&>(pts)).fIndex = fIndex;
   }
 }