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.7 2006/03/17 11:37:50 ivana Exp $
8 /// \class AliMpConnection
9 /// \brief A connection properties.
11 /// Authors: 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 virtual ~AliMpConnection();
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;}
39 AliMpIntPair LocalIndices() const;
40 TString PadName() const;
42 void SetOwner(AliMpMotifType *owner) {fOwner=owner;}
45 AliMpConnection(const AliMpConnection& right);
48 AliMpConnection& operator=(const AliMpConnection& right);
52 Int_t fPadNum; // Pad number
53 Int_t fBergNum; // Berg connector number
54 Int_t fKaptonNum; // Kapton connector number
55 Int_t fGassiNum; // Gassiplex channel number
56 AliMpMotifType *fOwner; //The motif type which contains this connection
58 ClassDef(AliMpConnection,1) // Connection description
63 inline TString AliMpConnection::PadName() const
64 { return fOwner->PadName(fPadNum); }
66 inline AliMpIntPair AliMpConnection::LocalIndices() const
67 { return fOwner->FindLocalIndicesByConnection(this);}
69 #endif //ALI_MP_CONNECTION_H