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
16 #include "AliMpMotifType.h"
17 #include "AliMpIntPair.h"
19 class AliMpConnection : public TObject
23 AliMpConnection(Int_t padNum,Int_t bergNum,Int_t kaptonNum,Int_t gassiNum);
24 virtual ~AliMpConnection();
29 Int_t GetBergNum() const {return fBergNum;}
30 Int_t GetKaptonNum() const {return fKaptonNum;}
31 Int_t GetGassiNum() const {return fGassiNum;}
32 Int_t GetPadNum() const {return fPadNum;}
33 AliMpMotifType *GetOwner() const {return fOwner;}
35 AliMpIntPair LocalIndices() const;
36 TString PadName() const;
38 void SetOwner(AliMpMotifType *owner) {fOwner=owner;}
41 AliMpConnection(const AliMpConnection& right);
44 AliMpConnection& operator=(const AliMpConnection& right);
48 Int_t fPadNum; // Pad number
49 Int_t fBergNum; // Berg connector number
50 Int_t fKaptonNum; // Kapton connector number
51 Int_t fGassiNum; // Gassiplex channel number
52 AliMpMotifType *fOwner; //The motif type which contains this connection
54 ClassDef(AliMpConnection,1) // Connection description
59 inline TString AliMpConnection::PadName() const
60 { return fOwner->PadName(fPadNum); }
62 inline AliMpIntPair AliMpConnection::LocalIndices() const
63 { return fOwner->FindLocalIndicesByConnection(this);}
65 #endif //ALI_MP_CONNECTION_H