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"
24 //====================================================================================================================================================
26 class AliMFTClusterFinder : public TObject {
30 AliMFTClusterFinder();
31 ~AliMFTClusterFinder();
33 void Init(Char_t *nameGeomFile);
35 void MakeClusterBranch(TTree *treeCluster);
36 void SetClusterTreeAddress(TTree *treeCluster);
37 void CreateClusters();
39 void DigitsToClusters(const TObjArray *pDigitList);
42 void BuildNewCluster(Int_t plane);
43 Bool_t IsCurrentDigitCompatible();
47 static const Int_t fNMaxDigitsPerCluster = 10;
48 static const Int_t fNMaxPlanes = 20;
50 TClonesArray *fClustersPerPlane[fNMaxPlanes]; // ![fNPlanes] list of clusters [per plane]
52 TClonesArray *fDigitsInCluster;
53 AliMFTDigit *fCurrentDig;
55 AliMFTSegmentation *fSegmentation;
59 AliMFTClusterFinder(const AliMFTClusterFinder &source);
60 AliMFTClusterFinder& operator=(const AliMFTClusterFinder &source);
62 ClassDef(AliMFTClusterFinder,1)
66 //====================================================================================================================================================