X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=MUON%2FAliMUONTrackHit.cxx;h=5d03a89d4204ade14fff45154eace7e4224411ae;hb=a387ee7cf30f0d58da1d025e789719001dce0ba0;hp=e8ae95bd5a21e57c22d678f47e72af3a26f82019;hpb=30178c30974cdd6a3b59f09e4d479925642e175b;p=u%2Fmrichter%2FAliRoot.git diff --git a/MUON/AliMUONTrackHit.cxx b/MUON/AliMUONTrackHit.cxx index e8ae95bd5a2..5d03a89d420 100644 --- a/MUON/AliMUONTrackHit.cxx +++ b/MUON/AliMUONTrackHit.cxx @@ -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() {