Typo corrected (Sun)
[u/mrichter/AliRoot.git] / PMD / AliPMDcell.cxx
CommitLineData
24882f83 1//-----------------------------------------------------//
2// //
3// Date : August 05 2003 //
4// //
5// Store cell/track info which is used to assign //
6// the correct track number to a multiple hit cell //
7// //
8//-----------------------------------------------------//
9
36031625 10#include "Riostream.h"
11#include "Rtypes.h"
12
24882f83 13#include "AliPMDcell.h"
14
15ClassImp(AliPMDcell)
16
17AliPMDcell::AliPMDcell()
18{
36031625 19 // Standard constructor
24882f83 20 fTrNumber = 0;
21 fSMNumber = 0;
22 fXpos = 0;
23 fYpos = 0;
24 fEdep = 0.;
25}
26
27AliPMDcell::AliPMDcell(Int_t trnumber, Int_t smnumber,
28 Int_t xpos, Int_t ypos, Float_t edep)
29{
36031625 30 // Constructor
24882f83 31 fTrNumber = trnumber;
32 fSMNumber = smnumber;
33 fXpos = xpos;
34 fYpos = ypos;
35 fEdep = edep;
36
37}
af6d4455 38
39AliPMDcell::AliPMDcell(const AliPMDcell& source):TObject(source) {
40 //Copy Constructor
41 if(&source == this) return;
42 this->fTrNumber = source.fTrNumber;
43 this->fSMNumber = source.fSMNumber;
44 this->fXpos = source.fXpos;
45 this->fYpos = source.fYpos;
46 this->fEdep = source.fEdep;
47 return;
48}
49
50AliPMDcell& AliPMDcell::operator=(const AliPMDcell& source) {
51 //Copy Constructor
52 if(&source == this) return *this;
53 this->fTrNumber = source.fTrNumber;
54 this->fSMNumber = source.fSMNumber;
55 this->fXpos = source.fXpos;
56 this->fYpos = source.fYpos;
57 this->fEdep = source.fEdep;
58 return *this;
59}
60
24882f83 61AliPMDcell::~AliPMDcell()
62{
36031625 63 // Default destructor
24882f83 64}
65
66Int_t AliPMDcell::GetTrackNumber() const
67{
68 return fTrNumber;
69}
70Int_t AliPMDcell::GetSMNumber() const
71{
72 return fSMNumber;
73}
74Int_t AliPMDcell::GetX() const
75{
76 return fXpos;
77}
78Int_t AliPMDcell::GetY() const
79{
80 return fYpos;
81}
82
83Float_t AliPMDcell::GetEdep() const
84{
85 return fEdep;
86}
87