AliRoot Core  3dc7879 (3dc7879)
AliMUONCheckItem.h
Go to the documentation of this file.
1 #ifndef ALIMUONCHECKITEM_H
2 #define ALIMUONCHECKITEM_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 #ifndef ROOT_TNamed
16 # include "TNamed.h"
17 #endif
18 
19 class AliMpExMap;
20 class TIterator;
21 
22 class AliMUONCheckItem : public TNamed
23 {
24 public:
25 
26  AliMUONCheckItem(Int_t id, Int_t maxNumber, const char* name);
27  virtual ~AliMUONCheckItem();
28 
30  Int_t GetID() const { return fID; }
31 
32  TObject* GetItem(Int_t id) const;
33  Bool_t AddItem(Int_t id, TObject* item);
34 
35  Bool_t IsFull() const;
36  Bool_t IsDead() const;
37 
38  void Print(Option_t* opt="") const;
39 
40  TIterator* CreateIterator() const;
41 
42 private:
47 
48  void ComputeDead() const;
49 
50 private:
51  Int_t fID;
52  mutable Int_t fDead;
53  Int_t fMaximum;
55 
56  ClassDef(AliMUONCheckItem,1) // A composite object
57 };
58 
59 #endif
TObject * GetItem(Int_t id) const
void ComputeDead() const
void Print(Option_t *opt="") const
Int_t fMaximum
! maximum number of sub-items possible within this item
TIterator * CreateIterator() const
Int_t GetID() const
Return the identifier of this item.
Bool_t IsFull() const
Bool_t AddItem(Int_t id, TObject *item)
Int_t fID
! identifier of this item
AliMpExMap * fMissing
! pointers to the sub-items
virtual ~AliMUONCheckItem()
AliMUONCheckItem(Int_t id, Int_t maxNumber, const char *name)
A structure used to gather information at different levels (ch,manu,de,chamber)
Bool_t IsDead() const
AliMUONCheckItem & operator=(const AliMUONCheckItem &)
Not implemented.
Helper class making Root persistent TExMap.
Definition: AliMpExMap.h:28
Int_t fDead
! whether this object is completely dead