]>
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$ |
13985652 | 5 | // $MpId: AliMpConnection.h,v 1.9 2006/05/24 13:58:18 ivana Exp $ |
dee1d5f1 | 6 | |
7 | /// \ingroup motif | |
8 | /// \class AliMpConnection | |
9 | /// \brief A connection properties. | |
10 | /// | |
13985652 | 11 | /// \author David Guez, Ivana Hrivnacova; IPN Orsay |
5f91c9e8 | 12 | |
13 | #ifndef ALI_MP_CONNECTION_H | |
14 | #define ALI_MP_CONNECTION_H | |
15 | ||
16 | #include <TObject.h> | |
17 | ||
18 | #include "AliMpMotifType.h" | |
19 | #include "AliMpIntPair.h" | |
20 | ||
2a7ea2e6 | 21 | #include <TString.h> |
22 | ||
5f91c9e8 | 23 | class AliMpConnection : public TObject |
24 | { | |
25 | public: | |
26 | AliMpConnection(); | |
630711ed | 27 | AliMpConnection(Int_t padNum,Int_t bergNum,Int_t kaptonNum,Int_t gassiNum, |
28 | const AliMpIntPair& localIndices); | |
5f91c9e8 | 29 | virtual ~AliMpConnection(); |
30 | ||
31 | // methods | |
32 | ||
f5671fc3 | 33 | // |
5f91c9e8 | 34 | // accessors |
f5671fc3 | 35 | // |
36 | /// Return Berg connector number | |
5f91c9e8 | 37 | Int_t GetBergNum() const {return fBergNum;} |
f5671fc3 | 38 | /// Return kapton connector number |
5f91c9e8 | 39 | Int_t GetKaptonNum() const {return fKaptonNum;} |
f5671fc3 | 40 | /// Return Gassiplex channel number |
5f91c9e8 | 41 | Int_t GetGassiNum() const {return fGassiNum;} |
f5671fc3 | 42 | /// Return pad number |
5f91c9e8 | 43 | Int_t GetPadNum() const {return fPadNum;} |
f5671fc3 | 44 | /// Return the motif type which contains this connection |
5f91c9e8 | 45 | AliMpMotifType *GetOwner() const {return fOwner;} |
46 | ||
47 | AliMpIntPair LocalIndices() const; | |
48 | TString PadName() const; | |
f5671fc3 | 49 | |
50 | // | |
5f91c9e8 | 51 | // modifiers |
f5671fc3 | 52 | // |
71a2d3aa | 53 | |
54 | /// Set Gassiplex channel number | |
55 | void SetGassiNum(Int_t n) { fGassiNum = n; } | |
f5671fc3 | 56 | /// Set the motif type which contains this connection |
5f91c9e8 | 57 | void SetOwner(AliMpMotifType *owner) {fOwner=owner;} |
58 | ||
630711ed | 59 | // void SetLocalIndices(const AliMpIntPair& pair); |
60 | ||
13e7956b | 61 | private: |
f5671fc3 | 62 | /// Not implemented |
2998a151 | 63 | AliMpConnection(const AliMpConnection& right); |
f5671fc3 | 64 | /// Not implemented |
2998a151 | 65 | AliMpConnection& operator=(const AliMpConnection& right); |
13e7956b | 66 | |
5f91c9e8 | 67 | // data members |
829425a5 | 68 | Int_t fPadNum; ///< Pad number |
69 | Int_t fBergNum; ///< Berg connector number | |
70 | Int_t fKaptonNum; ///< Kapton connector number | |
71 | Int_t fGassiNum; ///< Gassiplex channel number | |
72 | AliMpMotifType *fOwner; ///< The motif type which contains this connection | |
5f91c9e8 | 73 | |
74 | ClassDef(AliMpConnection,1) // Connection description | |
75 | }; | |
76 | ||
77 | // inline functions | |
78 | ||
f5671fc3 | 79 | /// Return the pad number converted to a name |
5f91c9e8 | 80 | inline TString AliMpConnection::PadName() const |
81 | { return fOwner->PadName(fPadNum); } | |
82 | ||
630711ed | 83 | // /// Return the local indices of this pad in the motif |
84 | //inline AliMpIntPair AliMpConnection::LocalIndices() const | |
85 | //{ return fOwner->FindLocalIndicesByConnection(this);} | |
5f91c9e8 | 86 | |
87 | #endif //ALI_MP_CONNECTION_H |