variables names changed according to ALICE convention
[u/mrichter/AliRoot.git] / PMD / AliPMDcluster.cxx
1 //-----------------------------------------------------//
2 //                                                     //
3 //  Date   : August 05 2003                            //
4 //                                                     //
5 //  Store cluster information                          //
6 //                                                     //
7 //-----------------------------------------------------//
8 #include "Riostream.h"
9 #include "Rtypes.h"
10 #include "AliPMDcluster.h"
11 #include <stdio.h>
12
13 ClassImp(AliPMDcluster)
14
15 AliPMDcluster::AliPMDcluster()
16 {
17   // Default constructor
18   for (Int_t i = 0; i < 5; i++)
19     {
20       fClusData[i] = 0.;
21     }
22 }
23 AliPMDcluster::AliPMDcluster(Float_t *clusdata)
24 {
25   // Constructor
26   for (Int_t i = 0; i < 5; i++)
27     {
28       fClusData[i] = clusdata[i];
29     }
30 }
31 AliPMDcluster::AliPMDcluster(const AliPMDcluster &pmdcluster):TObject(pmdcluster)
32 {
33   //Copy Constructor 
34   if(&pmdcluster == this) return;
35   for(Int_t i=0; i<5; i++)
36     {
37       this->fClusData[i] = pmdcluster.fClusData[i];
38     }
39   return;
40 }
41
42 AliPMDcluster & AliPMDcluster::operator=(const AliPMDcluster &pmdcluster)
43 {
44   // Assignment operator 
45   if(&pmdcluster == this) return *this;
46   for(Int_t i=0; i<5; i++)
47     {
48       this->fClusData[i] = pmdcluster.fClusData[i];
49     }
50   return *this;
51 }
52
53 AliPMDcluster::~AliPMDcluster()
54 {
55   // Destructor
56 }
57 Float_t AliPMDcluster::GetClusX() const
58 {
59   return fClusData[0];
60 }
61 Float_t AliPMDcluster::GetClusY() const
62 {
63   return fClusData[1];
64 }
65 Float_t AliPMDcluster::GetClusADC() const
66 {
67   return fClusData[2];
68 }
69 Float_t AliPMDcluster::GetClusCells() const
70 {
71   return fClusData[3];
72 }
73 Float_t AliPMDcluster::GetClusRadius() const
74 {
75   return fClusData[4];
76 }
77
78