#include "AliMFTSegmentation.h"
#include "TTree.h"
#include "TMath.h"
+#include "AliMFTConstants.h"
+#include "TStopwatch.h"
//====================================================================================================================================================
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);