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