]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/mapping/AliMpDEIterator.h
Updated denames of station 1 for the quadrants as they have been mounted in cave
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpDEIterator.h
CommitLineData
73250182 1/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
3
700013f0 4// $Id$
13985652 5// $MpId: AliMpDEIterator.h,v 1.5 2006/05/24 13:58:16 ivana Exp $
73250182 6
7/// \ingroup management
8/// \class AliMpDEIterator
38956661 9/// \brief The iterator over detection elements
73250182 10///
73250182 11/// It can iterate
38956661 12/// - over all detection elements, if started with First() function;
0a478fb1 13/// - or over detection elements in a selected chamber, if started with
14/// First(Int_t chamberId) function \n
73250182 15///
13985652 16/// \author Ivana Hrivnacova, IPN Orsay
73250182 17
18#ifndef ALI_MP_DE_ITERATOR_H
19#define ALI_MP_DE_ITERATOR_H
20
2a7ea2e6 21#include <TObject.h>
22
73250182 23#include <TArrayI.h>
24
38956661 25class AliMpDEStore;
26class AliMpDetElement;
27
73250182 28class TString;
29
38956661 30
73250182 31class AliMpDEIterator : public TObject {
32
33 public:
34 AliMpDEIterator();
35 AliMpDEIterator(const AliMpDEIterator& rhs);
36 virtual ~AliMpDEIterator();
37
38 // Operators
39 AliMpDEIterator& operator=(const AliMpDEIterator& rhs);
40
41 // Methods for iterating over DE elements
42 //
43 void First();
0a478fb1 44 void First(Int_t chamberId);
73250182 45 void Next();
46 Bool_t IsDone() const;
38956661 47
48 AliMpDetElement* CurrentDE() const;
49 Int_t CurrentDEId() const;
73250182 50
51 private:
38956661 52 // methods
53 AliMpDetElement* GetDetElement(Int_t index) const;
73250182 54
55 // data members
38956661 56 AliMpDEStore* fDEStore; ///< DE store
57 Int_t fIndex; ///< Current DE index
58 Int_t fChamberId; ///< The iterated chamber
73250182 59
829425a5 60 ClassDef(AliMpDEIterator,0) // The iterator over valid detection element IDs
73250182 61};
62
63#endif //ALI_MP_DE_ITERATOR_H
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78