]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MFT/AliMFTClusterFinder.h
Using detector quality flag (taken from ALICE logbook) to decide whether to rpodcue...
[u/mrichter/AliRoot.git] / MFT / AliMFTClusterFinder.h
index 25d153206518da51185aed848ff3ea612987208f..f5a7d39bf0733a6c0945c7adb17c7ad62fde9074 100644 (file)
@@ -20,6 +20,8 @@
 #include "AliMFTSegmentation.h"
 #include "TTree.h"
 #include "TMath.h"
+#include "AliMFTConstants.h"
+#include "TStopwatch.h"
 
 //====================================================================================================================================================
 
@@ -29,33 +31,42 @@ public:
 
   AliMFTClusterFinder();
   ~AliMFTClusterFinder();
-
-  void Init(Char_t *nameGeomFile);
+  virtual void Clear(const Option_t* /*opt*/);
+  void Init(const Char_t *nameGeomFile);
   
   void MakeClusterBranch(TTree *treeCluster);
   void SetClusterTreeAddress(TTree *treeCluster);
   void CreateClusters();
 
+  void ApplyMisalignment(Bool_t applyMisalignment) { fApplyMisalignment = applyMisalignment; }
+
   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;
-
-  TClonesArray *fClustersPerPlane[fNMaxPlanes];    // ![fNPlanes] list of clusters [per plane]
+  static const Int_t fNMaxDigitsPerCluster = AliMFTConstants::fNMaxDigitsPerCluster;
+  static const Int_t fNMaxPlanes = AliMFTConstants::fNMaxPlanes;
+  static const Int_t fNMaxDetElemPerPlane = AliMFTConstants::fNMaxDetElemPerPlane;
+  static const Double_t fCutForAvailableDigits;
+  static const Double_t fCutForAttachingDigits;
+  static const Double_t fMisalignmentMagnitude;
 
-  TClonesArray *fDigitsInCluster;
-  AliMFTDigit *fCurrentDig;
+  TClonesArray *fClustersPerPlane[fNMaxPlanes];    //! [fNPlanes] list of clusters [per plane]
 
-  AliMFTSegmentation *fSegmentation;
+  TClonesArray *fDigitsInCluster;                  //!
+  AliMFTDigit *fCurrentDigit;                      //!
+  AliMFTCluster *fCurrentCluster;                  //!
 
+  AliMFTSegmentation *fSegmentation;               //!
   Int_t fNPlanes;
 
+  Bool_t fApplyMisalignment;                       // For MC, waiting for OCDB...
+
+  TStopwatch *fStopWatch;                          //!
+
   AliMFTClusterFinder(const AliMFTClusterFinder &source);
   AliMFTClusterFinder& operator=(const AliMFTClusterFinder &source);