From 98ce815171d7f88f79fd6ba8c97a142790b83e7b Mon Sep 17 00:00:00 2001 From: hristov Date: Thu, 23 Jun 2005 14:04:03 +0000 Subject: [PATCH] Removing useless const to avoid warnings on alphacxx6 --- TRD/AliTRDpadPlane.cxx | 6 +++--- TRD/AliTRDpadPlane.h | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/TRD/AliTRDpadPlane.cxx b/TRD/AliTRDpadPlane.cxx index c163ad37d75..0a6692e4b4f 100644 --- a/TRD/AliTRDpadPlane.cxx +++ b/TRD/AliTRDpadPlane.cxx @@ -381,7 +381,7 @@ void AliTRDpadPlane::Copy(TObject &p) const } //_____________________________________________________________________________ -Int_t AliTRDpadPlane::GetPadRowNumber(const Double_t z) const +Int_t AliTRDpadPlane::GetPadRowNumber(Double_t z) const { // // Finds the pad row number for a given global z-position @@ -416,8 +416,8 @@ Int_t AliTRDpadPlane::GetPadRowNumber(const Double_t z) const } //_____________________________________________________________________________ -Int_t AliTRDpadPlane::GetPadColNumber(const Double_t rphi - , const Double_t rowOffset) const +Int_t AliTRDpadPlane::GetPadColNumber(Double_t rphi + , Double_t rowOffset) const { // // Finds the pad column number for a given global rphi-position diff --git a/TRD/AliTRDpadPlane.h b/TRD/AliTRDpadPlane.h index 28467eda606..9dbccf3c7c6 100644 --- a/TRD/AliTRDpadPlane.h +++ b/TRD/AliTRDpadPlane.h @@ -32,16 +32,16 @@ class AliTRDpadPlane : public TObject { AliTRDpadPlane &operator=(const AliTRDpadPlane &p); virtual void Copy(TObject &p) const; - Int_t GetPadRowNumber(const Double_t z) const; - Int_t GetPadColNumber(const Double_t rphi, const Double_t rowOffset) const; + Int_t GetPadRowNumber(Double_t z) const; + Int_t GetPadColNumber(Double_t rphi, Double_t rowOffset) const; - Double_t GetPadRowOffset(const Int_t row, const Double_t z) const + Double_t GetPadRowOffset(Int_t row, Double_t z) const { if ((row < 0) || (row >= fNrows)) return -1.0; else return fPadRow[row] - z; }; - Double_t GetPadColOffset(const Int_t col, const Double_t rphi) const + Double_t GetPadColOffset(Int_t col, Double_t rphi) const { if ((col < 0) || (col >= fNcols)) return -1.0; else @@ -58,14 +58,14 @@ class AliTRDpadPlane : public TObject { Double_t GetRowEnd() const { return fPadRow[fNrows-1] - fLengthOPad; }; Double_t GetColEnd() const { return fPadCol[fNcols-11] - fWidthOPad; }; - Double_t GetRowPos(const Int_t row) const { return fPadRow[row]; }; - Double_t GetColPos(const Int_t col) const { return fPadCol[col]; }; + Double_t GetRowPos(Int_t row) const { return fPadRow[row]; }; + Double_t GetColPos(Int_t col) const { return fPadCol[col]; }; - Double_t GetRowSize(const Int_t row) const { if ((row == 0) || (row == fNrows-1)) + Double_t GetRowSize(Int_t row) const { if ((row == 0) || (row == fNrows-1)) return fLengthOPad; else return fLengthIPad; }; - Double_t GetColSize(const Int_t col) const { if ((col == 0) || (col == fNcols-1)) + Double_t GetColSize(Int_t col) const { if ((col == 0) || (col == fNcols-1)) return fWidthOPad; else return fWidthIPad; }; -- 2.39.3