]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MFT/AliMFTClusterFinder.h
Updated MFT version, some problems from the previous attempt are fixed (Antonio)
[u/mrichter/AliRoot.git] / MFT / AliMFTClusterFinder.h
index c464a9f472bf4cc90bce71090269beac63d0c12c..a8e9b4e51e497b8267384a26a5c7b8bdddb56fb1 100644 (file)
@@ -20,6 +20,7 @@
 #include "AliMFTSegmentation.h"
 #include "TTree.h"
 #include "TMath.h"
+#include "AliMFTConstants.h"
 
 //====================================================================================================================================================
 
@@ -30,7 +31,7 @@ public:
   AliMFTClusterFinder();
   ~AliMFTClusterFinder();
 
-  void Init(const Char_t *nameGeomFile);
+  void Init(Char_t *nameGeomFile);
   
   void MakeClusterBranch(TTree *treeCluster);
   void SetClusterTreeAddress(TTree *treeCluster);
@@ -39,18 +40,19 @@ public:
   void DigitsToClusters(const TObjArray *pDigitList);
 
   void StartEvent();
-  void BuildNewCluster(Int_t plane);
-  Bool_t IsCurrentDigitCompatible();
 
 private:
  
-  static const Int_t fNMaxDigitsPerCluster = 10;
-  static const Int_t fNMaxPlanes = 20;
+  static const Int_t fNMaxDigitsPerCluster = AliMFTConstants::fNMaxDigitsPerCluster;
+  static const Int_t fNMaxPlanes = AliMFTConstants::fNMaxPlanes;
+  static const Double_t fCutForAvailableDigits;
+  static const Double_t fCutForAttachingDigits;
 
   TClonesArray *fClustersPerPlane[fNMaxPlanes];    // ![fNPlanes] list of clusters [per plane]
 
   TClonesArray *fDigitsInCluster;
-  AliMFTDigit *fCurrentDig;
+  AliMFTDigit *fCurrentDigit;
+  AliMFTCluster *fCurrentCluster;
 
   AliMFTSegmentation *fSegmentation;