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
36 for (Int_t i = 0; i < 5; i++)
41 AliPMDcluster::AliPMDcluster(Int_t idet, Int_t ismn, Float_t *clusdata)
46 for (Int_t i = 0; i < 5; i++)
48 fClusData[i] = clusdata[i];
51 AliPMDcluster::AliPMDcluster(const AliPMDcluster &pmdcluster):TObject(pmdcluster)
54 if(&pmdcluster == this) return;
55 this->fDet = pmdcluster.fDet;
56 this->fSMN = pmdcluster.fSMN;
57 for(Int_t i=0; i<5; i++)
59 this->fClusData[i] = pmdcluster.fClusData[i];
64 AliPMDcluster & AliPMDcluster::operator=(const AliPMDcluster &pmdcluster)
66 // Assignment operator
67 if(&pmdcluster == this) return *this;
68 this->fDet = pmdcluster.fDet;
69 this->fSMN = pmdcluster.fSMN;
70 for(Int_t i=0; i<5; i++)
72 this->fClusData[i] = pmdcluster.fClusData[i];
77 AliPMDcluster::~AliPMDcluster()
82 Int_t AliPMDcluster::GetDetector() const
86 Int_t AliPMDcluster::GetSMN() const
90 Float_t AliPMDcluster::GetClusX() const
94 Float_t AliPMDcluster::GetClusY() const
98 Float_t AliPMDcluster::GetClusADC() const
102 Float_t AliPMDcluster::GetClusCells() const
106 Float_t AliPMDcluster::GetClusRadius() const