AliRoot Core  v5-06-15 (45dab64)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMpSlatPadIterator.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: AliMpSlatPadIterator.h,v 1.8 2006/05/24 13:58:24 ivana Exp $
6 
11 // Author: Laurent Aphecetche
12 
13 #ifndef ALI_MP_SLAT_PAD_ITERATOR_H
14 #define ALI_MP_SLAT_PAD_ITERATOR_H
15 
16 #include "AliMpVPadIterator.h"
17 #include "TObjArray.h"
18 
19 class AliMpSlat;
20 class AliMpArea;
21 
23 {
24  public:
26  // Area position must be relative to bottom-left of slat.
27  AliMpSlatPadIterator(const AliMpSlat* slat, const AliMpArea& area);
28  virtual ~AliMpSlatPadIterator();
29 
30  void First();
31  void Next();
32  Bool_t IsDone() const;
33  AliMpPad CurrentItem() const;
34  void Invalidate();
35 
36  private:
41 
42  Bool_t Prepare(const AliMpArea& area);
43  AliMpArea Intersect(const AliMpArea& a, const AliMpArea& b) const;
44 
45  private:
46  const AliMpSlat* fkSlat;
50 
51  ClassDef(AliMpSlatPadIterator,2) // Pad iterator for St 345 Slats
52 };
53 
54 #endif
Bool_t Prepare(const AliMpArea &area)
#define TObjArray
void Invalidate()
Invalidate iterator (.
A rectangle area positioned in plane..
Definition: AliMpArea.h:20
void Next()
Set iterator to the next pad.
A slat (building block of stations 3, 4 and 5)
Definition: AliMpSlat.h:51
AliMpArea Intersect(const AliMpArea &a, const AliMpArea &b) const
void First()
Set iterator to the first pad.
An interface for an iterator over pads.
Int_t fCurrentDelegateIndex
current iterator index
Bool_t IsDone() const
Is iterator done.
AliMpVPadIterator * fCurrentDelegate
current iterator
TObjArray fDelegates
iterators we do use (array of AliMpVPadIterator*)
Class which encapsuate all information about a pad.
Definition: AliMpPad.h:22
const AliMpSlat * fkSlat
pointer to the slat being iterated over
AliMpPad CurrentItem() const
Return current pad.
AliMpSlatPadIterator & operator=(const AliMpSlatPadIterator &)
Not implemented.
Iterator for slat pads.