AliWarnig suppression in AliTOF ctr
[u/mrichter/AliRoot.git] / PMD / AliPMDdigit.cxx
CommitLineData
b9746a9e 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 **************************************************************************/
baf230f7 15//-----------------------------------------------------//
16// //
17// Date : August 05 2003 //
18// //
19// Store digits for ALICE-PMD //
20// //
21//-----------------------------------------------------//
b9746a9e 22#include "Riostream.h"
23#include "Rtypes.h"
baf230f7 24#include "AliPMDdigit.h"
25#include <stdio.h>
26
27ClassImp(AliPMDdigit)
28
29AliPMDdigit::AliPMDdigit()
30{
b9746a9e 31 // Default Constructor
baf230f7 32 fTrNumber = 0;
33 fDet = 0;
34 fSMNumber = 0;
5e6a9312 35 fRow = 0;
36 fColumn = 0;
baf230f7 37 fADC = 0.;
38}
39
40AliPMDdigit::AliPMDdigit(Int_t trnumber, Int_t det, Int_t smnumber,
5e6a9312 41 Int_t irow, Int_t icol, Float_t adc)
baf230f7 42{
b9746a9e 43 // Constructor
baf230f7 44 fTrNumber = trnumber;
45 fDet = det;
46 fSMNumber = smnumber;
5e6a9312 47 fRow = irow;
48 fColumn = icol;
baf230f7 49 fADC = adc;
50}
b9746a9e 51AliPMDdigit::AliPMDdigit(const AliPMDdigit& pmddigit):TObject(pmddigit) {
52 //Copy Constructor
53 if(&pmddigit == this) return;
54 this->fTrNumber = pmddigit.fTrNumber;
55 this->fDet = pmddigit.fDet;
56 this->fSMNumber = pmddigit.fSMNumber;
5e6a9312 57 this->fRow = pmddigit.fRow;
58 this->fColumn = pmddigit.fColumn;
b9746a9e 59 this->fADC = pmddigit.fADC;
60 return;
61}
62AliPMDdigit & AliPMDdigit::operator=(const AliPMDdigit& pmddigit) {
63 //Assignment operator
64 if(&pmddigit == this) return *this;
65 this->fTrNumber = pmddigit.fTrNumber;
66 this->fDet = pmddigit.fDet;
67 this->fSMNumber = pmddigit.fSMNumber;
5e6a9312 68 this->fRow = pmddigit.fRow;
69 this->fColumn = pmddigit.fColumn;
b9746a9e 70 this->fADC = pmddigit.fADC;
71 return *this;
72}
baf230f7 73AliPMDdigit::~AliPMDdigit()
74{
b9746a9e 75 // Default destructor
baf230f7 76}
77Int_t AliPMDdigit::GetTrackNumber() const
78{
79 return fTrNumber;
80}
81Int_t AliPMDdigit::GetDetector() const
82{
83 return fDet;
84}
85Int_t AliPMDdigit::GetSMNumber() const
86{
87 return fSMNumber;
88}
5e6a9312 89Int_t AliPMDdigit::GetRow() const
baf230f7 90{
5e6a9312 91 return fRow;
92}
93Int_t AliPMDdigit::GetColumn() const
94{
95 return fColumn;
baf230f7 96}
97Float_t AliPMDdigit::GetADC() const
98{
99 return fADC;
100}
101