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