]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCROC.h
Memory leak problems (TLinearFitter)- way around
[u/mrichter/AliRoot.git] / TPC / AliTPCROC.h
index 6c6231b50070204f91ac46d8d73afaf377301cf6..8ad315a7b0478ed2346b4fc7b5eac0f46a9992c4 100644 (file)
@@ -47,13 +47,13 @@ class AliTPCROC : public TObject {
   UInt_t    GetNInnerSector() const {return fNSectors[0];}
   UInt_t    GetNOuterSector() const {return fNSectors[1];}
   UInt_t    GetNSector() const {return fNSectorsAll;}
-  Float_t  GetZLength() const {return fZLength;}
+  Float_t  GetZLength(Int_t sector) const {return (sector<35) ? fZLength-0.275 : fZLength-0.302;}
   //
   // get pad row parameters
   //
-  Float_t GetPadRowRadiiLow(Int_t irow) const {return ( irow>=0 && (irow<fNRowLow) ) ? fPadRowLow[irow]: 0;} //get the pad row (irow) radii
-  Float_t GetPadRowRadiiUp(Int_t irow) const {return ( irow>=0 && (irow<fNRowUp) ) ? fPadRowUp[irow]: 0;}   //get the pad row (irow) radii   
-  Float_t GetPadRowRadii(Int_t isec,Int_t irow) const {
+  Float_t GetPadRowRadiiLow(UInt_t irow) const {return ( irow<fNRowLow ) ? fPadRowLow[irow]: 0;} //get the pad row (irow) radii
+  Float_t GetPadRowRadiiUp(UInt_t irow) const {return ( irow<fNRowUp ) ? fPadRowUp[irow]: 0;}   //get the pad row (irow) radii   
+  Float_t GetPadRowRadii(UInt_t isec, UInt_t irow) const {
     return ( (isec < fNSectors[0]) ?GetPadRowRadiiLow(irow):GetPadRowRadiiUp(irow));}
   //