method GetCellXY is added
[u/mrichter/AliRoot.git] / PMD / AliPMDcludata.cxx
CommitLineData
a7aeed38 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#include "Riostream.h"
16#include "Rtypes.h"
17#include "AliPMDcludata.h"
18#include <stdio.h>
19
20ClassImp(AliPMDcludata)
21
22AliPMDcludata::AliPMDcludata()
23{
24 // Default constructor
4072caa3 25 for (Int_t i = 0; i < 15; i++)
a7aeed38 26 {
4072caa3 27 if(i < 6) fClusData[i] = 0.;
28 fClXY[i] = 0;
29
a7aeed38 30 }
31}
32// --------------------------------------------------------------------- //
4072caa3 33AliPMDcludata::AliPMDcludata(Float_t *clusdata, Int_t *clxy)
a7aeed38 34{
35 // Constructor
36 for (Int_t i = 0; i < 6; i++)
37 {
38 fClusData[i] = clusdata[i];
39 }
4072caa3 40 for (Int_t i = 0; i < 15; i++)
41 {
42 fClXY[i] = clxy[i];
43 }
44
a7aeed38 45}
46// --------------------------------------------------------------------- //
a7aeed38 47AliPMDcludata::AliPMDcludata(const AliPMDcludata &pmdcludata):
48 TObject(pmdcludata)
49{
50 //Copy Constructor
4072caa3 51 for(Int_t i=0; i<15; i++)
a7aeed38 52 {
4072caa3 53 if (i < 6) this->fClusData[i] = pmdcludata.fClusData[i];
54 this->fClXY[i] = pmdcludata.fClXY[i];
a7aeed38 55 }
56}
57// --------------------------------------------------------------------- //
58
59AliPMDcludata & AliPMDcludata::operator=(const AliPMDcludata &pmdcludata)
60{
61 // Assignment operator
62 if(this != &pmdcludata)
63 {
4072caa3 64 for(Int_t i=0; i<15; i++)
a7aeed38 65 {
4072caa3 66 if (i < 6) this->fClusData[i] = pmdcludata.fClusData[i];
67 this->fClXY[i] = pmdcludata.fClXY[i];
a7aeed38 68 }
69 }
70 return *this;
71}
72// --------------------------------------------------------------------- //
73
74AliPMDcludata::~AliPMDcludata()
75{
76 // Destructor
77}
78// --------------------------------------------------------------------- //
79Float_t AliPMDcludata::GetClusX() const
80{
81 return fClusData[0];
82}
83// --------------------------------------------------------------------- //
84Float_t AliPMDcludata::GetClusY() const
85{
86 return fClusData[1];
87}
88// --------------------------------------------------------------------- //
89Float_t AliPMDcludata::GetClusADC() const
90{
91 return fClusData[2];
92}
93// --------------------------------------------------------------------- //
94Float_t AliPMDcludata::GetClusCells() const
95{
96 return fClusData[3];
97}
98// --------------------------------------------------------------------- //
99Float_t AliPMDcludata::GetClusSigmaX() const
100{
101 return fClusData[4];
102}
103// --------------------------------------------------------------------- //
104Float_t AliPMDcludata::GetClusSigmaY() const
105{
106 return fClusData[5];
107}
108// --------------------------------------------------------------------- //
4072caa3 109Int_t AliPMDcludata::GetCellXY(Int_t i) const
110{
111 return fClXY[i];
112}
113// --------------------------------------------------------------------- //