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