X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=STEER%2FAliRecPoint.cxx;h=7ab6b8a999f779d9f7e5426417466fea2a52d94b;hb=2894a0c933f304a64c12524138f980a805323c0f;hp=183274095b9af13b5354f89ed4f9d4fdc6fb3881;hpb=6c4904c2e7b88b314ced3331c2849d658c77afa7;p=u%2Fmrichter%2FAliRoot.git diff --git a/STEER/AliRecPoint.cxx b/STEER/AliRecPoint.cxx index 183274095b9..7ab6b8a999f 100644 --- a/STEER/AliRecPoint.cxx +++ b/STEER/AliRecPoint.cxx @@ -63,7 +63,7 @@ AliRecPoint::AliRecPoint(const char * ): fGeom(0), fIndexInList(-1), // to be set when the point is already stored fLocPos(0,0,0), - fLocPosM(new TMatrix(3,3)), + fLocPosM(new TMatrixF(3,3)), fMaxDigit(100), fMulDigit(0), fMaxTrack(5), @@ -123,7 +123,7 @@ void AliRecPoint::AddDigit(AliDigitNew & digit) for ( index = 0 ; index < fMulDigit ; index++ ) tempo[index] = fDigitsList[index] ; - delete fDigitsList ; + delete [] fDigitsList ; fDigitsList = tempo ; } @@ -158,13 +158,13 @@ void AliRecPoint::Copy(TObject& recp) const // Copy *this onto pts // // Copy all first - if(this != &recp) { + if((TObject*)this != &recp) { ((TObject*) this)->Copy(recp); (dynamic_cast(recp)).fAmp = fAmp; (dynamic_cast(recp)).fGeom = fGeom; (dynamic_cast(recp)).fIndexInList = fIndexInList; (dynamic_cast(recp)).fLocPos = fLocPos; - (dynamic_cast(recp)).fLocPosM = new TMatrix(*fLocPosM); + (dynamic_cast(recp)).fLocPosM = new TMatrixF(*fLocPosM); (dynamic_cast(recp)).fMaxDigit = fMaxDigit; (dynamic_cast(recp)).fMulDigit = fMulDigit; (dynamic_cast(recp)).fMaxTrack = fMaxTrack; @@ -179,7 +179,7 @@ void AliRecPoint::Copy(TObject& recp) const } //_______________________________________________________________________ -void AliRecPoint::GetCovarianceMatrix(TMatrix & mat) const +void AliRecPoint::GetCovarianceMatrix(TMatrixF & mat) const { // returns the covariant matrix for the local position @@ -198,7 +198,7 @@ void AliRecPoint::GetLocalPosition(TVector3 & pos) const } //____________________________________________________________________________ -void AliRecPoint::GetGlobalPosition(TVector3 & gpos, TMatrix & gmat) const +void AliRecPoint::GetGlobalPosition(TVector3 & gpos, TMatrixF & gmat) const { // returns the position of the cluster in the global reference system of ALICE // and the uncertainty on this position