]> git.uio.no Git - u/mrichter/AliRoot.git/blob - MUON/mapping/AliMpConnection.cxx
Coding conventions
[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.6 2006/03/17 11:38:06 ivana Exp $
18 // Category: motif
19 //
20 // Class AliMpConnection
21 // ----------------
22 // Class that defines a connexion properties.
23 // Included in AliRoot: 2003/05/02
24 // Authors: David Guez, Ivana Hrivnacova; IPN Orsay
25
26 #include "AliMpConnection.h"
27
28 ClassImp(AliMpConnection)
29
30 //_____________________________________________________________________________
31 AliMpConnection::AliMpConnection(Int_t padNum, Int_t bergNum,Int_t kaptonNum,
32                                  Int_t gassiNum) 
33   : TObject(),
34     fPadNum(padNum),
35     fBergNum(bergNum),
36     fKaptonNum(kaptonNum),
37     fGassiNum(gassiNum),
38     fOwner(0)
39 {
40 /// Standard constructor
41 }
42
43 //_____________________________________________________________________________
44 AliMpConnection::AliMpConnection(const AliMpConnection& right) 
45   : TObject(right) 
46 {
47 /// Protected copy constructor (not provided) 
48
49   Fatal("AliMpConnection", "Copy constructor not provided.");
50 }
51
52 //_____________________________________________________________________________
53 AliMpConnection::AliMpConnection() 
54   : TObject(),
55     fPadNum(-1),
56     fBergNum(-1),
57     fKaptonNum(-1),
58     fGassiNum(-1),
59     fOwner(0)
60 {
61 /// Default constructor
62 }
63
64 //_____________________________________________________________________________
65 AliMpConnection::~AliMpConnection() {
66 //  
67 }
68
69 //
70 // operators
71 //
72
73 //_____________________________________________________________________________
74 AliMpConnection& 
75 AliMpConnection::operator=(const AliMpConnection& right)
76 {
77 /// Protected assignment operator (not provided)
78
79   // check assignment to self
80   if (this == &right) return *this;
81
82   Fatal("operator =", "Assignment operator not provided.");
83     
84   return *this;  
85 }    
86