AliRoot Core  a565103 (a565103)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliMpConnection.h
Go to the documentation of this file.
1 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2  * See cxx source for full Copyright notice */
3 
4 // $Id$
5 // $MpId: AliMpConnection.h,v 1.9 2006/05/24 13:58:18 ivana Exp $
6 
12 
13 #ifndef ALI_MP_CONNECTION_H
14 #define ALI_MP_CONNECTION_H
15 
16 #include <TObject.h>
17 
18 #include "AliMpMotifType.h"
19 #include "AliMpEncodePair.h"
20 
21 #include <TString.h>
22 
23 class AliMpConnection : public TObject
24 {
25  public:
26  AliMpConnection(Int_t padNum,
27  Int_t bergNum,
28  Int_t kaptonNum,
29  Int_t gassiNum,
30  MpPair_t localIndices);
31  AliMpConnection(TRootIOCtor* /*ioCtor*/);
32  //AliMpConnection();
33  virtual ~AliMpConnection();
34 
35  //
36  // accessors
37  //
39  Int_t GetBergNum() const { return fBergNum; }
41  Int_t GetKaptonNum() const { return fKaptonNum; }
43  Int_t GetManuChannel() const { return fGassiNum; }
45  Int_t GetPadNum() const { return GetUniqueID(); }
46 
49  Int_t GetLocalIx() const;
50  Int_t GetLocalIy() const;
51 
53  AliMpMotifType *GetOwner() const { return fOwner; }
54 
55  TString PadName() const;
56 
57  //
58  // modifiers
59  //
60 
62  void SetGassiNum(Int_t n) { fGassiNum = n; }
64  void SetOwner(AliMpMotifType *owner) { fOwner=owner; }
65 
66  private:
70  AliMpConnection(const AliMpConnection& right);
73 
74  // data members
75  Int_t fBergNum;
76  Int_t fKaptonNum;
77  Int_t fGassiNum;
80 
81  ClassDef(AliMpConnection,2) // Connection description
82 };
83 
84 // inline functions
85 
87 inline TString AliMpConnection::PadName() const
88 { return fOwner->PadName(GetUniqueID()); }
89 
90 #endif //ALI_MP_CONNECTION_H
A connection properties.
Int_t GetLocalIx() const
void SetGassiNum(Int_t n)
Set Gassiplex channel number.
MpPair_t fLocalIndices
Local indices.
Int_t GetBergNum() const
Return Berg connector number.
MpPair_t GetLocalIndices() const
Return encoded local indices.
TString PadName(Int_t padNum) const
TString PadName() const
Return the pad number converted to a name.
AliMpConnection & operator=(const AliMpConnection &right)
Not implemented.
AliMpConnection()
Not implemented.
Int_t GetKaptonNum() const
Return kapton connector number.
Int_t fGassiNum
Gassiplex channel number.
void SetOwner(AliMpMotifType *owner)
Set the motif type which contains this connection.
Int_t fBergNum
Berg connector number.
Int_t GetPadNum() const
Return pad number.
Int_t GetLocalIy() const
AliMpMotifType * fOwner
The motif type which contains this connection.
AliMpMotifType * GetOwner() const
Return the motif type which contains this connection.
Int_t MpPair_t
Int_t GetManuChannel() const
Return manu channel number.
virtual ~AliMpConnection()
Int_t fKaptonNum
Kapton connector number.
Class that defines the motif properties.