**************************************************************************/
// $Id$
-// $MpId: AliMpSectorSegmentation.cxx,v 1.11 2006/03/02 16:35:12 ivana Exp $
+// $MpId: AliMpSectorSegmentation.cxx,v 1.12 2006/03/14 09:03:52 ivana Exp $
// Category: sector
//
// Class AliMpSectorSegmentation
AliMpPlaneType
AliMpSectorSegmentation::PlaneType() const
{
- return GetSector()->PlaneType();
+ return GetSector()->GetPlaneType();
}
//______________________________________________________________________________
}
//______________________________________________________________________________
-Int_t AliMpSectorSegmentation::MaxPadIndexX()
+Int_t AliMpSectorSegmentation::MaxPadIndexX() const
{
/// Return maximum pad index in x
- if (fMaxIndexInX) return fMaxIndexInX;
-
- for (Int_t i=0; i<fkSector->GetNofRows(); i++) {
- Int_t ixh = fkSector->GetRow(i)->GetHighIndicesLimit().GetFirst();
- if ( ixh > fMaxIndexInX ) fMaxIndexInX = ixh;
- }
- return fMaxIndexInX;
+ return fkSector->GetMaxPadIndices().GetFirst();
}
//______________________________________________________________________________
-Int_t AliMpSectorSegmentation::MaxPadIndexY()
+Int_t AliMpSectorSegmentation::MaxPadIndexY() const
{
/// Return maximum pad index in y
- if (fMaxIndexInY) return fMaxIndexInY;
-
- for (Int_t i=0; i<fkSector->GetNofRows(); i++) {
- Int_t iyh = fkSector->GetRow(i)->GetHighIndicesLimit().GetSecond();
- if ( iyh > fMaxIndexInY ) fMaxIndexInY = iyh;
- }
- return fMaxIndexInY;
+ return fkSector->GetMaxPadIndices().GetSecond();
+}
+
+//______________________________________________________________________________
+Int_t AliMpSectorSegmentation::NofPads() const
+{
+/// Return number of pads defined in the sector
+
+ return fkSector->GetNofPads();
}
//______________________________________________________________________________
* See cxx source for full Copyright notice */
// $Id$
-// $MpId: AliMpSectorSegmentation.h,v 1.11 2006/03/02 16:35:06 ivana Exp $
+// $MpId: AliMpSectorSegmentation.h,v 1.12 2006/03/14 09:03:48 ivana Exp $
/// \ingroup sector
/// \class AliMpSectorSegmentation
virtual AliMpPad PadByDirection(const TVector2& startPosition,
Double_t distance) const;
- virtual Int_t MaxPadIndexX();
- virtual Int_t MaxPadIndexY();
+ virtual Int_t MaxPadIndexX() const;
+ virtual Int_t MaxPadIndexY() const;
+ virtual Int_t NofPads() const;
virtual Int_t Zone(const AliMpPad& pad, Bool_t warning = kTRUE) const;
virtual TVector2 PadDimensions(Int_t zone, Bool_t warning = kTRUE) const;
* See cxx source for full Copyright notice */
// $Id$
-// $MpId: AliMpVSegmentation.h,v 1.8 2006/03/02 16:29:11 ivana Exp $
+// $MpId: AliMpVSegmentation.h,v 1.9 2006/03/14 09:03:44 ivana Exp $
/// \ingroup basic
/// \class AliMpVSegmentation
virtual AliMpPadPair PadsLeft(const AliMpPad& pad) const;
virtual AliMpPadPair PadsRight(const AliMpPad& pad) const;
- virtual Int_t MaxPadIndexX() = 0;
- virtual Int_t MaxPadIndexY() = 0;
+ virtual Int_t MaxPadIndexX() const = 0;
+ virtual Int_t MaxPadIndexY() const = 0;
+ virtual Int_t NofPads() const = 0;
virtual Bool_t HasPad(const AliMpIntPair& indices) const = 0;