AliRoot Core  v5-06-15 (45dab64)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMpSectorPadIterator.h
Go to the documentation of this file.
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2  * See cxx source for full Copyright notice */
3 
4 // $Id$
5 // $MpId: AliMpSectorPadIterator.h,v 1.7 2006/05/24 13:58:21 ivana Exp $
6 
12 
13 #ifndef ALI_MP_SECTOR_PAD_ITERATOR_H
14 #define ALI_MP_SECTOR_PAD_ITERATOR_H
15 
16 #include "AliMpVPadIterator.h"
18 
19 class AliMpSector;
20 class AliMpMotifPosition;
21 
22 
24 {
25  public:
27  AliMpSectorPadIterator(const AliMpSector* sector);
29  virtual ~AliMpSectorPadIterator();
30 
31  // operators
33 
34  // methods
35  virtual void First();
36  virtual void Next();
37  virtual Bool_t IsDone() const;
38  virtual AliMpPad CurrentItem() const;
39  virtual void Invalidate();
40 
41  private:
42  // private methods
44  Bool_t IsValid() const;
45 
46  // private data members
48  UInt_t fCurrentIndex;
51 
52  ClassDef(AliMpSectorPadIterator,1) // iterator over motif's pads
53 };
54 
55 #endif // ALI_MP_SECTOR_PAD_ITERATOR_H
virtual void Next()
Set iterator to the next pad.
AliMpSectorPadIterator & operator=(const AliMpSectorPadIterator &right)
An iterator over the pads of a sector.
A placed motif.
An interface for an iterator over pads.
virtual AliMpPad CurrentItem() const
Return current pad.
A sector (quadrant) of the MUON chamber of stations 1 and 2.
Definition: AliMpSector.h:34
AliMpMotifPosition * ResetToCurrentMotifPosition()
virtual Bool_t IsDone() const
Is iterator done.
const AliMpSector * fkSector
the sector over which to iterate
AliMpMotifPosition * fMotifPos
the current motif position
virtual void Invalidate()
Invalidate iterator (.
An iterator over the pads of a given motif position.
AliMpMotifPositionPadIterator fIterator
iterator over the current motif type
virtual void First()
Set iterator to the first pad.
Class which encapsuate all information about a pad.
Definition: AliMpPad.h:22
UInt_t fCurrentIndex
the current motif position index