]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/mapping/AliMpEncodePair.h
Fix for the problem during PbPb run of Nov 2010 (Indra)
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpEncodePair.h
CommitLineData
168e9c4d 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
40a42243 9// The functions for encodind the pair of integers to another integer,
10// defined withing a namespace AliMp
11// Author Laurent Aphecetche
12
168e9c4d 13#include <Rtypes.h>
14#include <Riosfwd.h>
15
16typedef Int_t MpPair_t;
17
18namespace AliMp
19{
20 /// Encode the pair of integers to another integer.
21 MpPair_t Pair(Int_t first, Int_t second);
22
23 /// Decode the first integer from encoded pair
24 Int_t PairFirst(MpPair_t pair);
25
26 /// Decode the second integer from encoded pair
27 Int_t PairSecond(MpPair_t pair);
28
29 /// A special printing for encoded pair.
30 ostream& PairPut(ostream& s, MpPair_t pair);
31}
32
33#endif //ALIMPENCODEPAIR_H