]>
Commit | Line | Data |
---|---|---|
dee1d5f1 | 1 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
2 | * See cxx source for full Copyright notice */ | |
3 | ||
5f91c9e8 | 4 | // $Id$ |
dee1d5f1 | 5 | // $MpId: AliMpPad.h,v 1.6 2005/08/26 15:43:36 ivana Exp $ |
6 | ||
7 | /// \ingroup basic | |
8 | /// \class AliMpPad | |
9 | /// \brief Class which encapsuate all information about a pad | |
10 | /// | |
11 | /// Authors: David Guez, Ivana Hrivnacova; IPN Orsay | |
5f91c9e8 | 12 | |
13 | #ifndef ALI_MP_PAD_H | |
14 | #define ALI_MP_PAD_H | |
15 | ||
16 | #include <TObject.h> | |
17 | #include <TVector2.h> | |
18 | ||
19 | #include "AliMpIntPair.h" | |
20 | ||
21 | class AliMpPad : public TObject | |
22 | { | |
23 | public: | |
24 | AliMpPad(const AliMpIntPair& location, const AliMpIntPair& indices, | |
25 | const TVector2& position, const TVector2& dimensions, | |
26 | Bool_t validity = true); | |
27 | AliMpPad(); | |
28 | AliMpPad(const AliMpPad& src); | |
29 | virtual ~AliMpPad(); | |
30 | ||
31 | // operators | |
32 | Bool_t operator == (const AliMpPad& pos2) const; | |
33 | Bool_t operator != (const AliMpPad& pos2) const; | |
34 | AliMpPad& operator = (const AliMpPad& src) ; | |
35 | ||
36 | // methods | |
2998a151 | 37 | virtual void Print(const char* /*option*/ = "") const; |
5f91c9e8 | 38 | |
39 | // static get methods | |
40 | static AliMpPad Invalid() {return AliMpPad();} | |
41 | ||
42 | // get methods | |
43 | AliMpIntPair GetLocation() const {return fLocation ;} | |
44 | AliMpIntPair GetIndices() const {return fIndices ;} | |
45 | TVector2 Position() const {return fPosition ;} | |
46 | TVector2 Dimensions() const {return fDimensions;} | |
47 | Bool_t IsValid() const {return fValidity ;} | |
48 | ||
49 | private: | |
50 | // unused derived functions | |
2998a151 | 51 | // virtual void Print(const char* /*option*/) const; |
5f91c9e8 | 52 | |
53 | // data members | |
54 | AliMpIntPair fLocation; //pad location | |
55 | AliMpIntPair fIndices; //pad indices | |
56 | TVector2 fPosition; // the pad position (in cm) | |
57 | TVector2 fDimensions;// the pad dimensions (in cm) | |
58 | Bool_t fValidity; // validity | |
59 | ||
60 | ClassDef(AliMpPad,1) //utility class for the motif type | |
61 | }; | |
62 | ||
63 | ostream& operator << (ostream &out, const AliMpPad& op); | |
64 | Bool_t operator < (const AliMpPad& left, const AliMpPad& right); | |
65 | ||
66 | #endif //ALI_MP_PAD_H |