]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/AliMUONCheckItem.h
Updating the makeped part (Laurent)
[u/mrichter/AliRoot.git] / MUON / AliMUONCheckItem.h
CommitLineData
ea199e33 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
ea23f04b 9/// \ingroup rec
ea199e33 10/// \class AliMUONCheckItem
11/// \brief A structure used to gather information at different levels (ch,manu,de,chamber)
12///
78649106 13// Author Laurent Aphecetche
ea199e33 14
15#ifndef ROOT_TNamed
16# include "TNamed.h"
17#endif
18
19class AliMpExMap;
20class TExMapIter;
21class AliMUONCheckItemIterator;
22
23class AliMUONCheckItem : public TNamed
24{
25 friend class AliMUONCheckItemIterator;
26
27public:
28
29 AliMUONCheckItem(Int_t id, Int_t maxNumber, const char* name);
30 virtual ~AliMUONCheckItem();
31
c4ee792d 32 /// Return the identifier of this item
ea199e33 33 Int_t GetID() const { return fID; }
34
35 TObject* GetItem(Int_t id) const;
36 Bool_t AddItem(Int_t id, TObject* item);
37
38 Bool_t IsFull() const;
39 Bool_t IsDead() const;
40
41 void Print(Option_t* opt="") const;
42
43private:
c4ee792d 44 /// Not implemented
ea199e33 45 AliMUONCheckItem(const AliMUONCheckItem&);
c4ee792d 46 /// Not implemented
ea199e33 47 AliMUONCheckItem& operator=(const AliMUONCheckItem&);
c4ee792d 48
ea199e33 49 void ComputeDead() const;
50
51private:
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
56
57 ClassDef(AliMUONCheckItem,1) // A composite object
58};
59
60#endif