//
///////////////////////////////////////////////////////
-#include "AliMUONHitForRec.h"
#include "AliMUONTrackHit.h"
+#include "AliMUONHitForRec.h"
+#include "AliLog.h"
ClassImp(AliMUONTrackHit) // Class implementation in ROOT context
+ //__________________________________________________________________________
+AliMUONTrackHit::AliMUONTrackHit()
+ : TObject()
+{
+ // Default constructor
+ fHitForRecPtr = 0;
+ 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)
{
fNextTrackHitWithSameHitForRec = NULL;
Hit->SetNTrackHits(Hit->GetNTrackHits() + 1);
}
-
- //__________________________________________________________________________
-AliMUONTrackHit::AliMUONTrackHit (const AliMUONTrackHit& MUONTrackHit):TObject(MUONTrackHit)
-{
-// Dummy copy constructor
-}
-
- //__________________________________________________________________________
-AliMUONTrackHit & AliMUONTrackHit::operator=(const AliMUONTrackHit& /*MUONTrackHit*/)
-{
-// Dummy assignment operator
- return *this;
-}
-
-
//__________________________________________________________________________
AliMUONTrackHit::~AliMUONTrackHit()
{