]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONTrackHit.cxx
Updated for replacement of AliMpReader with AliMpSectorReader
[u/mrichter/AliRoot.git] / MUON / AliMUONTrackHit.cxx
index e8ae95bd5a21e57c22d678f47e72af3a26f82019..5d03a89d4204ade14fff45154eace7e4224411ae 100644 (file)
@@ -27,6 +27,7 @@
 
 #include "AliMUONTrackHit.h" 
 #include "AliMUONHitForRec.h" 
+#include "AliLog.h" 
 
 ClassImp(AliMUONTrackHit) // Class implementation in ROOT context
 
@@ -39,7 +40,33 @@ AliMUONTrackHit::AliMUONTrackHit()
   fNextTrackHitWithSameHitForRec = 0;
   fPrevTrackHitWithSameHitForRec = 0;
 }
+  //__________________________________________________________________________
+AliMUONTrackHit::AliMUONTrackHit (const AliMUONTrackHit& theMUONTrackHit)
+  :  TObject(theMUONTrackHit)
+{
+  fTrackParam                    =  theMUONTrackHit.fTrackParam;
+  fHitForRecPtr                  =  theMUONTrackHit.fHitForRecPtr;
+  fNextTrackHitWithSameHitForRec =  theMUONTrackHit.fNextTrackHitWithSameHitForRec;
+  fPrevTrackHitWithSameHitForRec =  theMUONTrackHit.fPrevTrackHitWithSameHitForRec;
+}
+  //__________________________________________________________________________
+AliMUONTrackHit & AliMUONTrackHit::operator=(const AliMUONTrackHit& theMUONTrackHit)
+{
+  // check assignement to self
+  if (this == &theMUONTrackHit)
+    return *this;
 
+  // base class assignement
+  TObject::operator=(theMUONTrackHit);
+
+  fTrackParam                    =  theMUONTrackHit.fTrackParam;
+  fHitForRecPtr                  =  theMUONTrackHit.fHitForRecPtr;
+  fNextTrackHitWithSameHitForRec = theMUONTrackHit.fNextTrackHitWithSameHitForRec;
+  fPrevTrackHitWithSameHitForRec = theMUONTrackHit.fPrevTrackHitWithSameHitForRec;
+
+  return *this;
+
+}
   //__________________________________________________________________________
 AliMUONTrackHit::AliMUONTrackHit(AliMUONHitForRec* Hit)
 {
@@ -58,29 +85,6 @@ AliMUONTrackHit::AliMUONTrackHit(AliMUONHitForRec* Hit)
   fNextTrackHitWithSameHitForRec = NULL;
   Hit->SetNTrackHits(Hit->GetNTrackHits() + 1);
 }
-
-  //__________________________________________________________________________
-AliMUONTrackHit::AliMUONTrackHit (const AliMUONTrackHit& theMUONTrackHit)
-  : TObject(theMUONTrackHit)
-{
-// Protected copy constructor
-
-  Fatal("AliMUONTrackHit", "Not implemented.");
-}
-
-  //__________________________________________________________________________
-AliMUONTrackHit & AliMUONTrackHit::operator=(const AliMUONTrackHit& rhs)
-{
-// Protected assignement operator
-
-  if (this == &rhs) return *this;
-
-  Fatal("operator=", "Not implemented.");
-    
-  return *this;  
-}
-
-
   //__________________________________________________________________________
 AliMUONTrackHit::~AliMUONTrackHit()
 {