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