]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/mapping/AliMpConnection.cxx
Removing a comma that gcc 3.4 does not like ;-)
[u/mrichter/AliRoot.git] / MUON / mapping / AliMpConnection.cxx
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
16 // $Id$
17 // $MpId: AliMpConnection.cxx,v 1.7 2006/05/24 13:58:41 ivana Exp $
18 // Category: motif
19
20 //-----------------------------------------------------------------------------
21 // Class AliMpConnection
22 // ----------------
23 // Class that defines a connexion properties.
24 // Included in AliRoot: 2003/05/02
25 // Authors: David Guez, Ivana Hrivnacova; IPN Orsay
26 //-----------------------------------------------------------------------------
27
28 #include "AliMpConnection.h"
29 #include "AliMpEncodePair.h"
30
31 #include "AliLog.h"
32
33 /// \cond CLASSIMP
34 ClassImp(AliMpConnection)
35 /// \endcond
36
37 //_____________________________________________________________________________
38 AliMpConnection::AliMpConnection(Int_t padNum, 
39                                  Int_t bergNum,
40                                  Int_t kaptonNum,
41                                  Int_t gassiNum, 
42                                  MpPair_t localIndices) 
43   : TObject(),
44     fBergNum(bergNum),
45     fKaptonNum(kaptonNum),
46     fGassiNum(gassiNum),
47     fLocalIndices(localIndices),
48     fOwner(0)
49 {
50 /// Standard constructor
51
52   AliDebug(1,Form("this=%p padNum=%d bergNum=%d kaptonNum=%d gassiNum=%d",
53                    this,padNum,bergNum,kaptonNum,gassiNum));
54   SetUniqueID(padNum);
55 }
56
57 //_____________________________________________________________________________
58 AliMpConnection::AliMpConnection(TRootIOCtor* /*ioCtor*/) 
59   : TObject(),
60     fBergNum(),
61     fKaptonNum(),
62     fGassiNum(),
63     fLocalIndices(),
64     fOwner()
65 {
66 /// Root IO constructor
67
68   AliDebug(1,Form("this=%p",this));
69 }
70 /*
71 //_____________________________________________________________________________
72 AliMpConnection::AliMpConnection() 
73   : TObject(),
74     fBergNum(-1),
75     fKaptonNum(-1),
76     fGassiNum(-1),
77     fLocalIndices(-1)
78     fOwner(0)
79 {
80 /// Default constructor
81
82   AliDebug(1,Form("this=%p",this));
83 }
84 */
85 //_____________________________________________________________________________
86 AliMpConnection::~AliMpConnection() 
87 {
88 /// Destructor  
89
90   AliDebug(1,Form("this=%p"));
91 }
92
93 //_____________________________________________________________________________
94 Int_t  AliMpConnection::GetLocalIx() const
95 {
96 /// Return local ix
97
98   return AliMp::PairFirst(fLocalIndices);
99 }  
100
101 Int_t  AliMpConnection::GetLocalIy() const
102 {
103 /// Return local iy
104
105   return AliMp::PairSecond(fLocalIndices);
106 }  
107