]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/AliMUONStringIntMap.h
Corrected some manu Id's in mapping for slat and updated the serial manu numbers
[u/mrichter/AliRoot.git] / MUON / AliMUONStringIntMap.h
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2  * See cxx source for full Copyright notice                               */
3
4 // $Id$
5
6 /// \ingroup geometry
7 /// \class AliMUONStringIntMap
8 /// \brief Substitutes map <string, int> which ALICE does not allow to use 
9 ///
10 /// \author Ivana Hrivnacova, IPN Orsay
11
12 #ifndef ALI_MUON_STRING_INT_MAP_H
13 #define ALI_MUON_STRING_INT_MAP_H
14
15 #include <TObject.h>
16 #include <TObjArray.h>
17 #include <TArrayI.h>
18
19 class AliMUONStringIntMap : public TObject
20 {
21   public:
22     AliMUONStringIntMap();
23     virtual ~AliMUONStringIntMap();
24     
25     // methods
26     Bool_t  Add(const TString& first, Int_t second);
27     Int_t   Get(const TString& first) const;
28     Int_t   GetNofItems() const;
29     virtual void Clear(Option_t* /*option*/ ="");
30     virtual void Print(const char* /*option*/ = "") const;
31     void Print(const TString& key, ofstream& out) const;
32     
33   protected:
34     AliMUONStringIntMap(const AliMUONStringIntMap& rhs);
35     AliMUONStringIntMap& operator = (const AliMUONStringIntMap& rhs);
36  
37   private:
38     // data members
39     Int_t      fNofItems;    ///< number of items
40     TObjArray  fFirstArray;  ///< first item array
41     TArrayI    fSecondArray; ///< second item array
42  
43   ClassDef(AliMUONStringIntMap,1)  // motif map
44 };    
45
46 #endif //ALI_MUON_STRING_INT_MAP_H