5f91c9e8 |
1 | // $Id$ |
2 | // Category: basic |
3 | // |
4 | // Class AliMpPadPair |
5 | // ------------------ |
6 | // Wrap up for std::pair<AliMpPad, AliMpPad> |
7 | // to avoid problems with CINT. |
8 | // |
9 | // Authors: David Guez, Ivana Hrivnacova; IPN Orsay |
10 | |
11 | #ifndef ALI_MP_PAD_PAIR_H |
12 | #define ALI_MP_PAD_PAIR_H |
13 | |
14 | #include "AliMpBasicTypes.h" |
15 | #include "AliMpPad.h" |
16 | |
17 | class AliMpPadPair : public TObject |
18 | { |
19 | public: |
20 | AliMpPadPair(const AliMpPad& pad1, const AliMpPad& pad2); |
21 | AliMpPadPair(const AliMpPadPair& pair); |
22 | AliMpPadPair(); |
23 | virtual ~AliMpPadPair(); |
24 | |
25 | // operators |
26 | Bool_t operator == (const AliMpPadPair& right) const; |
27 | Bool_t operator != (const AliMpPadPair& right) const; |
28 | AliMpPadPair& operator = (const AliMpPadPair& right); |
29 | |
30 | // methods |
31 | AliMpPad GetFirst() const; |
32 | AliMpPad GetSecond() const; |
33 | |
34 | private: |
35 | // data members |
2998a151 |
36 | PadPair fPair; // pad pair |
5f91c9e8 |
37 | |
38 | ClassDef(AliMpPadPair,1) //utility class for the motif type |
39 | }; |
40 | |
41 | // inline functions |
42 | |
43 | inline AliMpPad AliMpPadPair::GetFirst() const { return fPair.first; } |
44 | inline AliMpPad AliMpPadPair::GetSecond() const { return fPair.second; } |
45 | |
46 | |
47 | #endif //ALI_MP_PAD_PAIR_H |