+//______________________________________________________________________________
+Bool_t AliMUONStringIntMap::Set(const TString& first, Int_t second)
+{
+ /// Set map element
+
+ Int_t index = Contains(first);
+ if ( index < 0 )
+ {
+ return Add(first,second);
+ }
+
+ fSecondArray.AddAt(second, index);
+
+ return true;
+}
+
+//______________________________________________________________________________
+Int_t
+AliMUONStringIntMap::Contains(const TString& first) const
+{
+ /// Whether this map contains the string 'first' or not
+
+ for (Int_t i=0; i<fNofItems; i++)
+ {
+ if ( ((TObjString*)fFirstArray.At(i))->GetString() == first )
+ {
+ return i;
+ }
+ }
+
+ return -1;
+}
+