X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=PMD%2FAliPMDcluster.cxx;h=9fe697f01a31e02b7bd9c58d914a702c3942bf0b;hb=17a3c0727c9eb6eb5390ec58cb4a74b27475ef36;hp=8b009e00de6f1b53b840dadb4c1dca80a809b806;hpb=a918d77a45002b1d50a0b24c50622d3ae6822114;p=u%2Fmrichter%2FAliRoot.git diff --git a/PMD/AliPMDcluster.cxx b/PMD/AliPMDcluster.cxx index 8b009e00de6..9fe697f01a3 100644 --- a/PMD/AliPMDcluster.cxx +++ b/PMD/AliPMDcluster.cxx @@ -1,3 +1,17 @@ +/*************************************************************************** + * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * + * * + * Author: The ALICE Off-line Project. * + * Contributors are mentioned in the code where appropriate. * + * * + * Permission to use, copy, modify and distribute this software and its * + * documentation strictly for non-commercial purposes is hereby granted * + * without fee, provided that the above copyright notice appears in all * + * copies and that both the copyright notice and this permission notice * + * appear in the supporting documentation. The authors make no claims * + * about the suitability of this software for any purpose. It is * + * provided "as is" without express or implied warranty. * + **************************************************************************/ //-----------------------------------------------------// // // // Date : August 05 2003 // @@ -12,30 +26,54 @@ ClassImp(AliPMDcluster) -AliPMDcluster::AliPMDcluster() +AliPMDcluster::AliPMDcluster(): + fDet(0), + fSMN(0) { // Default constructor - for (Int_t i = 0; i < 5; i++) + for (Int_t i = 0; i < 6; i++) { fClusData[i] = 0.; } + for (Int_t i = 0; i < 15; i++) + { + fClusCellDataX[i] = 0; + fClusCellDataY[i] = 0; + } + } -AliPMDcluster::AliPMDcluster(Float_t *clusdata) +AliPMDcluster::AliPMDcluster(Int_t idet, Int_t ismn, Float_t *clusdata, + Int_t *celldataX, Int_t *celldataY) { // Constructor - for (Int_t i = 0; i < 5; i++) + fDet = idet; + fSMN = ismn; + for (Int_t i = 0; i < 6; i++) { fClusData[i] = clusdata[i]; } + for (Int_t i = 0; i < 15; i++) + { + fClusCellDataX[i] = celldataX[i]; + fClusCellDataY[i] = celldataY[i]; + } + } AliPMDcluster::AliPMDcluster(const AliPMDcluster &pmdcluster):TObject(pmdcluster) { //Copy Constructor if(&pmdcluster == this) return; - for(Int_t i=0; i<5; i++) + this->fDet = pmdcluster.fDet; + this->fSMN = pmdcluster.fSMN; + for(Int_t i=0; i<6; i++) { this->fClusData[i] = pmdcluster.fClusData[i]; } + for(Int_t i=0; i<15; i++) + { + this->fClusCellDataX[i] = pmdcluster.fClusCellDataX[i]; + this->fClusCellDataY[i] = pmdcluster.fClusCellDataY[i]; + } return; } @@ -43,10 +81,17 @@ AliPMDcluster & AliPMDcluster::operator=(const AliPMDcluster &pmdcluster) { // Assignment operator if(&pmdcluster == this) return *this; - for(Int_t i=0; i<5; i++) + this->fDet = pmdcluster.fDet; + this->fSMN = pmdcluster.fSMN; + for(Int_t i=0; i<6; i++) { this->fClusData[i] = pmdcluster.fClusData[i]; } + for(Int_t i=0; i<15; i++) + { + this->fClusCellDataX[i] = pmdcluster.fClusCellDataX[i]; + this->fClusCellDataY[i] = pmdcluster.fClusCellDataY[i]; + } return *this; } @@ -54,6 +99,15 @@ AliPMDcluster::~AliPMDcluster() { // Destructor } + +Int_t AliPMDcluster::GetDetector() const +{ + return fDet; +} +Int_t AliPMDcluster::GetSMN() const +{ + return fSMN; +} Float_t AliPMDcluster::GetClusX() const { return fClusData[0]; @@ -70,9 +124,19 @@ Float_t AliPMDcluster::GetClusCells() const { return fClusData[3]; } -Float_t AliPMDcluster::GetClusRadius() const +Float_t AliPMDcluster::GetClusSigmaX() const { return fClusData[4]; } - - +Float_t AliPMDcluster::GetClusSigmaY() const +{ + return fClusData[5]; +} +Int_t AliPMDcluster::GetClusCellX(Int_t i) const +{ + return fClusCellDataX[i]; +} +Int_t AliPMDcluster::GetClusCellY(Int_t i) const +{ + return fClusCellDataY[i]; +}