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 **************************************************************************/
17 #include "AliITSClusterFinder.h"
24 #include <TPostScript.h>
27 class AliITSRecPointNew;
29 //----------------------------------------------------------
31 //----------------------------------------------------------
33 ClassImp(AliITSClusterFinder)
35 AliITSClusterFinder::AliITSClusterFinder
36 (AliITSsegmentation *seg, AliITSresponse *response, TClonesArray *digits)
44 fNdigits = fDigits->GetEntriesFast();
55 //----------------------------------------------------------
56 AliITSClusterFinder::AliITSClusterFinder()
75 //__________________________________________________________________________
76 AliITSClusterFinder::AliITSClusterFinder(const AliITSClusterFinder &source){
78 if(&source == this) return;
79 this->fDigits = source.fDigits;
80 this->fNdigits = source.fNdigits;
81 this->fResponse = source.fResponse;
82 this->fSegmentation = source.fSegmentation;
83 this->fNRawClusters = source.fNRawClusters;
84 this->fMap = source.fMap;
85 this->fNperMax = source.fNperMax;
86 this->fDeclusterFlag = source.fDeclusterFlag;
87 this->fClusterSize = source.fClusterSize;
88 this->fNPeaks = source.fNPeaks;
92 //_________________________________________________________________________
94 AliITSClusterFinder::operator=(const AliITSClusterFinder &source) {
95 // Assignment operator
96 if(&source == this) return *this;
97 this->fDigits = source.fDigits;
98 this->fNdigits = source.fNdigits;
99 this->fResponse = source.fResponse;
100 this->fSegmentation = source.fSegmentation;
101 this->fNRawClusters = source.fNRawClusters;
102 this->fMap = source.fMap;
103 this->fNperMax = source.fNperMax;
104 this->fDeclusterFlag = source.fDeclusterFlag;
105 this->fClusterSize = source.fClusterSize;
106 this->fNPeaks = source.fNPeaks;
110 //----------------------------------------------------------
111 void AliITSClusterFinder::AddCluster(Int_t branch, AliITSRawCluster *c)
114 // Add a raw cluster copy to the list
116 AliITS *iTS=(AliITS*)gAlice->GetModule("ITS");
117 iTS->AddCluster(branch,c);