1 /* Copyright(c) 2004-2006, ALICE Experiment at CERN, All rights reserved. *
2 * See cxx source for full Copyright notice */
4 //====================================================================================================================================================
6 // Class for finding and building the clusters of the ALICE Muon Forward Tracker
8 // Contact author: antonio.uras@cern.ch
10 //====================================================================================================================================================
12 #ifndef AliMFTClusterFinder_H
13 #define AliMFTClusterFinder_H
16 #include "TObjArray.h"
17 #include "TClonesArray.h"
18 #include "AliMFTDigit.h"
19 #include "AliMFTCluster.h"
20 #include "AliMFTSegmentation.h"
23 #include "AliMFTConstants.h"
25 //====================================================================================================================================================
27 class AliMFTClusterFinder : public TObject {
31 AliMFTClusterFinder();
32 ~AliMFTClusterFinder();
34 void Init(const Char_t *nameGeomFile);
36 void MakeClusterBranch(TTree *treeCluster);
37 void SetClusterTreeAddress(TTree *treeCluster);
38 void CreateClusters();
40 void DigitsToClusters(const TObjArray *pDigitList);
46 static const Int_t fNMaxDigitsPerCluster = AliMFTConstants::fNMaxDigitsPerCluster;
47 static const Int_t fNMaxPlanes = AliMFTConstants::fNMaxPlanes;
48 static const Double_t fCutForAvailableDigits;
49 static const Double_t fCutForAttachingDigits;
51 TClonesArray *fClustersPerPlane[fNMaxPlanes]; // ![fNPlanes] list of clusters [per plane]
53 TClonesArray *fDigitsInCluster;
54 AliMFTDigit *fCurrentDigit;
55 AliMFTCluster *fCurrentCluster;
57 AliMFTSegmentation *fSegmentation;
61 AliMFTClusterFinder(const AliMFTClusterFinder &source);
62 AliMFTClusterFinder& operator=(const AliMFTClusterFinder &source);
64 ClassDef(AliMFTClusterFinder,1)
68 //====================================================================================================================================================