1 /***************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 //-----------------------------------------------------//
17 // Date : August 05 2003 //
19 // Store cluster information //
21 //-----------------------------------------------------//
22 #include "Riostream.h"
24 #include "AliPMDcluster.h"
27 ClassImp(AliPMDcluster)
29 AliPMDcluster::AliPMDcluster():
33 // Default constructor
34 for (Int_t i = 0; i < 6; i++)
38 for (Int_t i = 0; i < 15; i++)
40 fClusCellDataX[i] = 0;
41 fClusCellDataY[i] = 0;
45 AliPMDcluster::AliPMDcluster(Int_t idet, Int_t ismn, Float_t *clusdata,
46 Int_t *celldataX, Int_t *celldataY)
51 for (Int_t i = 0; i < 6; i++)
53 fClusData[i] = clusdata[i];
55 for (Int_t i = 0; i < 15; i++)
57 fClusCellDataX[i] = celldataX[i];
58 fClusCellDataY[i] = celldataY[i];
62 AliPMDcluster::AliPMDcluster(const AliPMDcluster &pmdcluster):TObject(pmdcluster)
65 if(&pmdcluster == this) return;
66 this->fDet = pmdcluster.fDet;
67 this->fSMN = pmdcluster.fSMN;
68 for(Int_t i=0; i<6; i++)
70 this->fClusData[i] = pmdcluster.fClusData[i];
72 for(Int_t i=0; i<15; i++)
74 this->fClusCellDataX[i] = pmdcluster.fClusCellDataX[i];
75 this->fClusCellDataY[i] = pmdcluster.fClusCellDataY[i];
80 AliPMDcluster & AliPMDcluster::operator=(const AliPMDcluster &pmdcluster)
82 // Assignment operator
83 if(&pmdcluster == this) return *this;
84 this->fDet = pmdcluster.fDet;
85 this->fSMN = pmdcluster.fSMN;
86 for(Int_t i=0; i<6; i++)
88 this->fClusData[i] = pmdcluster.fClusData[i];
90 for(Int_t i=0; i<15; i++)
92 this->fClusCellDataX[i] = pmdcluster.fClusCellDataX[i];
93 this->fClusCellDataY[i] = pmdcluster.fClusCellDataY[i];
98 AliPMDcluster::~AliPMDcluster()
103 Int_t AliPMDcluster::GetDetector() const
107 Int_t AliPMDcluster::GetSMN() const
111 Float_t AliPMDcluster::GetClusX() const
115 Float_t AliPMDcluster::GetClusY() const
119 Float_t AliPMDcluster::GetClusADC() const
123 Float_t AliPMDcluster::GetClusCells() const
127 Float_t AliPMDcluster::GetClusSigmaX() const
131 Float_t AliPMDcluster::GetClusSigmaY() const
135 Int_t AliPMDcluster::GetClusCellX(Int_t i) const
137 return fClusCellDataX[i];
139 Int_t AliPMDcluster::GetClusCellY(Int_t i) const
141 return fClusCellDataY[i];