1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
5 // $MpId: AliMpConnection.h,v 1.9 2006/05/24 13:58:18 ivana Exp $
8 /// \class AliMpConnection
9 /// \brief A connection properties.
11 /// \author David Guez, Ivana Hrivnacova; IPN Orsay
13 #ifndef ALI_MP_CONNECTION_H
14 #define ALI_MP_CONNECTION_H
18 #include "AliMpMotifType.h"
19 #include "AliMpIntPair.h"
23 class AliMpConnection : public TObject
27 AliMpConnection(Int_t padNum,Int_t bergNum,Int_t kaptonNum,Int_t gassiNum,
28 const AliMpIntPair& localIndices);
29 virtual ~AliMpConnection();
34 /// Return Berg connector number
35 Int_t GetBergNum() const {return fBergNum;}
36 /// Return kapton connector number
37 Int_t GetKaptonNum() const {return fKaptonNum;}
38 /// Return manu channel number
39 Int_t GetManuChannel() const { return fGassiNum; }
41 Int_t GetPadNum() const {return fPadNum;}
42 /// Return the motif type which contains this connection
43 AliMpMotifType *GetOwner() const {return fOwner;}
45 AliMpIntPair LocalIndices() const;
46 TString PadName() const;
52 /// Set Gassiplex channel number
53 void SetGassiNum(Int_t n) { fGassiNum = n; }
54 /// Set the motif type which contains this connection
55 void SetOwner(AliMpMotifType *owner) {fOwner=owner;}
57 // void SetLocalIndices(const AliMpIntPair& pair);
61 AliMpConnection(const AliMpConnection& right);
63 AliMpConnection& operator=(const AliMpConnection& right);
66 Int_t fPadNum; ///< Pad number
67 Int_t fBergNum; ///< Berg connector number
68 Int_t fKaptonNum; ///< Kapton connector number
69 Int_t fGassiNum; ///< Gassiplex channel number
70 AliMpMotifType *fOwner; ///< The motif type which contains this connection
72 ClassDef(AliMpConnection,1) // Connection description
77 /// Return the pad number converted to a name
78 inline TString AliMpConnection::PadName() const
79 { return fOwner->PadName(fPadNum); }
81 // /// Return the local indices of this pad in the motif
82 //inline AliMpIntPair AliMpConnection::LocalIndices() const
83 //{ return fOwner->FindLocalIndicesByConnection(this);}
85 #endif //ALI_MP_CONNECTION_H