1 #ifndef ALIMUONCHECKITEM_H
2 #define ALIMUONCHECKITEM_H
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5 * See cxx source for full Copyright notice */
10 /// \class AliMUONCheckItem
11 /// \brief A structure used to gather information at different levels (ch,manu,de,chamber)
13 // Author Laurent Aphecetche
21 class AliMUONCheckItemIterator;
23 class AliMUONCheckItem : public TNamed
25 friend class AliMUONCheckItemIterator;
29 AliMUONCheckItem(Int_t id, Int_t maxNumber, const char* name);
30 virtual ~AliMUONCheckItem();
32 /// Return the identifier of this item
33 Int_t GetID() const { return fID; }
35 TObject* GetItem(Int_t id) const;
36 Bool_t AddItem(Int_t id, TObject* item);
38 Bool_t IsFull() const;
39 Bool_t IsDead() const;
41 void Print(Option_t* opt="") const;
45 AliMUONCheckItem(const AliMUONCheckItem&);
47 AliMUONCheckItem& operator=(const AliMUONCheckItem&);
49 void ComputeDead() const;
52 Int_t fID; //!< identifier of this item
53 mutable Int_t fDead; //!< whether this object is completely dead
54 Int_t fMaximum; //!< maximum number of sub-items possible within this item
55 AliMpExMap* fMissing; //!< pointers to the sub-items
57 ClassDef(AliMUONCheckItem,1) // A composite object