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()
67 //__________________________________________________________________________
68 AliITSClusterFinder::AliITSClusterFinder(const AliITSClusterFinder &source){
70 if(&source == this) return;
71 this->fDigits = source.fDigits;
72 this->fNdigits = source.fNdigits;
73 this->fResponse = source.fResponse;
74 this->fSegmentation = source.fSegmentation;
75 this->fNRawClusters = source.fNRawClusters;
76 this->fMap = source.fMap;
77 this->fNperMax = source.fNperMax;
78 this->fDeclusterFlag = source.fDeclusterFlag;
79 this->fClusterSize = source.fClusterSize;
80 this->fNPeaks = source.fNPeaks;
84 //_________________________________________________________________________
86 AliITSClusterFinder::operator=(const AliITSClusterFinder &source) {
87 // Assignment operator
88 if(&source == this) return *this;
89 this->fDigits = source.fDigits;
90 this->fNdigits = source.fNdigits;
91 this->fResponse = source.fResponse;
92 this->fSegmentation = source.fSegmentation;
93 this->fNRawClusters = source.fNRawClusters;
94 this->fMap = source.fMap;
95 this->fNperMax = source.fNperMax;
96 this->fDeclusterFlag = source.fDeclusterFlag;
97 this->fClusterSize = source.fClusterSize;
98 this->fNPeaks = source.fNPeaks;
102 //----------------------------------------------------------
103 void AliITSClusterFinder::AddCluster(Int_t branch, AliITSRawCluster *c)
106 // Add a raw cluster copy to the list
108 AliITS *iTS=(AliITS*)gAlice->GetModule("ITS");
109 iTS->AddCluster(branch,c);
115 //----------------------------------------------------------
116 void AliITSClusterFinder::AddCluster(Int_t branch, AliITSRawCluster *c, AliITSRecPoint &rp)
119 // Add a raw cluster copy to the list
121 AliITS *iTS=(AliITS*)gAlice->GetModule("ITS");
122 iTS->AddCluster(branch,c);
124 iTS->AddRecPoint(rp);