AliTPCROC &operator = (const AliTPCROC & roc); //assignment operator
void Init();
virtual ~AliTPCROC();
-
+ void GetPositionLocal(UInt_t sector, UInt_t row, UInt_t pad, Float_t *pos);
+ void GetPositionGlobal(UInt_t sector, UInt_t row, UInt_t pad, Float_t *pos);
//
// numbering
UInt_t GetNSectors() const { return fNSectorsAll;}
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;}
//
-
- protected:
+ // get pad row parameters
+ //
+ 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));}
+ //
+
+protected:
//
// number of pads
//
UInt_t fNRowUp2; //number of long pad rows per sector up -set
UInt_t fNRowUp; //number of pad rows per sector up -calculated
UInt_t fNtRows; //total number of rows in TPC -calculated
- Float_t fPadRowLow[600]; //Lower sector, pad row radii -calculated
- Float_t fPadRowUp[600]; //Upper sector, pad row radii -calculated
- UInt_t fNPadsLow[600]; //Lower sector, number of pads per row -calculated
- UInt_t fNPadsUp[600]; //Upper sector, number of pads per row -calculated
- Float_t fYInner[600]; //Inner sector, wire-length
- Float_t fYOuter[600]; //Outer sector, wire-length
+ Float_t fPadRowLow[100]; //Lower sector, pad row radii -calculated
+ Float_t fPadRowUp[100]; //Upper sector, pad row radii -calculated
+ UInt_t fNPadsLow[100]; //Lower sector, number of pads per row -calculated
+ UInt_t fNPadsUp[100]; //Upper sector, number of pads per row -calculated
+ Float_t fYInner[100]; //Inner sector, wire-length
+ Float_t fYOuter[100]; //Outer sector, wire-length
protected:
static AliTPCROC* fgInstance; //! Instance of this class (singleton implementation)
ClassDef(AliTPCROC,0) // TPC ROC class