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 "AliMpEncodePair.h"
23 class AliMpConnection : public TObject
26 AliMpConnection(Int_t padNum,
30 MpPair_t localIndices);
31 AliMpConnection(TRootIOCtor* /*ioCtor*/);
33 virtual ~AliMpConnection();
38 /// Return Berg connector number
39 Int_t GetBergNum() const { return fBergNum; }
40 /// Return kapton connector number
41 Int_t GetKaptonNum() const { return fKaptonNum; }
42 /// Return manu channel number
43 Int_t GetManuChannel() const { return fGassiNum; }
45 Int_t GetPadNum() const { return GetUniqueID(); }
47 /// Return encoded local indices
48 MpPair_t GetLocalIndices() const { return fLocalIndices; }
49 Int_t GetLocalIx() const;
50 Int_t GetLocalIy() const;
52 /// Return the motif type which contains this connection
53 AliMpMotifType *GetOwner() const { return fOwner; }
55 TString PadName() const;
61 /// Set Gassiplex channel number
62 void SetGassiNum(Int_t n) { fGassiNum = n; }
63 /// Set the motif type which contains this connection
64 void SetOwner(AliMpMotifType *owner) { fOwner=owner; }
70 AliMpConnection(const AliMpConnection& right);
72 AliMpConnection& operator=(const AliMpConnection& right);
75 Int_t fBergNum; ///< Berg connector number
76 Int_t fKaptonNum; ///< Kapton connector number
77 Int_t fGassiNum; ///< Gassiplex channel number
78 MpPair_t fLocalIndices; ///< Local indices
79 AliMpMotifType *fOwner; ///< The motif type which contains this connection
81 ClassDef(AliMpConnection,2) // Connection description
86 /// Return the pad number converted to a name
87 inline TString AliMpConnection::PadName() const
88 { return fOwner->PadName(GetUniqueID()); }
90 #endif //ALI_MP_CONNECTION_H