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 ClassImp(AliITSClusterFinder)
22 //----------------------------------------------------------------------
23 AliITSClusterFinder::AliITSClusterFinder(){
24 // default cluster finder
37 //----------------------------------------------------------------------
38 AliITSClusterFinder::AliITSClusterFinder(AliITSsegmentation *seg,
39 AliITSresponse *response,
40 TClonesArray *digits){
47 fNdigits = fDigits->GetEntriesFast();
57 //----------------------------------------------------------------------
58 AliITSClusterFinder::~AliITSClusterFinder(){
59 // destructor cluster finder
61 // Zero local pointers. Other classes own these pointers.
73 //__________________________________________________________________________
74 AliITSClusterFinder::AliITSClusterFinder(const AliITSClusterFinder &source){
76 if(&source == this) return;
77 this->fDigits = source.fDigits;
78 this->fNdigits = source.fNdigits;
79 this->fResponse = source.fResponse;
80 this->fSegmentation = source.fSegmentation;
81 this->fNRawClusters = source.fNRawClusters;
82 this->fMap = source.fMap;
83 this->fNperMax = source.fNperMax;
84 this->fDeclusterFlag = source.fDeclusterFlag;
85 this->fClusterSize = source.fClusterSize;
86 this->fNPeaks = source.fNPeaks;
89 //______________________________________________________________________
90 AliITSClusterFinder& AliITSClusterFinder::operator=(const AliITSClusterFinder &source) {
91 // Assignment operator
93 if(&source == this) return *this;
94 this->fDigits = source.fDigits;
95 this->fNdigits = source.fNdigits;
96 this->fResponse = source.fResponse;
97 this->fSegmentation = source.fSegmentation;
98 this->fNRawClusters = source.fNRawClusters;
99 this->fMap = source.fMap;
100 this->fNperMax = source.fNperMax;
101 this->fDeclusterFlag = source.fDeclusterFlag;
102 this->fClusterSize = source.fClusterSize;
103 this->fNPeaks = source.fNPeaks;
106 //----------------------------------------------------------------------
107 void AliITSClusterFinder::AddCluster(Int_t branch, AliITSRawCluster *c){
108 // Add a raw cluster copy to the list
110 AliITS *iTS=(AliITS*)gAlice->GetModule("ITS");
111 iTS->AddCluster(branch,c);
114 //----------------------------------------------------------------------
115 void AliITSClusterFinder::AddCluster(Int_t branch, AliITSRawCluster *c,
117 // Add a raw cluster copy to the list
119 AliITS *iTS=(AliITS*)gAlice->GetModule("ITS");
120 iTS->AddCluster(branch,c);
122 iTS->AddRecPoint(rp);