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 // --------------------------------------------------------------------- //
46 AliPMDcluster::AliPMDcluster(Int_t idet, Int_t ismn, Float_t *clusdata,
47 Int_t *celldataX, Int_t *celldataY):
52 for (Int_t i = 0; i < 6; i++)
54 fClusData[i] = clusdata[i];
56 for (Int_t i = 0; i < 15; i++)
58 fClusCellDataX[i] = celldataX[i];
59 fClusCellDataY[i] = celldataY[i];
63 // --------------------------------------------------------------------- //
64 AliPMDcluster::AliPMDcluster(AliPMDcluster *pmdcluster):
70 // --------------------------------------------------------------------- //
72 AliPMDcluster::AliPMDcluster(const AliPMDcluster &pmdcluster):
74 fDet(pmdcluster.fDet),
78 for(Int_t i=0; i<6; i++)
80 this->fClusData[i] = pmdcluster.fClusData[i];
82 for(Int_t i=0; i<15; i++)
84 this->fClusCellDataX[i] = pmdcluster.fClusCellDataX[i];
85 this->fClusCellDataY[i] = pmdcluster.fClusCellDataY[i];
88 // --------------------------------------------------------------------- //
90 AliPMDcluster & AliPMDcluster::operator=(const AliPMDcluster &pmdcluster)
92 // Assignment operator
93 if(this != &pmdcluster)
95 this->fDet = pmdcluster.fDet;
96 this->fSMN = pmdcluster.fSMN;
97 for(Int_t i=0; i<6; i++)
99 this->fClusData[i] = pmdcluster.fClusData[i];
101 for(Int_t i=0; i<15; i++)
103 this->fClusCellDataX[i] = pmdcluster.fClusCellDataX[i];
104 this->fClusCellDataY[i] = pmdcluster.fClusCellDataY[i];
109 // --------------------------------------------------------------------- //
111 AliPMDcluster::~AliPMDcluster()
115 // --------------------------------------------------------------------- //
117 Int_t AliPMDcluster::GetDetector() const
121 // --------------------------------------------------------------------- //
122 Int_t AliPMDcluster::GetSMN() const
126 // --------------------------------------------------------------------- //
127 Float_t AliPMDcluster::GetClusX() const
131 // --------------------------------------------------------------------- //
132 Float_t AliPMDcluster::GetClusY() const
136 // --------------------------------------------------------------------- //
137 Float_t AliPMDcluster::GetClusADC() const
141 // --------------------------------------------------------------------- //
142 Float_t AliPMDcluster::GetClusCells() const
146 // --------------------------------------------------------------------- //
147 Float_t AliPMDcluster::GetClusSigmaX() const
151 // --------------------------------------------------------------------- //
152 Float_t AliPMDcluster::GetClusSigmaY() const
156 // --------------------------------------------------------------------- //
157 Int_t AliPMDcluster::GetClusCellX(Int_t i) const
159 return fClusCellDataX[i];
161 // --------------------------------------------------------------------- //
162 Int_t AliPMDcluster::GetClusCellY(Int_t i) const
164 return fClusCellDataY[i];
166 // --------------------------------------------------------------------- //