1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
5 // $MpId: AliMpDEIterator.h,v 1.2 2006/03/13 12:22:08 ivana Exp $
7 /// \ingroup management
8 /// \class AliMpDEIterator
9 /// \brief The iterator over valid detection element IDs
11 /// The valid detection element Ids are defined in the files denames*.dat. \n
13 /// - over all valid detection elements, if started with First() function;
14 /// - or over detection elements in a selected module, if started with
15 /// First(Int_t moduleId) function \n
17 /// Author: Ivana Hrivnacova, IPN Orsay
19 #ifndef ALI_MP_DE_ITERATOR_H
20 #define ALI_MP_DE_ITERATOR_H
22 #include "AliMpStationType.h"
29 class AliMpDEIterator : public TObject {
33 AliMpDEIterator(const AliMpDEIterator& rhs);
34 virtual ~AliMpDEIterator();
37 AliMpDEIterator& operator=(const AliMpDEIterator& rhs);
39 // Methods for iterating over DE elements
42 void First(Int_t moduleId);
44 Bool_t IsDone() const;
45 Int_t CurrentDE() const;
49 static Bool_t ReadDEIds(AliMpStationType station);
50 static void ReadData();
52 // static data members
53 static const Int_t fgkMaxNofDetElements; // Maximum number of DEs
54 static TArrayI fgDetElemIds; // DE Ids
55 static Int_t fgNofDetElemIds; // Number of DE Ids
58 Int_t fIndex; // Current DE index
59 Int_t fModuleId; // The iterated module
61 ClassDef(AliMpDEIterator,0) // MUON Factory for Chambers and Segmentation
64 #endif //ALI_MP_DE_ITERATOR_H