]>
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(); | |
27 | AliMpConnection(Int_t padNum,Int_t bergNum,Int_t kaptonNum,Int_t gassiNum); | |
28 | virtual ~AliMpConnection(); | |
29 | ||
30 | // methods | |
31 | ||
32 | // accessors | |
33 | Int_t GetBergNum() const {return fBergNum;} | |
34 | Int_t GetKaptonNum() const {return fKaptonNum;} | |
35 | Int_t GetGassiNum() const {return fGassiNum;} | |
36 | Int_t GetPadNum() const {return fPadNum;} | |
37 | AliMpMotifType *GetOwner() const {return fOwner;} | |
38 | ||
39 | AliMpIntPair LocalIndices() const; | |
40 | TString PadName() const; | |
41 | // modifiers | |
42 | void SetOwner(AliMpMotifType *owner) {fOwner=owner;} | |
43 | ||
13e7956b | 44 | private: |
2998a151 | 45 | AliMpConnection(const AliMpConnection& right); |
2998a151 | 46 | AliMpConnection& operator=(const AliMpConnection& right); |
13e7956b | 47 | |
5f91c9e8 | 48 | // data members |
829425a5 | 49 | Int_t fPadNum; ///< Pad number |
50 | Int_t fBergNum; ///< Berg connector number | |
51 | Int_t fKaptonNum; ///< Kapton connector number | |
52 | Int_t fGassiNum; ///< Gassiplex channel number | |
53 | AliMpMotifType *fOwner; ///< The motif type which contains this connection | |
5f91c9e8 | 54 | |
55 | ClassDef(AliMpConnection,1) // Connection description | |
56 | }; | |
57 | ||
58 | // inline functions | |
59 | ||
60 | inline TString AliMpConnection::PadName() const | |
61 | { return fOwner->PadName(fPadNum); } | |
62 | ||
63 | inline AliMpIntPair AliMpConnection::LocalIndices() const | |
64 | { return fOwner->FindLocalIndicesByConnection(this);} | |
65 | ||
66 | #endif //ALI_MP_CONNECTION_H |