Correct use of ROOT_INCLUDE_DIR
[u/mrichter/AliRoot.git] / MUON / MUONmapping / AliMpConnection.h
CommitLineData
dee1d5f1 1/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
3
5f91c9e8 4// $Id$
13985652 5// $MpId: AliMpConnection.h,v 1.9 2006/05/24 13:58:18 ivana Exp $
dee1d5f1 6
7/// \ingroup motif
8/// \class AliMpConnection
9/// \brief A connection properties.
10///
13985652 11/// \author David Guez, Ivana Hrivnacova; IPN Orsay
5f91c9e8 12
13#ifndef ALI_MP_CONNECTION_H
14#define ALI_MP_CONNECTION_H
15
16#include <TObject.h>
17
18#include "AliMpMotifType.h"
168e9c4d 19#include "AliMpEncodePair.h"
5f91c9e8 20
2a7ea2e6 21#include <TString.h>
22
5f91c9e8 23class AliMpConnection : public TObject
24{
25 public:
168e9c4d 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();
5f91c9e8 33 virtual ~AliMpConnection();
34
f5671fc3 35 //
5f91c9e8 36 // accessors
f5671fc3 37 //
38 /// Return Berg connector number
168e9c4d 39 Int_t GetBergNum() const { return fBergNum; }
f5671fc3 40 /// Return kapton connector number
168e9c4d 41 Int_t GetKaptonNum() const { return fKaptonNum; }
34ee05d7 42 /// Return manu channel number
168e9c4d 43 Int_t GetManuChannel() const { return fGassiNum; }
f5671fc3 44 /// Return pad number
168e9c4d 45 Int_t GetPadNum() const { return GetUniqueID(); }
46
47 /// Return encoded local indices
48 MpPair_t GetLocalIndices() const { return fLocalIndices; }
49 Int_t GetLocalIx() const;
50 Int_t GetLocalIy() const;
51
f5671fc3 52 /// Return the motif type which contains this connection
168e9c4d 53 AliMpMotifType *GetOwner() const { return fOwner; }
5f91c9e8 54
5f91c9e8 55 TString PadName() const;
f5671fc3 56
57 //
5f91c9e8 58 // modifiers
f5671fc3 59 //
71a2d3aa 60
61 /// Set Gassiplex channel number
168e9c4d 62 void SetGassiNum(Int_t n) { fGassiNum = n; }
f5671fc3 63 /// Set the motif type which contains this connection
168e9c4d 64 void SetOwner(AliMpMotifType *owner) { fOwner=owner; }
630711ed 65
13e7956b 66 private:
f5671fc3 67 /// Not implemented
168e9c4d 68 AliMpConnection();
69 /// Not implemented
2998a151 70 AliMpConnection(const AliMpConnection& right);
f5671fc3 71 /// Not implemented
2998a151 72 AliMpConnection& operator=(const AliMpConnection& right);
13e7956b 73
5f91c9e8 74 // data members
168e9c4d 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
829425a5 79 AliMpMotifType *fOwner; ///< The motif type which contains this connection
5f91c9e8 80
168e9c4d 81 ClassDef(AliMpConnection,2) // Connection description
5f91c9e8 82};
83
84// inline functions
85
168e9c4d 86/// Return the pad number converted to a name
5f91c9e8 87inline TString AliMpConnection::PadName() const
168e9c4d 88{ return fOwner->PadName(GetUniqueID()); }
5f91c9e8 89
90#endif //ALI_MP_CONNECTION_H