Fixing a backward compatibility issue
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpConnection.cxx
CommitLineData
dee1d5f1 1/**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3 * *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
6 * *
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 **************************************************************************/
15
5f91c9e8 16// $Id$
13985652 17// $MpId: AliMpConnection.cxx,v 1.7 2006/05/24 13:58:41 ivana Exp $
5f91c9e8 18// Category: motif
3d1463c8 19
20//-----------------------------------------------------------------------------
5f91c9e8 21// Class AliMpConnection
22// ----------------
23// Class that defines a connexion properties.
dbe945cc 24// Included in AliRoot: 2003/05/02
5f91c9e8 25// Authors: David Guez, Ivana Hrivnacova; IPN Orsay
3d1463c8 26//-----------------------------------------------------------------------------
5f91c9e8 27
28#include "AliMpConnection.h"
168e9c4d 29#include "AliMpEncodePair.h"
30
73dd9171 31#include "AliLog.h"
5f91c9e8 32
13985652 33/// \cond CLASSIMP
5f91c9e8 34ClassImp(AliMpConnection)
13985652 35/// \endcond
5f91c9e8 36
37//_____________________________________________________________________________
168e9c4d 38AliMpConnection::AliMpConnection(Int_t padNum,
39 Int_t bergNum,
40 Int_t kaptonNum,
41 Int_t gassiNum,
42 MpPair_t localIndices)
5f91c9e8 43 : TObject(),
5f91c9e8 44 fBergNum(bergNum),
45 fKaptonNum(kaptonNum),
46 fGassiNum(gassiNum),
168e9c4d 47 fLocalIndices(localIndices),
5f91c9e8 48 fOwner(0)
49{
dee1d5f1 50/// Standard constructor
630711ed 51
168e9c4d 52 AliDebug(1,Form("this=%p padNum=%d bergNum=%d kaptonNum=%d gassiNum=%d",
53 this,padNum,bergNum,kaptonNum,gassiNum));
54 SetUniqueID(padNum);
55}
630711ed 56
168e9c4d 57//_____________________________________________________________________________
58AliMpConnection::AliMpConnection(TRootIOCtor* /*ioCtor*/)
59 : TObject(),
60 fBergNum(),
61 fKaptonNum(),
62 fGassiNum(),
63 fLocalIndices(),
64 fOwner()
65{
66/// Root IO constructor
630711ed 67
168e9c4d 68 AliDebug(1,Form("this=%p",this));
5f91c9e8 69}
168e9c4d 70/*
5f91c9e8 71//_____________________________________________________________________________
72AliMpConnection::AliMpConnection()
73 : TObject(),
5f91c9e8 74 fBergNum(-1),
75 fKaptonNum(-1),
76 fGassiNum(-1),
168e9c4d 77 fLocalIndices(-1)
5f91c9e8 78 fOwner(0)
79{
dee1d5f1 80/// Default constructor
5f91c9e8 81
168e9c4d 82 AliDebug(1,Form("this=%p",this));
83}
84*/
5f91c9e8 85//_____________________________________________________________________________
73dd9171 86AliMpConnection::~AliMpConnection()
87{
f5671fc3 88/// Destructor
168e9c4d 89
73dd9171 90 AliDebug(1,Form("this=%p"));
5f91c9e8 91}
630711ed 92
630711ed 93//_____________________________________________________________________________
168e9c4d 94Int_t AliMpConnection::GetLocalIx() const
630711ed 95{
168e9c4d 96/// Return local ix
630711ed 97
168e9c4d 98 return AliMp::PairFirst(fLocalIndices);
99}
100
101Int_t AliMpConnection::GetLocalIy() const
630711ed 102{
168e9c4d 103/// Return local iy
630711ed 104
168e9c4d 105 return AliMp::PairSecond(fLocalIndices);
106}
630711ed 107