1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
17 // $MpId: AliMpConnection.cxx,v 1.7 2006/05/24 13:58:41 ivana Exp $
20 //-----------------------------------------------------------------------------
21 // Class AliMpConnection
23 // Class that defines a connexion properties.
24 // Included in AliRoot: 2003/05/02
25 // Authors: David Guez, Ivana Hrivnacova; IPN Orsay
26 //-----------------------------------------------------------------------------
28 #include "AliMpConnection.h"
29 #include "AliMpEncodePair.h"
34 ClassImp(AliMpConnection)
37 //_____________________________________________________________________________
38 AliMpConnection::AliMpConnection(Int_t padNum,
42 MpPair_t localIndices)
45 fKaptonNum(kaptonNum),
47 fLocalIndices(localIndices),
50 /// Standard constructor
52 AliDebug(1,Form("this=%p padNum=%d bergNum=%d kaptonNum=%d gassiNum=%d",
53 this,padNum,bergNum,kaptonNum,gassiNum));
57 //_____________________________________________________________________________
58 AliMpConnection::AliMpConnection(TRootIOCtor* /*ioCtor*/)
66 /// Root IO constructor
68 AliDebug(1,Form("this=%p",this));
71 //_____________________________________________________________________________
72 AliMpConnection::AliMpConnection()
80 /// Default constructor
82 AliDebug(1,Form("this=%p",this));
85 //_____________________________________________________________________________
86 AliMpConnection::~AliMpConnection()
90 AliDebug(1,Form("this=%p", this));
93 //_____________________________________________________________________________
94 Int_t AliMpConnection::GetLocalIx() const
98 return AliMp::PairFirst(fLocalIndices);
101 Int_t AliMpConnection::GetLocalIy() const
105 return AliMp::PairSecond(fLocalIndices);