Compiler Warning Removed
[u/mrichter/AliRoot.git] / PMD / AliPMDcluster.cxx
CommitLineData
1cbf30ea 1//-----------------------------------------------------//
2// //
3// Date : August 05 2003 //
4// //
5// Store cluster information //
6// //
7//-----------------------------------------------------//
a918d77a 8#include "Riostream.h"
9#include "Rtypes.h"
1cbf30ea 10#include "AliPMDcluster.h"
11#include <stdio.h>
12
13ClassImp(AliPMDcluster)
14
15AliPMDcluster::AliPMDcluster()
16{
a918d77a 17 // Default constructor
1cbf30ea 18 for (Int_t i = 0; i < 5; i++)
19 {
20 fClusData[i] = 0.;
21 }
22}
23AliPMDcluster::AliPMDcluster(Float_t *clusdata)
24{
a918d77a 25 // Constructor
1cbf30ea 26 for (Int_t i = 0; i < 5; i++)
27 {
28 fClusData[i] = clusdata[i];
29 }
30}
a918d77a 31AliPMDcluster::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
42AliPMDcluster & AliPMDcluster::operator=(const AliPMDcluster &pmdcluster)
1cbf30ea 43{
a918d77a 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}
1cbf30ea 52
a918d77a 53AliPMDcluster::~AliPMDcluster()
54{
55 // Destructor
1cbf30ea 56}
57Float_t AliPMDcluster::GetClusX() const
58{
59 return fClusData[0];
60}
61Float_t AliPMDcluster::GetClusY() const
62{
63 return fClusData[1];
64}
65Float_t AliPMDcluster::GetClusADC() const
66{
67 return fClusData[2];
68}
69Float_t AliPMDcluster::GetClusCells() const
70{
71 return fClusData[3];
72}
73Float_t AliPMDcluster::GetClusRadius() const
74{
75 return fClusData[4];
76}
77
78