AliRoot Core  da88d91 (da88d91)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMUONTOTCAStoreIterator.h
Go to the documentation of this file.
1 #ifndef ALIMUONTOTCASTOREITERATOR_H
2 #define ALIMUONTOTCASTOREITERATOR_H
3 
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
6 
7 // $Id$
8 
13 // Author: Laurent Aphecetche
14 
15 #include "TIterator.h"
16 
17 class TClonesArray;
18 class TObjArray;
19 
20 class AliMUONTOTCAStoreIterator : public TIterator
21 {
22 public:
23  AliMUONTOTCAStoreIterator(const TObjArray* a, Int_t firstChamberId, Int_t lastChamberId);
25  AliMUONTOTCAStoreIterator& operator=(const TIterator& rhs);
28 
29  virtual const TCollection* GetCollection() const;
30 
31  virtual TObject* Next();
32 
33  virtual void Reset();
34 
35 private:
36  void CopyTo(AliMUONTOTCAStoreIterator& destination) const;
37 
38 private:
39  const TObjArray* fkData;
42  TClonesArray* fCurrentTCA;
45 
46  ClassDef(AliMUONTOTCAStoreIterator,0) // Iterator on digits
47 };
48 
49 #endif
Iterator on a store composed of a TObjArray of TClonesArrays.
#define TObjArray
Int_t fFirstChamberId
! First chamber to iterate on
AliMUONTOTCAStoreIterator & operator=(const TIterator &rhs)
void CopyTo(AliMUONTOTCAStoreIterator &destination) const
AliMUONTOTCAStoreIterator(const TObjArray *a, Int_t firstChamberId, Int_t lastChamberId)
Int_t fLastChamberId
! Last chamber to iterate on
Int_t fCurrentTCAIndex
! Current position within fCurrentTCA array
Int_t fCurrentChamberId
! current chamber id
virtual const TCollection * GetCollection() const
TClonesArray * fCurrentTCA
! TClonesArray of the current chamber
const TObjArray * fkData
! Pointer to data accessor