]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PMD/AliPMDcell.cxx
Macro to read Digits tree
[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 {
32   // Standard constructor
33   fTrNumber = 0;
34   fSMNumber = 0;
35   fXpos     = 0;
36   fYpos     = 0;
37   fEdep     = 0.;
38 }
39
40 AliPMDcell::AliPMDcell(Int_t trnumber, Int_t smnumber, 
41                          Int_t xpos, Int_t ypos, Float_t edep)
42 {
43   // Constructor
44   fTrNumber = trnumber;
45   fSMNumber = smnumber;
46   fXpos     = xpos;
47   fYpos     = ypos;
48   fEdep     = edep;
49
50 }
51
52 AliPMDcell::AliPMDcell(const AliPMDcell& source):TObject(source) {
53   //Copy Constructor 
54   if(&source == this) return;
55   this->fTrNumber = source.fTrNumber;
56   this->fSMNumber = source.fSMNumber;
57   this->fXpos = source.fXpos;
58   this->fYpos = source.fYpos;
59   this->fEdep = source.fEdep;
60   return;
61 }
62
63 AliPMDcell& AliPMDcell::operator=(const AliPMDcell& source) {
64   //Copy Constructor 
65   if(&source == this) return *this;
66   this->fTrNumber = source.fTrNumber;
67   this->fSMNumber = source.fSMNumber;
68   this->fXpos = source.fXpos;
69   this->fYpos = source.fYpos;
70   this->fEdep = source.fEdep;
71   return *this;
72 }
73
74 AliPMDcell::~AliPMDcell()
75 {
76   // Default destructor
77 }
78
79 Int_t AliPMDcell::GetTrackNumber() const
80 {
81   return fTrNumber;
82 }
83 Int_t AliPMDcell::GetSMNumber() const
84 {
85   return fSMNumber;
86 }
87 Int_t AliPMDcell::GetX() const
88 {
89   return fXpos;
90 }
91 Int_t AliPMDcell::GetY() const
92 {
93   return fYpos;
94 }
95
96 Float_t AliPMDcell::GetEdep() const
97 {
98   return fEdep;
99 }
100