]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/mapping/AliMpEncodePair.h
Replacement of AliMpIntPair object with algoritmic
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpEncodePair.h
1 #ifndef ALIMPENCODEPAIR_H
2 #define ALIMPENCODEPAIR_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
9 #include <Rtypes.h>
10 #include <Riosfwd.h>
11
12 typedef Int_t MpPair_t;
13
14 namespace AliMp
15 {
16   /// Encode the pair of integers to another integer.
17   MpPair_t Pair(Int_t first, Int_t second);
18   
19   /// Decode the first integer from encoded pair
20   Int_t  PairFirst(MpPair_t pair);
21
22   /// Decode the second integer from encoded pair
23   Int_t  PairSecond(MpPair_t pair);
24
25   /// A special printing for encoded pair.
26   ostream& PairPut(ostream& s, MpPair_t pair);
27 }
28
29 #endif //ALIMPENCODEPAIR_H