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 **************************************************************************/
16 #include "AliITSClusterFinder.h"
20 //----------------------------------------------------------
22 //----------------------------------------------------------
24 ClassImp(AliITSClusterFinder)
26 AliITSClusterFinder::AliITSClusterFinder
27 (AliITSsegmentation *seg, AliITSresponse *response, TClonesArray *digits)
35 fNdigits = fDigits->GetEntriesFast();
46 //----------------------------------------------------------
47 AliITSClusterFinder::AliITSClusterFinder()
66 //__________________________________________________________________________
67 AliITSClusterFinder::AliITSClusterFinder(const AliITSClusterFinder &source){
69 if(&source == this) return;
70 this->fDigits = source.fDigits;
71 this->fNdigits = source.fNdigits;
72 this->fResponse = source.fResponse;
73 this->fSegmentation = source.fSegmentation;
74 this->fNRawClusters = source.fNRawClusters;
75 this->fMap = source.fMap;
76 this->fNperMax = source.fNperMax;
77 this->fDeclusterFlag = source.fDeclusterFlag;
78 this->fClusterSize = source.fClusterSize;
79 this->fNPeaks = source.fNPeaks;
83 //_________________________________________________________________________
85 AliITSClusterFinder::operator=(const AliITSClusterFinder &source) {
86 // Assignment operator
87 if(&source == this) return *this;
88 this->fDigits = source.fDigits;
89 this->fNdigits = source.fNdigits;
90 this->fResponse = source.fResponse;
91 this->fSegmentation = source.fSegmentation;
92 this->fNRawClusters = source.fNRawClusters;
93 this->fMap = source.fMap;
94 this->fNperMax = source.fNperMax;
95 this->fDeclusterFlag = source.fDeclusterFlag;
96 this->fClusterSize = source.fClusterSize;
97 this->fNPeaks = source.fNPeaks;
101 //----------------------------------------------------------
102 void AliITSClusterFinder::AddCluster(Int_t branch, AliITSRawCluster *c)
105 // Add a raw cluster copy to the list
107 AliITS *iTS=(AliITS*)gAlice->GetModule("ITS");
108 iTS->AddCluster(branch,c);