]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PMD/AliPMDcell.cxx
Merge branch 'master' of https://git.cern.ch/reps/AliRoot
[u/mrichter/AliRoot.git] / PMD / AliPMDcell.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 //                                                     //
17 //  Date   : August 05 2003                            //
18 //                                                     //
19 //  Store cell/track info which is used to assign      //
20 //  the correct track number to a multiple hit cell    //
21 //                                                     //
22 //-----------------------------------------------------//
23
24 #include "Riostream.h"
25 #include "Rtypes.h"
26 #include "AliPMDcell.h"
27
28 ClassImp(AliPMDcell)
29
30 AliPMDcell::AliPMDcell():
31   fTrNumber(0),
32   fSMNumber(0),
33   fXpos(0),
34   fYpos(0),
35   fEdep(0.)
36 {
37   // Standard constructor
38 }
39
40 AliPMDcell::AliPMDcell(Int_t trnumber, Int_t smnumber, 
41                        Int_t xpos, Int_t ypos, Float_t edep):
42   fTrNumber(trnumber),
43   fSMNumber(smnumber),
44   fXpos(xpos),
45   fYpos(ypos),
46   fEdep(edep)
47 {
48   // Constructor
49 }
50
51 AliPMDcell::AliPMDcell(AliPMDcell *pmdcell):
52   fTrNumber(0),
53   fSMNumber(0),
54   fXpos(0),
55   fYpos(0),
56   fEdep(0.)
57 {
58   *this = *pmdcell;
59 }
60
61 AliPMDcell::AliPMDcell(const AliPMDcell& source):
62   TObject(source),
63   fTrNumber(source.fTrNumber),
64   fSMNumber(source.fSMNumber),
65   fXpos(source.fXpos),
66   fYpos(source.fYpos),
67   fEdep(source.fEdep)
68 {
69   //Copy Constructor 
70 }
71
72 AliPMDcell& AliPMDcell::operator=(const AliPMDcell& source)
73 {
74   //Copy Constructor 
75   if(this != &source)
76     {
77       fTrNumber = source.fTrNumber;
78       fSMNumber = source.fSMNumber;
79       fXpos = source.fXpos;
80       fYpos = source.fYpos;
81       fEdep = source.fEdep;
82     }
83   return *this;
84 }
85
86 AliPMDcell::~AliPMDcell()
87 {
88   // Default destructor
89 }
90
91 Int_t AliPMDcell::GetTrackNumber() const
92 {
93   return fTrNumber;
94 }
95 Int_t AliPMDcell::GetSMNumber() const
96 {
97   return fSMNumber;
98 }
99 Int_t AliPMDcell::GetX() const
100 {
101   return fXpos;
102 }
103 Int_t AliPMDcell::GetY() const
104 {
105   return fYpos;
106 }
107
108 Float_t AliPMDcell::GetEdep() const
109 {
110   return fEdep;
111 }
112