4 // Class AliMpConnection
5 // ---------------------
6 // Class that defines a connexion properties.
8 // Authors: David Guez, Ivana Hrivnacova; IPN Orsay
10 #ifndef ALI_MP_CONNECTION_H
11 #define ALI_MP_CONNECTION_H
15 #include "AliMpMotifType.h"
16 #include "AliMpIntPair.h"
18 class AliMpConnection : public TObject
22 AliMpConnection(Int_t padNum,Int_t bergNum,Int_t kaptonNum,Int_t gassiNum);
23 virtual ~AliMpConnection();
28 Int_t GetBergNum() const {return fBergNum;}
29 Int_t GetKaptonNum() const {return fKaptonNum;}
30 Int_t GetGassiNum() const {return fGassiNum;}
31 Int_t GetPadNum() const {return fPadNum;}
32 AliMpMotifType *GetOwner() const {return fOwner;}
34 AliMpIntPair LocalIndices() const;
35 TString PadName() const;
37 void SetOwner(AliMpMotifType *owner) {fOwner=owner;}
41 Int_t fPadNum; // Pad number
42 Int_t fBergNum; // Berg connector number
43 Int_t fKaptonNum; // Kapton connector number
44 Int_t fGassiNum; // Gassiplex channel number
45 AliMpMotifType *fOwner; //The motif type which contains this connection
47 ClassDef(AliMpConnection,1) // Connection description
52 inline TString AliMpConnection::PadName() const
53 { return fOwner->PadName(fPadNum); }
55 inline AliMpIntPair AliMpConnection::LocalIndices() const
56 { return fOwner->FindLocalIndicesByConnection(this);}
58 #endif //ALI_MP_CONNECTION_H