]>
Commit | Line | Data |
---|---|---|
5f91c9e8 | 1 | // $Id$ |
2 | // Category: plane | |
3 | // | |
4 | // Class AliMpSectorPosition | |
5 | // ------------------------- | |
6 | // Class that represents a placed sector. | |
7 | // Only translation + reflection transformations can | |
8 | // be applied. | |
9 | // | |
10 | // Authors: David Guez, Ivana Hrivnacova; IPN Orsay | |
11 | ||
12 | #ifndef ALI_MP_SECTOR_POSITION_H | |
13 | #define ALI_MP_SECTOR_POSITION_H | |
14 | ||
15 | #include <TObject.h> | |
16 | #include <TVector2.h> | |
17 | ||
18 | #include "AliMpIntPair.h" | |
19 | ||
20 | class AliMpSector; | |
21 | ||
22 | class AliMpSectorPosition : public TObject | |
23 | { | |
24 | public: | |
25 | AliMpSectorPosition(const AliMpSector* sector, | |
26 | const TVector2& offset, const AliMpIntPair& scale); | |
27 | AliMpSectorPosition(); | |
28 | virtual ~AliMpSectorPosition(); | |
29 | ||
30 | // get methods | |
31 | const AliMpSector* GetSector() const; | |
32 | TVector2 GetOffset() const; | |
33 | AliMpIntPair GetScale() const; | |
34 | ||
2998a151 | 35 | protected: |
36 | AliMpSectorPosition(const AliMpSectorPosition& right); | |
37 | ||
38 | // operators | |
39 | AliMpSectorPosition& operator=(const AliMpSectorPosition& right); | |
40 | ||
5f91c9e8 | 41 | private: |
42 | // data members | |
43 | const AliMpSector* fkSector; // sector | |
44 | TVector2 fOffset; // translation transformation | |
45 | AliMpIntPair fScale; // reflection transformation | |
46 | ||
47 | ClassDef(AliMpSectorPosition,1) //Sector position | |
48 | }; | |
49 | ||
50 | // inline functions | |
51 | ||
52 | inline const AliMpSector* AliMpSectorPosition::GetSector() const | |
53 | { return fkSector; } | |
54 | ||
55 | inline TVector2 AliMpSectorPosition::GetOffset() const | |
56 | { return fOffset; } | |
57 | ||
58 | inline AliMpIntPair AliMpSectorPosition::GetScale() const | |
59 | { return fScale; } | |
60 | ||
61 | #endif //ALI_MP_SECTOR_POSITION_H | |
62 |