coverity fix
[u/mrichter/AliRoot.git] / TPC / AliTPCvtpr.cxx
CommitLineData
9a1e27fe 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: AliTPCcluster.cxx,v 1.7 2008/01/22 17:24:53 matyja Exp $ */
17
18//-----------------------------------------------------------------
19// TPC cordinate Class
20//
21// Origin: Adam Matyja, INP PAN, adam.matyja@ifj.edu.pl
22//-----------------------------------------------------------------
23
24#include "AliTPCvtpr.h"
25
26ClassImp(AliTPCvtpr)
27
12ed89e4 28AliTPCvtpr::AliTPCvtpr():
29 TObject(),
30 fAdc(0),
9a1e27fe 31 fTime(0),
32 fPad(0),
b67657b5 33 fRow(0),
34 fX(0),
35 fY(0),
36 fT(0)
9a1e27fe 37{
38//
39// constructor
40//
41}
42
12ed89e4 43AliTPCvtpr::AliTPCvtpr(Short_t max,Short_t nt,Short_t np,Short_t nr,Double_t x,Double_t y,Double_t t):
44 TObject(),
45 fAdc(0),
46 fTime(0),
47 fPad(0),
48 fRow(0),
49 fX(0),
50 fY(0),
51 fT(0)
9a1e27fe 52{
53//
54// another constructor
55//
56 fAdc=max;
57 fTime=nt;
58 fPad=np;
59 fRow=nr;
b67657b5 60 fX=x;
61 fY=y;
62 fT=t;
9a1e27fe 63}
64
12ed89e4 65AliTPCvtpr::AliTPCvtpr(const AliTPCvtpr & param):
66 TObject(param),
67 fAdc(0),
68 fTime(0),
69 fPad(0),
70 fRow(0),
71 fX(0),
72 fY(0),
73 fT(0)
9a1e27fe 74{
75//
76// copy constructor
77//
78 fAdc = param.fAdc;
79 fTime = param.fTime;
80 fPad = param.fPad;
81 fRow = param.fRow;
b67657b5 82 fX = param.fX;
83 fY = param.fY;
84 fT = param.fT;
9a1e27fe 85}
86
87AliTPCvtpr::~AliTPCvtpr()
88{
89 //
90 // destructor
91 //
92}
93
94AliTPCvtpr & AliTPCvtpr::operator = (const AliTPCvtpr & param)
95{
96 fAdc = param.fAdc;
97 fTime = param.fTime;
98 fPad = param.fPad;
99 fRow = param.fRow;
b67657b5 100 fX = param.fX;
101 fY = param.fY;
102 fT = param.fT;
103
9a1e27fe 104 return (*this);
105}